refactor(migrations): remove deprecated user system admin migration files and introduce new system settings migration
- Deleted the old migration files for user system admin (000052) as they are no longer needed. - Added new migration files (000053) to implement system-level administrator flag and a new system settings table, consolidating related changes for improved management of platform-wide settings. - Ensured that the new migrations include proper rollback procedures for both the system admin flag and the system settings table.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- Rollback: drop system_settings table and users.is_system_admin column
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000053 DOWN] Dropping table: system_settings'; END $$;
|
||||
|
||||
DROP TABLE IF EXISTS system_settings CASCADE;
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000053 DOWN] Dropping users.is_system_admin...'; END $$;
|
||||
|
||||
DROP INDEX IF EXISTS idx_users_is_system_admin;
|
||||
|
||||
ALTER TABLE users DROP COLUMN IF EXISTS is_system_admin;
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000053 DOWN] Done.'; END $$;
|
||||
Reference in New Issue
Block a user