From cbbe21cd7beb5e9adc7885eca605b70e96f45c42 Mon Sep 17 00:00:00 2001 From: Chareice Date: Fri, 19 Jan 2024 14:09:12 +0800 Subject: [PATCH] chore: mysql unsigned number field --- packages/core/database/src/view/field-type-map.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/core/database/src/view/field-type-map.ts b/packages/core/database/src/view/field-type-map.ts index 54453ad610..31ae715cb8 100644 --- a/packages/core/database/src/view/field-type-map.ts +++ b/packages/core/database/src/view/field-type-map.ts @@ -36,6 +36,11 @@ const mysql = { smallint: ['integer', 'boolean'], tinyint: ['integer', 'boolean'], mediumint: ['integer', 'boolean'], + + 'smallint unsigned': ['integer', 'boolean'], + 'tinyint unsigned': ['integer', 'boolean'], + 'mediumint unsigned': ['integer', 'boolean'], + char: 'string', date: 'date', time: 'time', @@ -43,8 +48,10 @@ const mysql = { text: 'text', longtext: 'text', int: 'integer', + 'int unsigned': 'integer', integer: 'integer', bigint: 'bigInt', + 'bigint unsigned': 'bigInt', float: 'float', double: 'float', boolean: 'boolean',