feat(db): add mariadb alias (#2560)

pull/2573/head
Anye 3 months ago committed by GitHub
parent b11188fa50
commit d1bbfd4bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -28,6 +28,11 @@ func Init() error {
if confDBType == "sqlite3" { if confDBType == "sqlite3" {
confDBType = "sqlite" confDBType = "sqlite"
} }
// 兼容 "mariadb" 数据库
if confDBType == "mariadb" {
confDBType = "mysql"
}
switch confDBType { switch confDBType {
case "UNSET", "sqlite": case "UNSET", "sqlite":

Loading…
Cancel
Save