Update init.go

pull/2560/head
Anye 2025-06-23 16:14:02 +08:00 committed by GitHub
parent fec549f5ec
commit 7beb8364ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ func Init() error {
confDBType = "sqlite"
}
// 兼容 "mariadb" 数据库
if confDBType == "mariadb" {
confDBType = "mysql"
}
switch confDBType {
case "UNSET", "sqlite":
// 未指定数据库或者明确指定为 sqlite 时,使用 SQLite 数据库