Skip to content

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

misc: make index creation concurrently

Sheen Capadngan2f29a513cc8b
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
index 416ff14bb2..b2ad9f3b51 100644
--- a/backend/src/db/migrations/20250630170849_add-index-for-access-token.ts
+++ b/backend/src/db/migrations/20250630170849_add-index-for-access-token.ts
@@ -4,12 +4,12 @@ import { TableName } from "../schemas";
export async function up(knex: Knex): Promise<void> {
await knex.raw(`
- CREATE INDEX IF NOT EXISTS ${TableName.IdentityAccessToken}_identityid_index
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityid_index
ON ${TableName.IdentityAccessToken} ("identityId")
`);
await knex.raw(`
- CREATE INDEX IF NOT EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
ON ${TableName.IdentityAccessToken} ("identityUAClientSecretId")
`);
}
@@ -23,3 +23,7 @@ export async function down(knex: Knex): Promise<void> {
DROP INDEX IF EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
`);
}
+
+const config = { transaction: false };
+
+export { config };