Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ func Init() error {
return fmt.Errorf("Failed to parse db connection - %s", err)
}
switch u.Scheme {
case "scribble":
CentralStore = false
Backend = &ScribbleDatabase{}
case "postgres":
CentralStore = true
Backend = &PostgresDb{}
case "postgresql":
case "postgres", "postgresql":
CentralStore = true
Backend = &PostgresDb{}
case "scribble":
fallthrough
default:
CentralStore = false
Backend = &ScribbleDatabase{}
Expand Down