aboutsummaryrefslogtreecommitdiffstats
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
parent5850308a3785b440872409e76da69acdebaca5da (diff)
downloadgitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.tar.gz
gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.zip
models: rename EnableTidb to EnableTiDB
-rw-r--r--models/models.go2
-rw-r--r--models/models_tidb.go2
-rw-r--r--routers/install.go6
3 files changed, 5 insertions, 5 deletions
diff --git a/models/models.go b/models/models.go
index a8671c9f9b..ace9a2167a 100644
--- a/models/models.go
+++ b/models/models.go
@@ -53,7 +53,7 @@ var (
}
EnableSQLite3 bool
- EnableTidb bool
+ EnableTiDB bool
)
func init() {
diff --git a/models/models_tidb.go b/models/models_tidb.go
index fad25cf007..4dadd00a9b 100644
--- a/models/models_tidb.go
+++ b/models/models_tidb.go
@@ -13,6 +13,6 @@ import (
)
func init() {
- EnableTidb = true
+ EnableTiDB = true
log.SetLevelByString("error")
}
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"
}
}