More information about alter in isActual
This commit is contained in:
parent
cc40d15082
commit
3faaa56450
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue