Merge branch 'v4.4.x'

This commit is contained in:
Torkel Ödegaard 2017-08-08 09:28:41 +02:00
commit 7c14ade623

View File

@ -146,7 +146,7 @@ func getEngine() (*xorm.Engine, error) {
DbCfg.Path = filepath.Join(setting.DataPath, DbCfg.Path)
}
os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
cnnstr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc&_loc=Local"
cnnstr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc"
default:
return nil, fmt.Errorf("Unknown database type: %s", DbCfg.Type)
}