Add precision/scale for sync discovery
This commit is contained in:
parent
dcada03c43
commit
1109f671da
|
@ -836,7 +836,9 @@ DataSource.prototype.discoverSchemasSync = function (modelName, options) {
|
||||||
schema.properties[propName] = {
|
schema.properties[propName] = {
|
||||||
type: item.type,
|
type: item.type,
|
||||||
required: (item.nullable === 'N'),
|
required: (item.nullable === 'N'),
|
||||||
length: item.dataLength
|
length: item.dataLength,
|
||||||
|
precision: item.dataPrecision,
|
||||||
|
scale: item.dataScale
|
||||||
};
|
};
|
||||||
|
|
||||||
if (pks[item.columnName]) {
|
if (pks[item.columnName]) {
|
||||||
|
@ -846,6 +848,8 @@ DataSource.prototype.discoverSchemasSync = function (modelName, options) {
|
||||||
columnName: i.columnName,
|
columnName: i.columnName,
|
||||||
dataType: i.dataType,
|
dataType: i.dataType,
|
||||||
dataLength: i.dataLength,
|
dataLength: i.dataLength,
|
||||||
|
dataPrecision: item.dataPrecision,
|
||||||
|
dataScale: item.dataScale,
|
||||||
nullable: i.nullable
|
nullable: i.nullable
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue