Update migrations for postgres

This commit is contained in:
2025-02-25 22:29:06 +01:00
parent 3b7deaa107
commit 96fc490c1d
6 changed files with 88 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
-- 001_initial_schema.down.sql
DROP INDEX IF EXISTS idx_sessions_refresh_token;
DROP INDEX IF EXISTS idx_sessions_expires_at;
DROP INDEX IF EXISTS idx_sessions_user_id;
DROP INDEX IF EXISTS idx_workspaces_user_id;
DROP TABLE IF EXISTS sessions;
DROP TABLE IF EXISTS workspaces;
DROP TABLE IF EXISTS system_settings;
DROP TABLE IF EXISTS users;