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:
parent
05b88c8add
commit
e494d6e381
2 changed files with 16 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue