Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Revert "misc: add indices for referencing columns in identity access token"

Sheen9c72ee7f1054
diff --git a/backend/src/db/migrations/20250630170849_add-index-for-access-token.ts b/backend/src/db/migrations/20250630170849_add-index-for-access-token.ts
deleted file mode 100644
index b2ad9f3b51..0000000000
--- a/backend/src/db/migrations/20250630170849_add-index-for-access-token.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Knex } from "knex";
-
-import { TableName } from "../schemas";
-
-export async function up(knex: Knex): Promise<void> {
- await knex.raw(`
- CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityid_index
- ON ${TableName.IdentityAccessToken} ("identityId")
- `);
-
- await knex.raw(`
- CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
- ON ${TableName.IdentityAccessToken} ("identityUAClientSecretId")
- `);
-}
-
-export async function down(knex: Knex): Promise<void> {
- await knex.raw(`
- DROP INDEX IF EXISTS ${TableName.IdentityAccessToken}_identityid_index
- `);
-
- await knex.raw(`
- DROP INDEX IF EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
- `);
-}
-
-const config = { transaction: false };
-
-export { config };