schema/mysql: apply_to for notifications

This commit is contained in:
Thomas Gelf 2016-05-20 15:51:10 +02:00
parent 4291f6425e
commit f6a9e3b149
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
ALTER TABLE icinga_notification ADD apply_to ENUM('host', 'service') DEFAULT NULL AFTER disabled;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (96, NOW());

View File

@ -946,6 +946,7 @@ CREATE TABLE icinga_notification (
object_name VARCHAR(255) DEFAULT NULL,
object_type ENUM('object', 'template', 'apply') NOT NULL,
disabled ENUM('y', 'n') NOT NULL DEFAULT 'n',
apply_to ENUM('host', 'service') DEFAULT NULL,
host_id INT(10) UNSIGNED DEFAULT NULL,
service_id INT(10) UNSIGNED DEFAULT NULL,
times_begin INT(10) UNSIGNED DEFAULT NULL,
@ -1302,4 +1303,4 @@ CREATE TABLE sync_run (
INSERT INTO director_schema_migration
SET migration_time = NOW(),
schema_version = 95;
schema_version = 96;