-
Notifications
You must be signed in to change notification settings - Fork 1
Add column external_uuid to contact/contactgroup table
#216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
767820c to
0a3cc97
Compare
There was a problem hiding this 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,
- a value should be set for existing rows.
- this should not be merged without Icinga/icinga-notifications-web#199, otherwise this would break creating contacts.
b997f95 to
bcc0bf0
Compare
bcc0bf0 to
2813f1e
Compare
2813f1e to
c630f50
Compare
There was a problem hiding this 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?
schema/pgsql/schema.sql
Outdated
| CONSTRAINT pk_contact PRIMARY KEY (id), | ||
| UNIQUE (username) | ||
| UNIQUE (username), | ||
| UNIQUE (external_uuid), | ||
| CONSTRAINT pk_contact PRIMARY KEY (id) |
There was a problem hiding this comment.
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).
c630f50 to
ebe647d
Compare
|
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. |
ebe647d to
8f8e51c
Compare
|
I've only rebased and fixed the conflicts. |
…annel` The `UUID()` function exists since MySQL 8.0 and is available in MariaDB 10.2.2. Both current minimum requirements for Icinga DB.
eb223eb to
ed33127
Compare
|
Added mysql changes. Should be somewhat final now. |
resolves #192
blocked by: Icinga/icinga-notifications-web#348