goose icon indicating copy to clipboard operation
goose copied to clipboard

Feature: bootstrap operations

Open mfridman opened this issue 1 year ago • 0 comments

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:

  • https://github.com/pressly/goose/issues/108
  • https://github.com/pressly/goose/issues/472

mfridman avatar Jul 04 '24 14:07 mfridman