fix foreign key dataType bug
This commit is contained in:
parent
159be756ac
commit
3644b85432
|
@ -1710,7 +1710,7 @@ DataSource.prototype.defineForeignKey = function defineForeignKey(className, key
|
||||||
}
|
}
|
||||||
|
|
||||||
var fkDef = {type: pkType};
|
var fkDef = {type: pkType};
|
||||||
var foreignMeta = this.columnMetadata(foreignClassName, key);
|
var foreignMeta = this.columnMetadata(foreignClassName, pkName);
|
||||||
if(foreignMeta && foreignMeta.dataType) {
|
if(foreignMeta && foreignMeta.dataType) {
|
||||||
fkDef[this.connector.name] = {};
|
fkDef[this.connector.name] = {};
|
||||||
fkDef[this.connector.name].dataType = foreignMeta.dataType;
|
fkDef[this.connector.name].dataType = foreignMeta.dataType;
|
||||||
|
|
Loading…
Reference in New Issue