interledger / interledger/interledger-app

Split migrations from the current executable

Open
#180 1 comment 0 reactions 0 assignees View on GitHub

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.

  1. Split into two binaries, one for migrations, the other remains the same.
  2. 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.
  3. 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.
  4. Testing, using the current migration scheme, compare with the new one; the output should be identical.

Contributor guide

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.