From e1542ae4768322005a39cced56f306f80c97f5ba Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 24 Nov 2021 18:17:33 +0100 Subject: [PATCH] back/migration command: add log to show that we are rolling back a migration and which one --- src/db/MysqlConnectionManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db/MysqlConnectionManager.ts b/src/db/MysqlConnectionManager.ts index e5ee183..deaa9fc 100644 --- a/src/db/MysqlConnectionManager.ts +++ b/src/db/MysqlConnectionManager.ts @@ -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;