Fixed isActual implemenation
This commit is contained in:
parent
d4f863d248
commit
e00b0ba8cf
|
@ -691,10 +691,10 @@ MySQL.prototype.createTable = function (model, cb) {
|
|||
* @param {String[]} [models] A model name or an array of model names. If not present, apply to all models
|
||||
* @param {Function} [cb] The callback function
|
||||
*/
|
||||
MySQL.prototype.isActual = function(cb) {
|
||||
MySQL.prototype.isActual = function(models, cb) {
|
||||
var self = this;
|
||||
var ok = false;
|
||||
async.each(Object.keys(this._models), function(model, done) {
|
||||
async.each(Object.keys(models), function(model, done) {
|
||||
var table = self.tableEscaped(model);
|
||||
self.query('SHOW FIELDS FROM ' + table, function(err, fields) {
|
||||
self.query('SHOW INDEXES FROM ' + table, function(err, indexes) {
|
||||
|
|
Loading…
Reference in New Issue