From c45a31c9e4dba69d2963f893b9fad8ebecfbaa26 Mon Sep 17 00:00:00 2001 From: zeropool <1285055670@qq.com> Date: Thu, 20 Dec 2018 21:27:02 +0800 Subject: [PATCH] Update meta.go --- meta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.go b/meta.go index 3ea8ca91..ee666ee5 100644 --- a/meta.go +++ b/meta.go @@ -235,7 +235,7 @@ func (meta *Meta) updateMeta() { } else { meta.Type = "string" } - } else if text, ok := utils.ParseTagOption(tag.Get("sql"))["TYPE"]; ok && text == "text" { + } else if text, ok := utils.ParseTagOption(tag.Get("sql"))["TYPE"]; ok && (text == "text" || text == "longtext" || text == "longblob") { meta.Type = "text" } else { meta.Type = "string"