Fixed isActual implemenation

This commit is contained in:
Geoffroy Lesage 2014-12-23 04:06:24 -06:00
parent d4f863d248
commit e00b0ba8cf
1 changed files with 2 additions and 2 deletions

View File

@ -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) {