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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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