interledger / interledger/interledger-app
Split migrations from the current executable
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5
- Forks
- 0
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 7
Description
Now, the current code produces one binary that deals with everything, including MIGRATIONS.
Preserve the same logic, but produce another binary that deals with migrations.
- Split into two binaries, one for migrations, the other remains the same.
- The scheme uses one "schema.hcl"; split this into groups of multiple tables, context-based, e.g., everything starting with "XAGO_" should be "xago.hcl" containing the tables needed.
- By default, the command runs with no flags and spits the SQL into stdout. This should be the default mode. ./binary -> outputs the SQL generated, ./binary --some-other-flag-with-no-name-now, it does the migration "--prod" for now.
- Testing, using the current migration scheme, compare with the new one; the output should be identical.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the current migration scheme and schema.hcl to understand how the existing binary produces and applies migrations. Separate the migration handling from the other executable, organize tables into context-based schema files such as xago.hcl, and verify that the default command writes SQL to stdout while the migration mode applies it. Compare the new output with the current scheme and require identical SQL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100