Skip to content

Commit

Permalink
Try to fix locked db message, fix adejoux#23
Browse files Browse the repository at this point in the history
  • Loading branch information
sbengo committed Jun 4, 2018
1 parent b3da6c4 commit a2c5cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (dbc *DatabaseCfg) InitDB() {
switch dbc.Type {
case "sqlite3":
dbtype = "sqlite3"
datasource = dataDir + "/" + dbc.Name + ".db"
datasource = dataDir + "/" + dbc.Name + ".db?cache=shared&mode=rwc"
case "mysql":
dbtype = "mysql"
protocol := "tcp"
Expand Down

0 comments on commit a2c5cc4

Please sign in to comment.