mirror of https://github.com/cloudreve/Cloudreve
fix(db): 将MariaDB数据库类型映射到MySQL类型
parent
f38f32f9f5
commit
3366e89901
|
@ -52,6 +52,9 @@ func NewRawEntClient(l logging.Logger, config conf.ConfigProvider) (*ent.Client,
|
||||||
if confDBType == conf.SQLite3DB || confDBType == "" {
|
if confDBType == conf.SQLite3DB || confDBType == "" {
|
||||||
confDBType = conf.SQLiteDB
|
confDBType = conf.SQLiteDB
|
||||||
}
|
}
|
||||||
|
if confDBType == "mariadb" {
|
||||||
|
confDBType = conf.MySqlDB
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
|
|
|
@ -10,6 +10,7 @@ var (
|
||||||
MySqlDB DBType = "mysql"
|
MySqlDB DBType = "mysql"
|
||||||
MsSqlDB DBType = "mssql"
|
MsSqlDB DBType = "mssql"
|
||||||
PostgresDB DBType = "postgres"
|
PostgresDB DBType = "postgres"
|
||||||
|
MariaDB DBType = "mariadb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Database 数据库
|
// Database 数据库
|
||||||
|
|
Loading…
Reference in New Issue