Merge pull request #133 from sdrdis/patch-1
Fixed bug (oversight ?) on alter table
This commit is contained in:
commit
ee6c2bff21
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue