schema/mysql: apply_to for notifications
This commit is contained in:
parent
4291f6425e
commit
f6a9e3b149
|
@ -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());
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue