aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/migrate.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/migrate.go')
-rw-r--r--cmd/migrate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/migrate.go b/cmd/migrate.go
index dde50a455f..1fa1d09e25 100644
--- a/cmd/migrate.go
+++ b/cmd/migrate.go
@@ -30,7 +30,7 @@ func runMigrate(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 err := models.NewEngine(migrations.Migrate); err != nil {
log.Fatal("Failed to initialize ORM engine: %v", err)