1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

perf: support of scale in field's length setting

This commit is contained in:
2022-01-22 12:29:49 +01:00
parent aa8fc545d7
commit eef7c1dcec
6 changed files with 54 additions and 14 deletions

View File

@ -280,6 +280,7 @@ export default {
fieldLength (field) {
if ([...BLOB, ...LONG_TEXT].includes(field.type)) return null;
else if (TEXT.includes(field.type)) return field.charLength;
else if (field.numScale) return `${field.numPrecision}, ${field.numScale}`;
return field.length;
},
keyName (key) {