1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Check during startup if the database schema is up to date

This commit is contained in:
Frédéric Guillot 2020-03-20 19:56:06 -07:00
parent 05b88c8add
commit e494d6e381
2 changed files with 16 additions and 2 deletions

View file

@ -115,6 +115,10 @@ func Parse() {
return
}
if err := database.IsSchemaUpToDate(db); err != nil {
logger.Fatal(`You must run the SQL migrations, %v`, err)
}
store := storage.NewStorage(db)
if flagResetFeedErrors {