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 | |
parent | 5850308a3785b440872409e76da69acdebaca5da (diff) | |
download | gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.tar.gz gitea-70fbcd2f27a027477dd18aef0d0f216bf0fb8230.zip |
models: rename EnableTidb to EnableTiDB
-rw-r--r-- | models/models.go | 2 | ||||
-rw-r--r-- | models/models_tidb.go | 2 | ||||
-rw-r--r-- | routers/install.go | 6 |
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" } } |