Fixed bug (oversight ?) on alter table

Fixed bug (oversight ?) on alter table : it was still model name.
This commit is contained in:
Sébastien Drouyer 2012-10-21 01:51:30 +03:00
parent 52b830de40
commit d1bb0126e3
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ MySQL.prototype.alterTable = function (model, actualFields, actualIndexes, done,
});
if (sql.length) {
var query = 'ALTER TABLE `' + model + '` ' + sql.join(',\n');
var query = 'ALTER TABLE ' + self.tableEscaped(model) + ' + sql.join(',\n');
if (checkOnly) {
done(null, true, {statements: sql, query: query});
} else {