mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
schema/mysql: delete ranges on time period deletion
This commit is contained in:
parent
57be4f0504
commit
f0cf938ddc
13
schema/mysql-migrations/upgrade_70.sql
Normal file
13
schema/mysql-migrations/upgrade_70.sql
Normal file
@ -0,0 +1,13 @@
|
||||
ALTER TABLE icinga_timeperiod_range
|
||||
DROP FOREIGN KEY icinga_timeperiod_range_timeperiod;
|
||||
|
||||
ALTER TABLE icinga_timeperiod_range
|
||||
ADD CONSTRAINT icinga_timeperiod_range_timeperiod
|
||||
FOREIGN KEY timeperiod (timeperiod_id)
|
||||
REFERENCES icinga_timeperiod (id)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
INSERT INTO director_schema_migration
|
||||
SET migration_time = NOW(),
|
||||
schema_version = 70;
|
@ -1069,5 +1069,5 @@ CREATE TABLE sync_run (
|
||||
|
||||
INSERT INTO director_schema_migration
|
||||
SET migration_time = NOW(),
|
||||
schema_version = 69
|
||||
schema_version = 70;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user