From 2a20ff0b79fe98a021d0d4a16f4cd3cc3c84b0fa Mon Sep 17 00:00:00 2001 From: longyuan Date: Thu, 27 Jul 2023 13:58:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=20DatabaseMysql=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=9A=84=20From=E5=AD=97=E6=AE=B5=20=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E4=B8=BA=E7=A9=BA=20=E4=BD=86=E6=9C=AA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=B7=B2=E5=AD=98=E5=9C=A8=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84?= =?UTF-8?q?1panel=E5=8D=87=E7=BA=A7=E6=97=B6=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E5=90=AF=E5=8A=A8=20(#1772)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 邵传波 --- backend/app/model/database_mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/model/database_mysql.go b/backend/app/model/database_mysql.go index 9a5137e12..e4b6f2a0e 100644 --- a/backend/app/model/database_mysql.go +++ b/backend/app/model/database_mysql.go @@ -3,7 +3,7 @@ package model type DatabaseMysql struct { BaseModel Name string `json:"name" gorm:"type:varchar(256);not null"` - From string `json:"type" gorm:"type:varchar(256);not null"` + From string `json:"type" gorm:"type:varchar(256);not null;default:'local'"` MysqlName string `json:"mysqlName" gorm:"type:varchar(64);not null"` Format string `json:"format" gorm:"type:varchar(64);not null"` Username string `json:"username" gorm:"type:varchar(256);not null"`