mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
schema: allow NULL for purge_action
This commit is contained in:
parent
4c4f9541e5
commit
0664da8f12
6
schema/mysql-migrations/upgrade_173.sql
Normal file
6
schema/mysql-migrations/upgrade_173.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE sync_rule
|
||||||
|
MODIFY COLUMN purge_action ENUM('delete', 'disable') NULL DEFAULT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (173, NOW());
|
@ -1526,7 +1526,7 @@ CREATE TABLE sync_rule (
|
|||||||
) NOT NULL,
|
) NOT NULL,
|
||||||
update_policy ENUM('merge', 'override', 'ignore', 'update-only') NOT NULL,
|
update_policy ENUM('merge', 'override', 'ignore', 'update-only') NOT NULL,
|
||||||
purge_existing ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
purge_existing ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
||||||
purge_action ENUM('delete', 'disable') NOT NULL,
|
purge_action ENUM('delete', 'disable') NULL DEFAULT NULL,
|
||||||
filter_expression TEXT DEFAULT NULL,
|
filter_expression TEXT DEFAULT NULL,
|
||||||
sync_state ENUM(
|
sync_state ENUM(
|
||||||
'unknown',
|
'unknown',
|
||||||
@ -1884,4 +1884,4 @@ CREATE TABLE icinga_scheduled_downtime_range (
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
(schema_version, migration_time)
|
(schema_version, migration_time)
|
||||||
VALUES (172, NOW());
|
VALUES (173, NOW());
|
||||||
|
6
schema/pgsql-migrations/upgrade_173.sql
Normal file
6
schema/pgsql-migrations/upgrade_173.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE sync_rule
|
||||||
|
ALTER COLUMN purge_action SET DEFAULT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (173, NOW());
|
@ -1691,7 +1691,7 @@ CREATE TABLE sync_rule (
|
|||||||
object_type enum_sync_rule_object_type NOT NULL,
|
object_type enum_sync_rule_object_type NOT NULL,
|
||||||
update_policy enum_sync_rule_update_policy NOT NULL,
|
update_policy enum_sync_rule_update_policy NOT NULL,
|
||||||
purge_existing enum_boolean NOT NULL DEFAULT 'n',
|
purge_existing enum_boolean NOT NULL DEFAULT 'n',
|
||||||
purge_action enum_sync_rule_purge_action NOT NULL,
|
purge_action enum_sync_rule_purge_action NULL DEFAULT NULL,
|
||||||
filter_expression text DEFAULT NULL,
|
filter_expression text DEFAULT NULL,
|
||||||
sync_state enum_sync_state NOT NULL DEFAULT 'unknown',
|
sync_state enum_sync_state NOT NULL DEFAULT 'unknown',
|
||||||
last_error_message text NULL DEFAULT NULL,
|
last_error_message text NULL DEFAULT NULL,
|
||||||
@ -2201,4 +2201,4 @@ COMMENT ON COLUMN icinga_scheduled_downtime_range.merge_behaviour IS 'set -> = {
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
(schema_version, migration_time)
|
(schema_version, migration_time)
|
||||||
VALUES (172, NOW());
|
VALUES (173, NOW());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user