We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9821f commit 3c6c150Copy full SHA for 3c6c150
modules/setting/database.go
@@ -13,6 +13,8 @@ import (
13
"path/filepath"
14
"strings"
15
"time"
16
+
17
+ "code.gitea.io/gitea/modules/log"
18
)
19
20
var (
@@ -83,6 +85,10 @@ func InitDBConfig() {
83
85
Database.Schema = sec.Key("SCHEMA").String()
84
86
Database.SSLMode = sec.Key("SSL_MODE").MustString("disable")
87
Database.Charset = sec.Key("CHARSET").In(defaultCharset, []string{"utf8", "utf8mb4"})
88
+ if Database.UseMySQL && defaultCharset != "utf8mb4" {
89
+ log.Error("Deprecated database mysql charset utf8 support, please use utf8mb4 or convert utf8 to utf8mb4.")
90
+ }
91
92
Database.Path = sec.Key("PATH").MustString(filepath.Join(AppDataPath, "gitea.db"))
93
Database.Timeout = sec.Key("SQLITE_TIMEOUT").MustInt(500)
94
Database.MaxIdleConns = sec.Key("MAX_IDLE_CONNS").MustInt(2)
0 commit comments