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

fix(SQLite): unable to change integer fields length to 0, fixes #732

This commit is contained in:
2024-01-13 16:28:31 +01:00
parent ab0f91b448
commit 3b9228a723

View File

@ -166,7 +166,7 @@ export class SQLiteClient extends BaseClient {
type: type.trim(),
schema: schema,
table: table,
numPrecision: [...NUMBER, ...FLOAT].includes(type) ? length : null,
numLength: [...NUMBER, ...FLOAT].includes(type) ? length : null,
datePrecision: null,
charLength: ![...NUMBER, ...FLOAT].includes(type) ? length : null,
nullable: !field.notnull,