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

This commit is contained in:
Stevche Radevski
2025-06-13 16:45:49 +02:00
committed by GitHub
parent aa1cadcb29
commit 3ca02749c4

View File

@@ -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,
},