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();