fix(db): 将MariaDB数据库类型映射到MySQL类型

pull/2587/head
Anye 2025-06-27 19:59:11 +08:00
parent f38f32f9f5
commit 3366e89901
2 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,9 @@ func NewRawEntClient(l logging.Logger, config conf.ConfigProvider) (*ent.Client,
if confDBType == conf.SQLite3DB || confDBType == "" {
confDBType = conf.SQLiteDB
}
if confDBType == "mariadb" {
confDBType = conf.MySqlDB
}
var (
err error

View File

@ -10,6 +10,7 @@ var (
MySqlDB DBType = "mysql"
MsSqlDB DBType = "mssql"
PostgresDB DBType = "postgres"
MariaDB DBType = "mariadb"
)
// Database 数据库