Chores: Do not disable foreign keys by default (#6973)
This commit is contained in:
1 parent
c31dea02eb
commit
232322d035
2 files changed
+9
No files matched your search
@@ -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",
|
type: "postgresql",
|
||||||
filters: database.filters ?? {},
|
filters: database.filters ?? {},
|
||||||
migrations: {
|
migrations: {
|
||||||
|
disableForeignKeys: false,
|
||||||
path: pathToMigrations,
|
path: pathToMigrations,
|
||||||
generator: TSMigrationGenerator,
|
generator: TSMigrationGenerator,
|
||||||
silent: !(
|
silent: !(
|
||||||
@@ -118,6 +119,9 @@ export async function mikroOrmCreateConnection(
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
schemaGenerator: {
|
||||||
|
disableForeignKeys: false
|
||||||
|
},
|
||||||
pool: database.pool as any,
|
pool: database.pool as any,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user