Chores: Do not disable foreign keys by default (#6973)

This commit is contained in:
Adrien de Peretti
2024-04-06 11:20:35 +02:00
committed by GitHub
parent c31dea02eb
commit 232322d035
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
Chores: Do not disable foreign keys by default
@@ -110,6 +110,7 @@ export async function mikroOrmCreateConnection(
type: "postgresql",
filters: database.filters ?? {},
migrations: {
disableForeignKeys: false,
path: pathToMigrations,
generator: TSMigrationGenerator,
silent: !(
@@ -118,6 +119,9 @@ export async function mikroOrmCreateConnection(
false
),
},
schemaGenerator: {
disableForeignKeys: false
},
pool: database.pool as any,
})
}