fix(core): Run the down migration correctly when transaction: false is set (no-changelog) (#8432)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-24 19:07:47 +01:00
committed by GitHub
parent ed7d6b7b3a
commit f438082442

View File

@@ -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);
}