mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
schema/pgsql: fix tests for timeperiod_ranges
This commit is contained in:
parent
4dfe03816a
commit
b65c9f4d4a
11
schema/pgsql-migrations/upgrade_80.sql
Normal file
11
schema/pgsql-migrations/upgrade_80.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
ALTER TABLE icinga_timeperiod_range
|
||||||
|
DROP CONSTRAINT icinga_timeperiod_range_timeperiod,
|
||||||
|
ADD CONSTRAINT icinga_timeperiod_range_timeperiod
|
||||||
|
FOREIGN KEY (timeperiod_id)
|
||||||
|
REFERENCES icinga_timeperiod (id)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (80, NOW());
|
@ -296,7 +296,7 @@ CREATE TABLE icinga_timeperiod_range (
|
|||||||
CONSTRAINT icinga_timeperiod_range_timeperiod
|
CONSTRAINT icinga_timeperiod_range_timeperiod
|
||||||
FOREIGN KEY (timeperiod_id)
|
FOREIGN KEY (timeperiod_id)
|
||||||
REFERENCES icinga_timeperiod (id)
|
REFERENCES icinga_timeperiod (id)
|
||||||
ON DELETE RESTRICT
|
ON DELETE CASCADE
|
||||||
ON UPDATE CASCADE
|
ON UPDATE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1415,4 +1415,4 @@ CREATE UNIQUE INDEX notification_inheritance ON icinga_notification_inheritance
|
|||||||
-- set current schema version
|
-- set current schema version
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
(schema_version, migration_time)
|
(schema_version, migration_time)
|
||||||
VALUES (79, NOW());
|
VALUES (80, NOW());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user