Make `submissions_canceled` and `add_chunks_done_to_submissions_failed` migrations bidirectional

Open Beginner friendly
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
sql
Domain
ci-cd, database

Research direction

Find the migrations named submissions_canceled and add_chunks_done_to_submissions_failed, then compare their .up.sql and .down.sql files with neighboring reversible migrations. Check the existing CI migration command, add the missing reverse migrations, and verify CI rejects migrations that are not bidirectional.

Written by the indexing model from the issue text.

Description

Most of the migrations have both a .up.sql and a .down.sql.

However, it seems like we missed this in three recent PRs

Making those migrations reversible is only a couple of minutes of work, so I think it would be good to do so.

  • Check this in CI so the wrong command is no longer used.
Dominant language
Rust
Stars
96
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from channable/opsqueue

All issues in channable/opsqueue

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.