Add idempotent migration for picks_expires_at / picks_started_at #73
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/migration-picks-expires-at"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
0116addedpicks_expires_atandpicks_started_atcolumns todraft_timers, but was generated with an out-of-order timestamp and was never applied to the DB — causingPostgresError: column "picks_expires_at" does not existwhen starting a draft.0117re-adds both columns withIF NOT EXISTSguards, making the apply safe regardless of DB state.Test plan
npm run db:migrate— should apply cleanly with no errors