mirror of https://github.com/cloudreve/Cloudreve
Update init.go
parent
fec549f5ec
commit
7beb8364ae
|
@ -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…
Reference in New Issue