summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_70.sql
blob: 1312c0246e2fb5fa655a16c11e7c07dbcb873941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;