jackc / jackc/tern

Add migrations path to config

Open
#64 6 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
86
PR merge metrics
No merged PRs in 30d

Description

My use case: I always run `tern --migrations ./migrations ...` so the config is in the root of the project and migrations are in `./migrations`.
So I would like to omit `--migrations ./migrations` when calling commands. What if we can have it in the config?

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.

Research direction

Start by tracing how tern loads its config and how the --migrations option is handled. Add support for specifying the migrations directory in the config, while preserving the command-line option, and verify that commands use the configured path when the option is omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.