Skip to content

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

Adjust index

Fang-Pen Lin7c3757593d09
diff --git a/backend/src/db/migrations/20251227020623_add-identity-access-token-indexes.ts b/backend/src/db/migrations/20251227020623_add-identity-access-token-indexes.ts
index cf6ddbb203..2203ac9582 100644
--- a/backend/src/db/migrations/20251227020623_add-identity-access-token-indexes.ts
+++ b/backend/src/db/migrations/20251227020623_add-identity-access-token-indexes.ts
@@ -26,7 +26,7 @@ export async function up(knex: Knex): Promise<void> {
) {
await knex.raw(`
CREATE INDEX IF NOT EXISTS idx_identity_access_tokens_revoked CONCURRENTLY
- ON ${TableName.IdentityAccessToken} ("id")
+ ON ${TableName.IdentityAccessToken} ("isAccessTokenRevoked")
WHERE "isAccessTokenRevoked" = true
`);
}