From 3ca02749c4775b950a9042c3754ad53c97dbf612 Mon Sep 17 00:00:00 2001 From: Stevche Radevski Date: Fri, 13 Jun 2025 16:45:49 +0200 Subject: [PATCH] fix: Disable ensure database checks when establishing DB connection (#12734) --- .../utils/src/dal/mikro-orm/mikro-orm-create-connection.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/utils/src/dal/mikro-orm/mikro-orm-create-connection.ts b/packages/core/utils/src/dal/mikro-orm/mikro-orm-create-connection.ts index 4be5e90baf..c0caf6f99b 100644 --- a/packages/core/utils/src/dal/mikro-orm/mikro-orm-create-connection.ts +++ b/packages/core/utils/src/dal/mikro-orm/mikro-orm-create-connection.ts @@ -107,6 +107,9 @@ export async function mikroOrmCreateConnection( false ), }, + // We don't want to do any DB checks when establishing the connection. This happens once when creating the pg_connection, and it can happen again explicitly if necessary. + connect: false, + ensureDatabase: false, schemaGenerator: { disableForeignKeys: false, },