Browse Source

models: rename EnableTidb to EnableTiDB

for-closed-social
Unknwon 7 years ago
parent
commit
70fbcd2f27
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      models/models.go
  2. +1
    -1
      models/models_tidb.go
  3. +3
    -3
      routers/install.go

+ 1
- 1
models/models.go View File

@ -53,7 +53,7 @@ var (
}
EnableSQLite3 bool
EnableTidb bool
EnableTiDB bool
)
func init() {

+ 1
- 1
models/models_tidb.go View File

@ -13,6 +13,6 @@ import (
)
func init() {
EnableTidb = true
EnableTiDB = true
log.SetLevelByString("error")
}

+ 3
- 3
routers/install.go View File

@ -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"
}
}

Loading…
Cancel
Save