004_pending_and_more.down.sql migration does not remove river_job_state's pending value. It brings us to situation where we can't apply this migration after rollback.
Steps to reproduce:
apply migration 004 to database
rollback
apply migration 004
Expected behavior:
All migrations applied without error
Actual:
failed: error applying version 004 [UP]: ERROR: enum label "pending" already exists (SQLSTATE 42710)
exit status 1
This PR is meant to fix this behavior by optionally adding pending value during migration application.
Hi guys,
004_pending_and_more.down.sql
migration does not removeriver_job_state
'spending
value. It brings us to situation where we can't apply this migration after rollback.Steps to reproduce:
Expected behavior:
All migrations applied without error
Actual:
This PR is meant to fix this behavior by optionally adding
pending
value during migration application.