mirror of https://github.com/Fabio286/antares.git
fix(SQLite): field length lost when editing a table, fixes #664
This commit is contained in:
parent
7e36260cdb
commit
b321e64b83
|
@ -296,7 +296,13 @@ export class SQLiteClient extends AntaresCore {
|
||||||
// ADD FIELDS
|
// ADD FIELDS
|
||||||
fields.forEach(field => {
|
fields.forEach(field => {
|
||||||
const typeInfo = this.getTypeInfo(field.type);
|
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}"
|
newColumns.push(`"${field.name}"
|
||||||
${field.type.toUpperCase()}${length ? `(${length})` : ''}
|
${field.type.toUpperCase()}${length ? `(${length})` : ''}
|
||||||
|
|
|
@ -57,7 +57,6 @@ const iconFlip = computed(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
.flip-both {
|
.flip-both {
|
||||||
/* flip both */
|
|
||||||
transform: scale(-1, -1);
|
transform: scale(-1, -1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue