Skip to content

Commit

Permalink
fix: move bigint to string data type (#31)(@davedefiq)
Browse files Browse the repository at this point in the history
  • Loading branch information
davedefiq committed Jan 21, 2022
1 parent f4ed2eb commit 83716ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils/data-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ export type DataType = 'string' | 'number' | 'float' | 'datetime' | 'date'
const NUMBER = [
// PrimaryGeneratedColumnType:
'int', 'int2', 'int4', 'int8', 'integer', 'tinyint', 'smallint',
'mediumint', 'bigint', 'dec', 'decimal', 'fixed', 'numeric', 'number',
'mediumint', 'dec', 'decimal', 'fixed', 'numeric', 'number',

// WithWidthColumnType:
'tinyint', 'smallint', 'mediumint', 'int', 'bigint',
'tinyint', 'smallint', 'mediumint', 'int',

// SimpleColumnType:
'int2', 'integer', 'int4', 'int8', 'int64', 'unsigned big int', 'float4', 'float8',
]

const STRING = [
// PrimaryGeneratedColumnType
'bigint',

// SpatialColumnType:
'geometry', 'geography',

Expand Down

0 comments on commit 83716ee

Please sign in to comment.