Skip to content

Commit

Permalink
Make unique constraints consistent across databases
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 authored and nilmerg committed Aug 15, 2024
1 parent 428a49f commit 853b6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions schema/pgsql-migrations/upgrade_188.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DROP INDEX IF EXISTS import_row_modifier_prio;
DROP INDEX IF EXISTS service_branch_object_name;

INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (188, NOW());
4 changes: 0 additions & 4 deletions schema/pgsql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,6 @@ CREATE TABLE import_row_modifier (
);

CREATE INDEX import_row_modifier_search_idx ON import_row_modifier (property_name);
CREATE UNIQUE INDEX import_row_modifier_prio
ON import_row_modifier (source_id, priority);


CREATE TABLE import_row_modifier_setting (
row_modifier_id serial,
Expand Down Expand Up @@ -2637,7 +2634,6 @@ CREATE TABLE branched_icinga_service (
ON UPDATE CASCADE
);

CREATE UNIQUE INDEX service_branch_object_name ON branched_icinga_service (branch_uuid, object_name);
CREATE INDEX branched_service_search_object_name ON branched_icinga_service (object_name);
CREATE INDEX branched_service_search_display_name ON branched_icinga_service (display_name);

Expand Down

0 comments on commit 853b6ce

Please sign in to comment.