mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +02:00
parent
9e1cea0119
commit
d7a53ac19f
18
schema/mysql-migrations/upgrade_116.sql
Normal file
18
schema/mysql-migrations/upgrade_116.sql
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
ALTER TABLE sync_rule MODIFY object_type enum(
|
||||||
|
'host',
|
||||||
|
'service',
|
||||||
|
'command',
|
||||||
|
'user',
|
||||||
|
'hostgroup',
|
||||||
|
'servicegroup',
|
||||||
|
'usergroup',
|
||||||
|
'datalistEntry',
|
||||||
|
'endpoint',
|
||||||
|
'zone',
|
||||||
|
'timePeriod',
|
||||||
|
'serviceSet'
|
||||||
|
) NOT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (116, NOW());
|
@ -1337,7 +1337,9 @@ CREATE TABLE sync_rule (
|
|||||||
'usergroup',
|
'usergroup',
|
||||||
'datalistEntry',
|
'datalistEntry',
|
||||||
'endpoint',
|
'endpoint',
|
||||||
'zone'
|
'zone',
|
||||||
|
'timePeriod',
|
||||||
|
'serviceSet'
|
||||||
) NOT NULL,
|
) NOT NULL,
|
||||||
update_policy ENUM('merge', 'override', 'ignore') NOT NULL,
|
update_policy ENUM('merge', 'override', 'ignore') NOT NULL,
|
||||||
purge_existing ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
purge_existing ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
||||||
@ -1396,4 +1398,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 = 115;
|
schema_version = 116;
|
||||||
|
6
schema/pgsql-migrations/upgrade_116.sql
Normal file
6
schema/pgsql-migrations/upgrade_116.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TYPE enum_sync_rule_object_type ADD VALUE 'timePeriod';
|
||||||
|
ALTER TYPE enum_sync_rule_object_type ADD VALUE 'serviceSet';
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (116, NOW());
|
@ -6,12 +6,6 @@
|
|||||||
-- Director does all the migrations for you and guides you either in
|
-- Director does all the migrations for you and guides you either in
|
||||||
-- the frontend or provides everything you need for automated migration
|
-- the frontend or provides everything you need for automated migration
|
||||||
-- handling. Please find more related information in our documentation.
|
-- handling. Please find more related information in our documentation.
|
||||||
--
|
|
||||||
-- Please note: PostgreSQL has not all migrations as MySQL have them
|
|
||||||
--
|
|
||||||
-- If you have used PostgreSQL prior the first release of director,
|
|
||||||
-- you might have to recreate the schema.
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TYPE enum_activity_action AS ENUM('create', 'delete', 'modify');
|
CREATE TYPE enum_activity_action AS ENUM('create', 'delete', 'modify');
|
||||||
CREATE TYPE enum_boolean AS ENUM('y', 'n');
|
CREATE TYPE enum_boolean AS ENUM('y', 'n');
|
||||||
@ -36,7 +30,9 @@ CREATE TYPE enum_sync_rule_object_type AS ENUM(
|
|||||||
'usergroup',
|
'usergroup',
|
||||||
'datalistEntry',
|
'datalistEntry',
|
||||||
'endpoint',
|
'endpoint',
|
||||||
'zone'
|
'zone',
|
||||||
|
'timePeriod',
|
||||||
|
'serviceSet'
|
||||||
);
|
);
|
||||||
CREATE TYPE enum_sync_rule_update_policy AS ENUM('merge', 'override', 'ignore');
|
CREATE TYPE enum_sync_rule_update_policy AS ENUM('merge', 'override', 'ignore');
|
||||||
CREATE TYPE enum_sync_property_merge_policy AS ENUM('override', 'merge');
|
CREATE TYPE enum_sync_property_merge_policy AS ENUM('override', 'merge');
|
||||||
@ -1627,4 +1623,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 (115, NOW());
|
VALUES (116, NOW());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user