summaryrefslogtreecommitdiff
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/models.go b/models.go
index eeb49fc..8c2f968 100644
--- a/models.go
+++ b/models.go
@@ -259,11 +259,9 @@ func NewDB(database *sql.DB) *dbHandler {
log.Panicf("%d statements failed to prepare", len(failedStatements))
}
- version, err := migrate.Exec(database, "sqlite3", dbmig.Migrations(), migrate.Up)
+ _, err := migrate.Exec(database, "sqlite3", dbmig.Migrations(), migrate.Up)
if err != nil {
log.Panicf("running database migration failed: %v", err)
- } else {
- log.Infof("database is now at version %d", version)
}
return handler
}