summaryrefslogtreecommitdiffstats
path: root/schema/pgsql-migrations/upgrade_80.sql
blob: 074af1cf2cd9978529d413e12903ad1235b5436e (plain)
1
2
3
4
5
6
7
8
9
10
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());