From 3f1e3baaef1e13a83bde50057d4b29115b2f122f Mon Sep 17 00:00:00 2001 From: Chareice Date: Sun, 4 Feb 2024 10:14:12 +0800 Subject: [PATCH] chore: decimal field type --- packages/core/database/src/view/field-type-map.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/database/src/view/field-type-map.ts b/packages/core/database/src/view/field-type-map.ts index 31ae715cb8..42bb0c2d0a 100644 --- a/packages/core/database/src/view/field-type-map.ts +++ b/packages/core/database/src/view/field-type-map.ts @@ -10,7 +10,7 @@ const postgres = { smallint: 'integer', integer: 'integer', bigint: 'bigInt', - decimal: 'float', + decimal: 'decimal', numeric: 'float', real: 'float', 'double precision': 'float', @@ -45,6 +45,7 @@ const mysql = { date: 'date', time: 'time', varchar: 'string', + decimal: 'decimal', text: 'text', longtext: 'text', int: 'integer',