fix: remove unnecessary spaces in message when running non-fake migrations (#10809)

This commit is contained in:
zyoshoka 2025-04-01 13:27:06 +09:00 committed by GitHub
parent bcaa0bf071
commit c3bebdcb4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -359,8 +359,8 @@ export class MigrationExecutor {
successMigrations.push(migration)
this.connection.logger.logSchemaBuild(
`Migration ${migration.name} has been ${
this.fake ? "(fake)" : ""
} executed successfully.`,
this.fake ? "(fake) " : ""
}executed successfully.`,
)
})
}
@ -464,8 +464,8 @@ export class MigrationExecutor {
await this.deleteExecutedMigration(queryRunner, migrationToRevert)
this.connection.logger.logSchemaBuild(
`Migration ${migrationToRevert.name} has been ${
this.fake ? "(fake)" : ""
} reverted successfully.`,
this.fake ? "(fake) " : ""
}reverted successfully.`,
)
// commit transaction if we started it