diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e761496..9bfdd23 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,9 @@ - + + + diff --git a/dri/db/auto.go b/dri/db/auto.go index 65cd02c..e6069e4 100644 --- a/dri/db/auto.go +++ b/dri/db/auto.go @@ -9,8 +9,10 @@ import ( func SetDB(appIns *hotime.Application) { if appIns.Config.GetString("dbType") == "sqlite" || strings.Index(appIns.Config.GetString("dbName"), ".db") == len(appIns.Config.GetString("dbName"))-3 { + appIns.Config["dbType"] = "sqlite" sqlite.SetDB(appIns) } else { + appIns.Config["dbType"] = "mysql" mysql.SetDB(appIns) } }