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

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-04-06 11:20:35 +02:00
1 parent c31dea02eb
commit 232322d035
2 files changed
+9

No files matched your search

+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,
})
}