diff options
Diffstat (limited to 'modules/doctor/doctor.go')
-rw-r--r-- | modules/doctor/doctor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go index 8c0d467304..d5cc4a1850 100644 --- a/modules/doctor/doctor.go +++ b/modules/doctor/doctor.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - "code.gitea.io/gitea/models" + "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" ) @@ -47,7 +47,7 @@ func initDBDisableConsole(disableConsole bool) error { setting.InitDBConfig() setting.NewXORMLogService(disableConsole) - if err := models.SetEngine(); err != nil { + if err := db.SetEngine(); err != nil { return fmt.Errorf("models.SetEngine: %v", err) } return nil |