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: always migration(s) #788

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

Feature: always migration(s) #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. For example, reference tables or a server admin user.

However, when you squash migrations you need to remember those bespoke migrations and include them in the 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 sort of "data migrations" outside the normal migration versioning flow.

Related:

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