mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Move schema version check after migration execution
This commit is contained in:
parent
592151bdb6
commit
53dd2c1f1d
1 changed files with 4 additions and 4 deletions
|
@ -115,10 +115,6 @@ func Parse() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := database.IsSchemaUpToDate(db); err != nil {
|
|
||||||
logger.Fatal(`You must run the SQL migrations, %v`, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
store := storage.NewStorage(db)
|
store := storage.NewStorage(db)
|
||||||
|
|
||||||
if flagResetFeedErrors {
|
if flagResetFeedErrors {
|
||||||
|
@ -146,6 +142,10 @@ func Parse() {
|
||||||
database.Migrate(db)
|
database.Migrate(db)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := database.IsSchemaUpToDate(db); err != nil {
|
||||||
|
logger.Fatal(`You must run the SQL migrations, %v`, err)
|
||||||
|
}
|
||||||
|
|
||||||
// Create admin user and start the deamon.
|
// Create admin user and start the deamon.
|
||||||
if config.Opts.CreateAdmin() {
|
if config.Opts.CreateAdmin() {
|
||||||
createAdmin(store)
|
createAdmin(store)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue