File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ type InitDBService struct{}
20
20
func (initDBService * InitDBService ) InitDB (conf request.InitDB ) error {
21
21
switch conf .DBType {
22
22
case "mysql" :
23
- return initDBService .initMsqlDB (conf )
23
+ return initDBService .initMysqlDB (conf )
24
24
case "pgsql" :
25
25
return initDBService .initPgsqlDB (conf )
26
26
default :
27
- return initDBService .initMsqlDB (conf )
27
+ return initDBService .initMysqlDB (conf )
28
28
}
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ func (initDBService *InitDBService) writeMysqlConfig(mysql config.Mysql) error {
29
29
return global .GVA_VP .WriteConfig ()
30
30
}
31
31
32
- // initMsqlDB 创建数据库并初始化 mysql
32
+ // initMysqlDB 创建数据库并初始化 mysql
33
33
// Author [piexlmax](https://github.com/piexlmax)
34
34
// Author [SliverHorn](https://github.com/SliverHorn)
35
35
// Author: [songzhibin97](https://github.com/songzhibin97)
36
- func (initDBService * InitDBService ) initMsqlDB (conf request.InitDB ) error {
36
+ func (initDBService * InitDBService ) initMysqlDB (conf request.InitDB ) error {
37
37
dsn := conf .MysqlEmptyDsn ()
38
38
createSql := fmt .Sprintf ("CREATE DATABASE IF NOT EXISTS `%s` DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;" , conf .DBName )
39
39
if err := initDBService .createDatabase (dsn , "mysql" , createSql ); err != nil {
You can’t perform that action at this time.
0 commit comments