fix(core): Run the down migration correctly when transaction: false is set (no-changelog) (#8432)
This commit is contained in:
committed by
GitHub
parent
ed7d6b7b3a
commit
f438082442
@@ -191,7 +191,7 @@ export const wrapMigration = (migration: Migration) => {
|
||||
if (down) {
|
||||
const context = createContext(queryRunner, migration);
|
||||
if (this.transaction === false) {
|
||||
await runDisablingForeignKeys(this, context, up);
|
||||
await runDisablingForeignKeys(this, context, down);
|
||||
} else {
|
||||
await down.call(this, context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user