diff --git a/lib/datasource.js b/lib/datasource.js index fd4b54f1..30aa27e8 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -1820,7 +1820,7 @@ DataSource.prototype.defineForeignKey = function defineForeignKey(className, key if (foreignMeta.dataType) { fkDef[this.connector.name].dataType = foreignMeta.dataType; } - if (foreingMeta.dataLength) { + if (foreignMeta.dataLength) { fkDef[this.connector.name].dataLength = foreignMeta.dataLength; } }