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

Feature: bootstrap operations #788

Open
mfridman opened this issue Jul 4, 2024 · 0 comments
Open

Feature: bootstrap operations #788

mfridman opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@mfridman
Copy link
Collaborator

mfridman commented Jul 4, 2024

In many systems, it's quite common to have migration(s) that insert some piece of data that should always be there, such as reference tables or an admin user.

However, when you squash migrations, you need to remember those bespoke migrations and include them in the final squashed migration file.

The alternative solution is to build some tooling that does this at application startup.

I wonder if there's an elegant solution here for goose to manage these sorts of "data migrations" outside the normal schema changes.

Related:

@mfridman mfridman changed the title Feature: always migration(s) Feature: bootstrap operations Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant