Fix linting error
This commit is contained in:
parent
04287f6a77
commit
4d20fa7746
|
@ -420,7 +420,7 @@ function mixinMigration(MySQL, mysql) {
|
||||||
var definition = this.getModelDefinition(model);
|
var definition = this.getModelDefinition(model);
|
||||||
var fk = definition.settings.foreignKeys[keyName];
|
var fk = definition.settings.foreignKeys[keyName];
|
||||||
if (fk) {
|
if (fk) {
|
||||||
var fkEntity = typeof fk.entity === "object" ? fk.entity : {name: fk.entity}; //this.getModelDefinition(fk.entity);
|
var fkEntity = typeof fk.entity === 'object' ? fk.entity : {name: fk.entity}; //this.getModelDefinition(fk.entity);
|
||||||
|
|
||||||
//TODO verify that the other model in the same DB
|
//TODO verify that the other model in the same DB
|
||||||
return ' CONSTRAINT ' + this.client.escapeId(fk.name) +
|
return ' CONSTRAINT ' + this.client.escapeId(fk.name) +
|
||||||
|
|
Loading…
Reference in New Issue