Skip to content

Commit

Permalink
fix: make tinyint a number
Browse files Browse the repository at this point in the history
while often used as a boolean application should convert it to a boolean if so desired, it is really a number

Signed-off-by: naseemkullah <naseem@transit.app>
  • Loading branch information
naseemkullah committed Jan 18, 2021
1 parent 711b641 commit 8e9dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/column-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function mapColumn(Table: Table, enumTypes: Enums): Table {
column.tsType = 'number'
return column
case 'tinyint':
column.tsType = 'boolean'
column.tsType = 'number'
return column
case 'json':
column.tsType = 'JSONValue'
Expand Down

0 comments on commit 8e9dcf0

Please sign in to comment.