From 3faaa56450111c7df132d469fc16b325c82ea3ef Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Mon, 20 Aug 2012 11:01:08 +0400 Subject: [PATCH] More information about alter in isActual --- lib/adapters/mysql.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/adapters/mysql.js b/lib/adapters/mysql.js index 64e9600e..025ff410 100644 --- a/lib/adapters/mysql.js +++ b/lib/adapters/mysql.js @@ -459,10 +459,11 @@ MySQL.prototype.alterTable = function (model, actualFields, actualIndexes, done, }); if (sql.length) { + var query = 'ALTER TABLE `' + model + '` ' + sql.join(',\n'); if (checkOnly) { - done(null, true); + done(null, true, {statements: sql, query: query}); } else { - this.query('ALTER TABLE `' + model + '` ' + sql.join(',\n'), done); + this.query(query, done); } } else { done();