From b1c29c16d02a858cfcb377177ead605613db9a95 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 21 Jan 2020 20:11:52 +0100 Subject: [PATCH] Sync: add missing migration files for sync-only refs #2059 --- schema/mysql-migrations/upgrade_170.sql | 7 +++++++ schema/pgsql-migrations/upgrade_170.sql | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 schema/mysql-migrations/upgrade_170.sql create mode 100644 schema/pgsql-migrations/upgrade_170.sql diff --git a/schema/mysql-migrations/upgrade_170.sql b/schema/mysql-migrations/upgrade_170.sql new file mode 100644 index 00000000..e259a797 --- /dev/null +++ b/schema/mysql-migrations/upgrade_170.sql @@ -0,0 +1,7 @@ + +ALTER TABLE sync_rule + MODIFY COLUMN update_policy ENUM('merge', 'override', 'ignore', 'update-only') NOT NULL; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (170, NOW()); diff --git a/schema/pgsql-migrations/upgrade_170.sql b/schema/pgsql-migrations/upgrade_170.sql new file mode 100644 index 00000000..50cfb2bc --- /dev/null +++ b/schema/pgsql-migrations/upgrade_170.sql @@ -0,0 +1,5 @@ +ALTER TYPE enum_sync_rule_update_policy ADD VALUE 'update-only' AFTER 'ignore'; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (170, NOW());