diff options
Diffstat (limited to '')
-rw-r--r-- | schema/mysql-migrations/upgrade_172.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schema/mysql-migrations/upgrade_172.sql b/schema/mysql-migrations/upgrade_172.sql new file mode 100644 index 0000000..3af3571 --- /dev/null +++ b/schema/mysql-migrations/upgrade_172.sql @@ -0,0 +1,11 @@ +ALTER TABLE sync_rule + ADD COLUMN purge_action ENUM('delete', 'disable') NULL DEFAULT NULL AFTER purge_existing; + +UPDATE sync_rule SET purge_action = 'delete'; + +ALTER TABLE sync_rule + MODIFY COLUMN purge_action ENUM('delete', 'disable') DEFAULT NULL; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (172, NOW()); |