You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered: