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

@@ -27,7 +27,6 @@ func TestMigrate(t *testing.T) {
"workspaces",
"sessions",
"system_settings",
// Note: golang-migrate uses its own migrations table
"schema_migrations",
}
@@ -45,6 +44,7 @@ func TestMigrate(t *testing.T) {
{"sessions", "idx_sessions_user_id"},
{"sessions", "idx_sessions_expires_at"},
{"sessions", "idx_sessions_refresh_token"},
{"workspaces", "idx_workspaces_user_id"},
}
for _, idx := range indexes {
if !indexExists(t, database, idx.table, idx.name) {