diff options
Diffstat (limited to 'schema/mysql-migrations/upgrade_149.sql')
-rw-r--r-- | schema/mysql-migrations/upgrade_149.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schema/mysql-migrations/upgrade_149.sql b/schema/mysql-migrations/upgrade_149.sql new file mode 100644 index 0000000..5940311 --- /dev/null +++ b/schema/mysql-migrations/upgrade_149.sql @@ -0,0 +1,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()); |