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

This commit is contained in:
Fabio Di Stasio 2024-01-13 16:28:31 +01:00
parent ab0f91b448
commit 3b9228a723
1 changed files with 1 additions and 1 deletions

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,