Skip to content

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Jun 11, 2024

@sukhwinder33445 sukhwinder33445 self-assigned this Jun 11, 2024
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jun 11, 2024
@sukhwinder33445 sukhwinder33445 requested a review from nilmerg June 11, 2024 08:29
@sukhwinder33445 sukhwinder33445 force-pushed the add-column-external-uuid branch from 767820c to 0a3cc97 Compare June 11, 2024 09:53
Copy link
Collaborator

@julianbrost julianbrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing the change in the full schema.sql file (looks like I've totally missed this before).

Also, if the NOT NULL constraints remain,

  1. a value should be set for existing rows.
  2. this should not be merged without Icinga/icinga-notifications-web#199, otherwise this would break creating contacts.

@sukhwinder33445 sukhwinder33445 force-pushed the add-column-external-uuid branch from bcc0bf0 to 2813f1e Compare June 13, 2024 07:34
@sukhwinder33445 sukhwinder33445 force-pushed the add-column-external-uuid branch from 2813f1e to c630f50 Compare June 27, 2024 13:23
Copy link
Collaborator

@julianbrost julianbrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General question: do you (= team web) expect/want this to be merged soon?

Comment on lines 60 to 65
CONSTRAINT pk_contact PRIMARY KEY (id),
UNIQUE (username)
UNIQUE (username),
UNIQUE (external_uuid),
CONSTRAINT pk_contact PRIMARY KEY (id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why you reordered the constraints here. Also, in the rest of the schema file, so far the primary key is given first, I'd keep it that way (it also makes sense to me, one can say it's the most important constraint).

@sukhwinder33445 sukhwinder33445 force-pushed the add-column-external-uuid branch from c630f50 to ebe647d Compare June 27, 2024 19:49
@sukhwinder33445
Copy link
Contributor Author

This can wait, so far it is a stand-alone change without any dependencies to other branches (except the linked web branch). When the corresponding web branch is ready to be merged, this should be merged together with it.

@nilmerg nilmerg force-pushed the add-column-external-uuid branch from ebe647d to 8f8e51c Compare August 26, 2025 09:15
@nilmerg
Copy link
Member

nilmerg commented Aug 26, 2025

I've only rebased and fixed the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add column external_uuid to contact and contactgroup

4 participants