From 46b30ff58ab4774d7dc4818e55be6d11eacf973c Mon Sep 17 00:00:00 2001 From: Anton Vynogradenko Date: Sun, 17 Feb 2019 17:49:25 -0800 Subject: [PATCH] add "tableName" to execution log --- lib/migrate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/migrate.js b/lib/migrate.js index 4ed5adc..4204843 100644 --- a/lib/migrate.js +++ b/lib/migrate.js @@ -741,7 +741,8 @@ module.exports = { if (index < migrationCommands.length) { let command = migrationCommands[index]; - console.log("[#"+index+"] execute: " + command.fn); + const tableName = (command.params && command.params[0]) || '' + console.log("[#"+index+"] execute: " + command.fn + " " + tableName); index++; queryInterface[command.fn].apply(queryInterface, command.params).then(next, reject); }