From ccffe87e28aff2b789419f88f6a37106e1be79fc Mon Sep 17 00:00:00 2001 From: liangxu Date: Wed, 6 May 2026 14:00:13 +0800 Subject: [PATCH] refactor(migrations): remove obsolete platform accounts indexing scripts --- ...20000_scope_platform_accounts_to_desktop_client.down.sql | 6 ------ ...6120000_scope_platform_accounts_to_desktop_client.up.sql | 6 ------ 2 files changed, 12 deletions(-) delete mode 100644 server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.down.sql delete mode 100644 server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.up.sql diff --git a/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.down.sql b/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.down.sql deleted file mode 100644 index b26f60a..0000000 --- a/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.down.sql +++ /dev/null @@ -1,6 +0,0 @@ -DROP INDEX IF EXISTS uk_platform_accounts_identity_active; -DROP INDEX IF EXISTS uniq_platform_accounts_workspace_identity_active; - -CREATE UNIQUE INDEX IF NOT EXISTS uniq_platform_accounts_workspace_identity_active - ON platform_accounts (workspace_id, client_id, platform_id, platform_uid) - WHERE deleted_at IS NULL; diff --git a/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.up.sql b/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.up.sql deleted file mode 100644 index b26f60a..0000000 --- a/server/migrations/20260506120000_scope_platform_accounts_to_desktop_client.up.sql +++ /dev/null @@ -1,6 +0,0 @@ -DROP INDEX IF EXISTS uk_platform_accounts_identity_active; -DROP INDEX IF EXISTS uniq_platform_accounts_workspace_identity_active; - -CREATE UNIQUE INDEX IF NOT EXISTS uniq_platform_accounts_workspace_identity_active - ON platform_accounts (workspace_id, client_id, platform_id, platform_uid) - WHERE deleted_at IS NULL;