mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
fixed sqlite issue introduced by #14709
This commit is contained in:
parent
a067862a0a
commit
a2dd6f378f
@ -261,6 +261,7 @@ func (ss *SqlStore) buildConnectionString() (string, error) {
|
||||
ss.dbCfg.Path = filepath.Join(ss.Cfg.DataPath, ss.dbCfg.Path)
|
||||
}
|
||||
os.MkdirAll(path.Dir(ss.dbCfg.Path), os.ModePerm)
|
||||
cnnstr = fmt.Sprintf("file:%s?cache=%s&mode=rwc", ss.dbCfg.Path, ss.dbCfg.CacheMode)
|
||||
cnnstr += ss.buildExtraConnectionString('&')
|
||||
default:
|
||||
return "", fmt.Errorf("Unknown database type: %s", ss.dbCfg.Type)
|
||||
|
Loading…
Reference in New Issue
Block a user