From 552dffc1658ed2c6edebbd7b431c0658dceb11b8 Mon Sep 17 00:00:00 2001 From: engigu Date: Fri, 26 Jan 2024 12:58:41 +0800 Subject: [PATCH] fix: mysql8.0 init data error --- models/settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/settings.go b/models/settings.go index 38c5415..f601a98 100644 --- a/models/settings.go +++ b/models/settings.go @@ -10,7 +10,7 @@ type Settings struct { Section string `json:"section" gorm:"type:varchar(100) comment '实例类型';default:'';index:section"` Key string `json:"key" gorm:"type:varchar(100) comment '实例类型';default:'';"` - Value string `json:"value" gorm:"type:text comment '实例类型';default:'';"` + Value string `json:"value" gorm:"type:text comment '实例类型';"` } // AddOneSetting 添加一条设置