Skip to content

feat: migration templates with CLI flags and README docs#780

Open
thinhbuzz wants to merge 3 commits into
amacneil:mainfrom
thinhbuzz:main
Open

feat: migration templates with CLI flags and README docs#780
thinhbuzz wants to merge 3 commits into
amacneil:mainfrom
thinhbuzz:main

Conversation

@thinhbuzz

Copy link
Copy Markdown
Contributor

Summary

Adds optional SQL migration templates for dbmate new, plus README documentation.

Changes

  • feat: Global flags --templates-dir, --template-default (and env vars); dbmate new --template; NewMigrationTemplate and DB fields; tests in db_test.go.
  • docs: README section on templates, TOC, CLI options list, and link from Migration files.

Checklist

  • Tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant