From 126f169094285a4c1a34b9e77e0c3c9244afbd75 Mon Sep 17 00:00:00 2001 From: Naseem Date: Sat, 20 Feb 2021 16:25:08 -0500 Subject: [PATCH] fix: make tinyint a number (#10) 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 --- src/column-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/column-map.ts b/src/column-map.ts index a7cfdfe..8a5ffe1 100644 --- a/src/column-map.ts +++ b/src/column-map.ts @@ -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'