diff options
Diffstat (limited to 'schema/pgsql-migrations/upgrade_172.sql')
-rw-r--r-- | schema/pgsql-migrations/upgrade_172.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/schema/pgsql-migrations/upgrade_172.sql b/schema/pgsql-migrations/upgrade_172.sql new file mode 100644 index 0000000..49e66a2 --- /dev/null +++ b/schema/pgsql-migrations/upgrade_172.sql @@ -0,0 +1,13 @@ +CREATE TYPE enum_sync_rule_purge_action AS ENUM('delete', 'disable'); + +ALTER TABLE sync_rule + ADD COLUMN purge_action enum_sync_rule_purge_action NULL DEFAULT NULL; + +UPDATE sync_rule SET purge_action = 'delete'; + +ALTER TABLE sync_rule + ALTER COLUMN purge_action SET NOT NULL; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (172, NOW()); |