Fix: handler move files in top levels

This commit is contained in:
HFO4
2019-12-02 14:47:55 +08:00
parent d28e5632d5
commit adf7f3deeb
5 changed files with 115 additions and 38 deletions

View File

@ -29,7 +29,7 @@ func Init() {
db, err = gorm.Open("sqlite3", ":memory:")
} else {
if conf.DatabaseConfig.Type == "UNSET" {
// 未指定数据库时使用Sqlite
// 未指定数据库时使用SQLite
db, err = gorm.Open("sqlite3", "cloudreve.db")
} else {
db, err = gorm.Open(conf.DatabaseConfig.Type, fmt.Sprintf("%s:%s@(%s)/%s?charset=utf8&parseTime=True&loc=Local",