Merge pull request #133 from sdrdis/patch-1

Fixed bug (oversight ?) on alter table
This commit is contained in:
Anatoliy Chakkaev 2012-10-21 13:17:48 -07:00
commit ee6c2bff21
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 {