This commit is contained in:
nennad 2015-09-03 17:02:21 +01:00
parent f3b0cb062e
commit e679deb376
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ DataSource.prototype.defineForeignKey = function defineForeignKey(className, key
if (foreignMeta.dataType) { if (foreignMeta.dataType) {
fkDef[this.connector.name].dataType = foreignMeta.dataType; fkDef[this.connector.name].dataType = foreignMeta.dataType;
} }
if (foreingMeta.dataLength) { if (foreignMeta.dataLength) {
fkDef[this.connector.name].dataLength = foreignMeta.dataLength; fkDef[this.connector.name].dataLength = foreignMeta.dataLength;
} }
} }