Skip to content

Use parameterized templates in migrations #2726

New issue

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

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

Already on GitHub? # to your account

Open
kriswuollett opened this issue Sep 1, 2023 · 0 comments
Open

Use parameterized templates in migrations #2726

kriswuollett opened this issue Sep 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kriswuollett
Copy link

Is your feature request related to a problem? Please describe.

Want to host multiple copies of the same app, possibly for multi-tenancy, in the same database for cloud cost savings.

Describe the solution you'd like

  • support template files from handlebars-rust auto-detected with .hbs file extension
  • add a --data parameter to the cli to pass the json data context
  • add sql-related handlebars helpers to make sure things like identifiers are correct

Describe alternatives you've considered

Keep migrations in alembic.

Additional context

Also need migration table renaming to land, see #1698.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant