summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-11 14:38:45 -0700
committerUnknwon <u@gogs.io>2016-08-11 14:38:45 -0700
commit70fbcd2f27a027477dd18aef0d0f216bf0fb8230 (patch)
treebd493cbe7b1b334b7a3f74dfc69bbff2c7de6023 /routers
parent5850308a3785b440872409e76da69acdebaca5da (diff)
downloadgitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.tar.gz
gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.zip
models: rename EnableTidb to EnableTiDB
Diffstat (limited to 'routers')
-rw-r--r--routers/install.go6
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"
}
}