summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_149.sql
blob: 59403115deb1e72d70323819e2a26c9cec389cb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
ALTER TABLE icinga_usergroup
  ADD COLUMN zone_id INT(10) UNSIGNED DEFAULT NULL,
  ADD CONSTRAINT icinga_usergroup_zone
    FOREIGN KEY zone (zone_id)
    REFERENCES icinga_zone (id)
      ON DELETE RESTRICT
      ON UPDATE CASCADE;

INSERT INTO director_schema_migration
  (schema_version, migration_time)
  VALUES (149, NOW());