mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix(core): Run the down migration correctly when transaction: false
is set (no-changelog) (#8432)
This commit is contained in:
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue