back/migration command: add log to show that we are rolling back a migration and which one

This commit is contained in:
Alice Gaudon 2021-11-24 18:17:33 +01:00
parent 59491d63ab
commit e1542ae476
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ export default class MysqlConnectionManager {
if (args.length > i + 1) {
migrationId = parseInt(args[i + 1]);
}
logger.info('Rolling back migration', migrationId);
await this.prepare(false);
await this.rollbackMigration(migrationId);
return;