From 87c7bcb084ce533b4e4d19e8584a5f139ffe77cf Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Thu, 29 Aug 2024 18:54:44 +0800 Subject: [PATCH] chore: support year data type in mysql (#5123) --- packages/core/database/src/view/field-type-map.ts | 2 +- 1 file changed, 1 insertion(+), 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 8a31465a65..190a3304c8 100644 --- a/packages/core/database/src/view/field-type-map.ts +++ b/packages/core/database/src/view/field-type-map.ts @@ -70,7 +70,7 @@ const mysql = { double: 'float', boolean: 'boolean', decimal: 'decimal', - + year: ['string', 'integer'], datetime: 'date', timestamp: 'date', json: ['json', 'array'],