schema/mysql: do not require sync filter expression

This commit is contained in:
Thomas Gelf 2015-07-23 10:47:41 +02:00
parent abab695708
commit 1b4cd5adfc
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE sync_rule MODIFY filter_expression TEXT DEFAULT NULL;

View File

@ -901,7 +901,7 @@ CREATE TABLE sync_rule (
object_type ENUM('host', 'user') NOT NULL, object_type ENUM('host', 'user') 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',
filter_expression TEXT NOT NULL, filter_expression TEXT DEFAULT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;