Skip to content

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

Remove not needed pg_advisory_xact_lock lock

Fang-Pen Linfa085945599b
diff --git a/backend/src/auto-start-migrations.ts b/backend/src/auto-start-migrations.ts
index 88f6dea692..a663f18e1e 100644
--- a/backend/src/auto-start-migrations.ts
+++ b/backend/src/auto-start-migrations.ts
@@ -83,8 +83,7 @@ export const runMigrations = async ({ applicationDb, auditLogDb, logger }: TArgs
});
}
- await applicationDb.transaction(async (tx) => {
- await tx.raw("SELECT pg_advisory_xact_lock(?)", [PgSqlLock.BootUpMigration]);
+ await applicationDb.transaction(async () => {
logger.info("Running application migrations.");
const didPreviousInstanceRunMigration = !(await applicationDb.migrate