Mistake in an undefined check

This commit is contained in:
Vincent Giersch 2013-04-18 15:57:56 +02:00
parent 1bae8a8062
commit fa617dc35f
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ MySQL.prototype.alterTable = function (model, actualFields, actualIndexes, done,
propNames.forEach(function (propName) {
if (propName === 'id') return;
var found;
if (actualIndexes) {
if (actualFields) {
actualFields.forEach(function (f) {
if (f.Field === propName) {
found = f;