summaryrefslogtreecommitdiffstats
path: root/cmd/cmd.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-08-24 11:24:45 +0200
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-08-24 11:24:45 +0200
commitf83db078f0603c775cd1b1bb016f996b65a04835 (patch)
tree9895f852c768d43b384ba36259b44d9506b04093 /cmd/cmd.go
parentDocument possibility to limit API Repo search to topics only. (#7957) (diff)
downloadforgejo-f83db078f0603c775cd1b1bb016f996b65a04835.tar.xz
forgejo-f83db078f0603c775cd1b1bb016f996b65a04835.zip
Move database settings from models to setting (#7806)
* move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
Diffstat (limited to 'cmd/cmd.go')
-rw-r--r--cmd/cmd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go
index 5a55ac318c..d05eb8b1a2 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -38,7 +38,7 @@ func initDB() error {
func initDBDisableConsole(disableConsole bool) error {
setting.NewContext()
- models.LoadConfigs()
+ setting.InitDBConfig()
setting.NewXORMLogService(disableConsole)
if err := models.SetEngine(); err != nil {