diff options
Diffstat (limited to 'modules/setting/database.go')
-rw-r--r-- | modules/setting/database.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/setting/database.go b/modules/setting/database.go index 7d082d1379..3d13ee10c8 100644 --- a/modules/setting/database.go +++ b/modules/setting/database.go @@ -62,6 +62,11 @@ func InitDBConfig() { sec := Cfg.Section("database") Database.Type = sec.Key("DB_TYPE").String() defaultCharset := "utf8" + Database.UseMySQL = false + Database.UseSQLite3 = false + Database.UsePostgreSQL = false + Database.UseMSSQL = false + switch Database.Type { case "sqlite3": Database.UseSQLite3 = true |