Chores: Do not disable foreign keys by default (#6973)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user