Skip to content

Commit

Permalink
Return an error should it happen in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Dec 29, 2024
1 parent c81e17c commit 9dbcbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ var migrations = []func(tx *sql.Tx, driver string) error{
func(tx *sql.Tx, driver string) (err error) {
if driver == "postgresql" {
if _, err = tx.Exec(`ALTER TABLE users DROP COLUMN extra;`); err != nil {
return nil
return err
}
}
_, err = tx.Exec(`
Expand Down

0 comments on commit 9dbcbd4

Please sign in to comment.