diff options
Diffstat (limited to 'cmd/convert.go')
-rw-r--r-- | cmd/convert.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/convert.go b/cmd/convert.go index cb0510c722..23a3d8dbe9 100644 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -31,9 +31,9 @@ func runConvert(ctx *cli.Context) error { log.Trace("AppWorkPath: %s", setting.AppWorkPath) log.Trace("Custom path: %s", setting.CustomPath) log.Trace("Log path: %s", setting.LogRootPath) - models.LoadConfigs() + setting.InitDBConfig() - if models.DbCfg.Type != "mysql" { + if !setting.Database.UseMySQL { fmt.Println("This command can only be used with a MySQL database") return nil } |