From 99ac6314a414f8122ba720c79b3693f824cb2bd9 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Tue, 6 Jan 2026 20:59:56 -0800 Subject: [PATCH] Remove not needed pg_advisory_xact_lock lock --- backend/src/auto-start-migrations.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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