Add database schema versioning & migration skeleton (#382)

This commit is contained in:
Christian Muehlhaeuser
2020-11-19 01:49:54 +01:00
committed by GitHub
parent 30f8b77c25
commit 7c71a68da5
2 changed files with 72 additions and 4 deletions

View File

@@ -63,7 +63,10 @@ func main() {
go metrics.Start()
data.SetupPersistence()
err := data.SetupPersistence()
if err != nil {
log.Fatalln("failed to open database", err)
}
// starts the core
if err := core.Start(); err != nil {