schema/mysql: allow to apply notifications

This commit is contained in:
Thomas Gelf 2016-03-18 14:10:53 +01:00
parent f10ee539c8
commit ad8469a34c
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
ALTER TABLE icinga_notification
MODIFY COLUMN object_type ENUM('object', 'template', 'apply') NOT NULL;
INSERT INTO director_schema_migration
SET migration_time = NOW(),
schema_version = 87;

View File

@ -916,7 +916,7 @@ CREATE TABLE icinga_usergroup_parent (
CREATE TABLE icinga_notification (
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
object_name VARCHAR(255) DEFAULT NULL,
object_type ENUM('object', 'template') NOT NULL,
object_type ENUM('object', 'template', 'apply') NOT NULL,
disabled ENUM('y', 'n') NOT NULL DEFAULT 'n',
host_id INT(10) UNSIGNED DEFAULT NULL,
service_id INT(10) UNSIGNED DEFAULT NULL,
@ -1257,4 +1257,4 @@ CREATE TABLE sync_run (
INSERT INTO director_schema_migration
SET migration_time = NOW(),
schema_version = 86;
schema_version = 87;