fix: Disable ensure database checks when establishing DB connection (#12734)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2025-06-13 16:45:49 +02:00
1 parent aa1cadcb29
commit 3ca02749c4
1 file changed
+3
@@ -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,
},