summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index f648a2d..1d7d3e1 100644
--- a/main.go
+++ b/main.go
@@ -36,7 +36,10 @@ func main() {
db := model.OpenDB(filepath.Join(storage.Path, "ceres.sqlite3"))
defer db.Close()
- db.Migrate(version)
+ err := db.Migrate()
+ if err != nil {
+ log.Fatal(err)
+ }
if flags.examples {
db.CreateExamples()