Fixed bug (oversight ?) on alter table
Fixed bug (oversight ?) on alter table : it was still model name.
This commit is contained in:
parent
52b830de40
commit
d1bb0126e3
|
@ -460,7 +460,7 @@ MySQL.prototype.alterTable = function (model, actualFields, actualIndexes, done,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (sql.length) {
|
if (sql.length) {
|
||||||
var query = 'ALTER TABLE `' + model + '` ' + sql.join(',\n');
|
var query = 'ALTER TABLE ' + self.tableEscaped(model) + ' + sql.join(',\n');
|
||||||
if (checkOnly) {
|
if (checkOnly) {
|
||||||
done(null, true, {statements: sql, query: query});
|
done(null, true, {statements: sql, query: query});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue