1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Return an error should it happen in migrations

This commit is contained in:
jvoisin 2024-12-29 16:23:24 +01:00 committed by Frédéric Guillot
parent c81e17c20d
commit 8d4954e29b

View file

@ -496,7 +496,7 @@ var migrations = []func(tx *sql.Tx, driver string) error{
func(tx *sql.Tx, driver string) (err error) { func(tx *sql.Tx, driver string) (err error) {
if driver == "postgresql" { if driver == "postgresql" {
if _, err = tx.Exec(`ALTER TABLE users DROP COLUMN extra;`); err != nil { if _, err = tx.Exec(`ALTER TABLE users DROP COLUMN extra;`); err != nil {
return nil return err
} }
} }
_, err = tx.Exec(` _, err = tx.Exec(`