Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for templates when creating a new migration #530

Closed
wants to merge 3 commits into from

Conversation

jprokay
Copy link

@jprokay jprokay commented Mar 14, 2024

Inspired by Sqitch Templates

Concerns:
I set the default directory to ~/.config/dbmate/templates similar to sqitch. Should we consider different default paths based on the OS?
There are potential issues with needing to escape characters passed in via the CLI as mentioned in the #439

@amacneil
Copy link
Owner

Have you found storing templates in your home folder useful? I would expect something like that to live in your repo.

@jprokay
Copy link
Author

jprokay commented Mar 19, 2024

@amacneil that's a great question. I do think most of my templates end up in the repo eventually. It depends on if I am working with others. The home folder can be convenient as a generic place to hold templates that I would use across different projects.

@fast-90
Copy link

fast-90 commented Mar 1, 2025

Is this still planned to be upstreamed? I would love to use this in a stable version of dbmate.

@amacneil
Copy link
Owner

amacneil commented Mar 3, 2025

No. Having templates stored outside of your code repo seems against the KISS approach of dbmate.

You can also do this outside of dbmate easily by copy/pasting files.

@amacneil amacneil closed this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants