Browse Source

#1626 default db_type

tags/v1.2.0-rc1
Unknwon 10 years ago
parent
commit
944cfd7079
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      routers/install.go

+ 8
- 4
routers/install.go View File

@@ -104,10 +104,14 @@ func Install(ctx *middleware.Context) {
form.DbName = models.DbCfg.Name
form.DbPath = models.DbCfg.Path

if models.EnableSQLite3 {
ctx.Data["CurDbOption"] = "SQLite3" // Default when enabled.
} else {
ctx.Data["CurDbOption"] = "MySQL"
ctx.Data["CurDbOption"] = "MySQL"
switch models.DbCfg.Type {
case "postgres":
ctx.Data["CurDbOption"] = "PostgreSQL"
case "sqlite3":
if models.EnableSQLite3 {
ctx.Data["CurDbOption"] = "SQLite3" // Default when enabled.
}
}

// Application general settings


Loading…
Cancel
Save