mirror of https://github.com/Fabio286/antares.git
fix(SQLite): unable to change integer fields length to 0, fixes #732
This commit is contained in:
parent
ab0f91b448
commit
3b9228a723
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue