fix(SQLite): field length lost when editing a table, fixes #664

This commit is contained in:
Fabio Di Stasio 2023-09-19 18:12:49 +02:00
parent 7e36260cdb
commit b321e64b83
2 changed files with 7 additions and 2 deletions

View File

@ -296,7 +296,13 @@ export class SQLiteClient extends AntaresCore {
// ADD FIELDS
fields.forEach(field => {
const typeInfo = this.getTypeInfo(field.type);
const length = typeInfo?.length ? field.enumValues || field.numLength || field.charLength || field.datePrecision : false;
const length = typeInfo?.length
? field.enumValues ||
field.numLength ||
field.numPrecision ||
field.charLength ||
field.datePrecision
: false;
newColumns.push(`"${field.name}"
${field.type.toUpperCase()}${length ? `(${length})` : ''}

View File

@ -57,7 +57,6 @@ const iconFlip = computed(() => {
}
.flip-both {
/* flip both */
transform: scale(-1, -1);
}
</style>