diff options
author | Unknwon <u@gogs.io> | 2016-08-11 14:38:45 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 14:38:45 -0700 |
commit | 70fbcd2f27a027477dd18aef0d0f216bf0fb8230 (patch) | |
tree | bd493cbe7b1b334b7a3f74dfc69bbff2c7de6023 /routers/install.go | |
parent | 5850308a3785b440872409e76da69acdebaca5da (diff) | |
download | gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.tar.gz gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.zip |
models: rename EnableTidb to EnableTiDB
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go index 75f38a7931..676b0b0df8 100644 --- a/routers/install.go +++ b/routers/install.go @@ -80,7 +80,7 @@ func GlobalInit() { if models.EnableSQLite3 { log.Info("SQLite3 Supported") } - if models.EnableTidb { + if models.EnableTiDB { log.Info("TiDB Supported") } if setting.SupportMiniWinService { @@ -110,7 +110,7 @@ func InstallInit(ctx *context.Context) { if models.EnableSQLite3 { dbOpts = append(dbOpts, "SQLite3") } - if models.EnableTidb { + if models.EnableTiDB { dbOpts = append(dbOpts, "TiDB") } ctx.Data["DbOptions"] = dbOpts @@ -134,7 +134,7 @@ func Install(ctx *context.Context) { ctx.Data["CurDbOption"] = "SQLite3" } case "tidb": - if models.EnableTidb { + if models.EnableTiDB { ctx.Data["CurDbOption"] = "TiDB" } } |