mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
schema/pgsql: apply_to for notifications
This commit is contained in:
parent
8fe1bda36e
commit
b2f202079e
7
schema/pgsql-migrations/upgrade_96.sql
Normal file
7
schema/pgsql-migrations/upgrade_96.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
CREATE TYPE enum_host_service AS ENUM('host', 'service');
|
||||||
|
|
||||||
|
ALTER TABLE icinga_notification ADD apply_to enum_host_service NULL DEFAULT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (96, NOW());
|
@ -46,6 +46,7 @@ CREATE TYPE enum_sync_state AS ENUM(
|
|||||||
'pending-changes',
|
'pending-changes',
|
||||||
'failing'
|
'failing'
|
||||||
);
|
);
|
||||||
|
CREATE TYPE enum_host_service AS ENUM('host', 'service');
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE director_activity_log (
|
CREATE TABLE director_activity_log (
|
||||||
@ -1155,6 +1156,7 @@ CREATE TABLE icinga_notification (
|
|||||||
object_name CHARACTER VARYING(255) DEFAULT NULL,
|
object_name CHARACTER VARYING(255) DEFAULT NULL,
|
||||||
object_type enum_object_type_all NOT NULL,
|
object_type enum_object_type_all NOT NULL,
|
||||||
disabled enum_boolean NOT NULL DEFAULT 'n',
|
disabled enum_boolean NOT NULL DEFAULT 'n',
|
||||||
|
apply_to enum_host_service NULL DEFAULT NULL,
|
||||||
host_id integer DEFAULT NULL,
|
host_id integer DEFAULT NULL,
|
||||||
service_id integer DEFAULT NULL,
|
service_id integer DEFAULT NULL,
|
||||||
times_begin integer DEFAULT NULL,
|
times_begin integer DEFAULT NULL,
|
||||||
@ -1516,4 +1518,4 @@ CREATE UNIQUE INDEX notification_inheritance ON icinga_notification_inheritance
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
(schema_version, migration_time)
|
(schema_version, migration_time)
|
||||||
VALUES (95, NOW());
|
VALUES (96, NOW());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user