mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 10:57:41 +02:00
schema/mysql: apply_to for notifications
This commit is contained in:
parent
4291f6425e
commit
f6a9e3b149
5
schema/mysql-migrations/upgrade_96.sql
Normal file
5
schema/mysql-migrations/upgrade_96.sql
Normal 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());
|
@ -946,6 +946,7 @@ CREATE TABLE icinga_notification (
|
|||||||
object_name VARCHAR(255) DEFAULT NULL,
|
object_name VARCHAR(255) DEFAULT NULL,
|
||||||
object_type ENUM('object', 'template', 'apply') NOT NULL,
|
object_type ENUM('object', 'template', 'apply') NOT NULL,
|
||||||
disabled ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
disabled ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
||||||
|
apply_to ENUM('host', 'service') DEFAULT NULL,
|
||||||
host_id INT(10) UNSIGNED DEFAULT NULL,
|
host_id INT(10) UNSIGNED DEFAULT NULL,
|
||||||
service_id INT(10) UNSIGNED DEFAULT NULL,
|
service_id INT(10) UNSIGNED DEFAULT NULL,
|
||||||
times_begin 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
|
INSERT INTO director_schema_migration
|
||||||
SET migration_time = NOW(),
|
SET migration_time = NOW(),
|
||||||
schema_version = 95;
|
schema_version = 96;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user