From ef08ccd2ee6b4649c253332c92c190aed751a1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=8F=E5=86=9B?= <346944475@qq.com> Date: Wed, 27 May 2020 18:10:37 +0800 Subject: [PATCH] change tinyint(1) to bool change tinyint(1) to bool --- data/view/cnf/def.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/view/cnf/def.go b/data/view/cnf/def.go index 9d61075..a252078 100644 --- a/data/view/cnf/def.go +++ b/data/view/cnf/def.go @@ -23,8 +23,8 @@ var TypeMysqlDicMp = map[string]string{ "bit(1)": "int8", "tinyint": "int8", "tinyint unsigned": "uint8", - "tinyint(1)": "int8", - "tinyint(1) unsigned": "int8", + "tinyint(1)": "bool", + "tinyint(1) unsigned": "bool", "json": "string", "text": "string", "timestamp": "time.Time",