schema: allow NULL for purge_action
This commit is contained in:
parent
4c4f9541e5
commit
0664da8f12
|
@ -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,
|
||||
update_policy ENUM('merge', 'override', 'ignore', 'update-only') NOT NULL,
|
||||
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,
|
||||
sync_state ENUM(
|
||||
'unknown',
|
||||
|
@ -1884,4 +1884,4 @@ CREATE TABLE icinga_scheduled_downtime_range (
|
|||
|
||||
INSERT INTO director_schema_migration
|
||||
(schema_version, migration_time)
|
||||
VALUES (172, NOW());
|
||||
VALUES (173, NOW());
|
||||
|
|
|
@ -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,
|
||||
update_policy enum_sync_rule_update_policy NOT NULL,
|
||||
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,
|
||||
sync_state enum_sync_state NOT NULL DEFAULT 'unknown',
|
||||
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
|
||||
(schema_version, migration_time)
|
||||
VALUES (172, NOW());
|
||||
VALUES (173, NOW());
|
||||
|
|
Loading…
Reference in New Issue