Skip to content

Commit

Permalink
feat: add id in migrate:show command logging (#9475)
Browse files Browse the repository at this point in the history
  • Loading branch information
kz-d authored Dec 3, 2022
1 parent 6e91513 commit 71efa8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/migration/MigrationExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export class MigrationExecutor {
)

if (executedMigration) {
this.connection.logger.logSchemaBuild(`[X] ${migration.name}`)
this.connection.logger.logSchemaBuild(
`[X] ${executedMigration.id} ${migration.name}`,
)
} else {
hasUnappliedMigrations = true
this.connection.logger.logSchemaBuild(`[ ] ${migration.name}`)
Expand Down

0 comments on commit 71efa8e

Please sign in to comment.