Skip to content

Migrations per environment #413

@marcelloh

Description

@marcelloh

Add possibility to decide if the upcoming migration should run or be skipped

If goose would run a migration, if could always check a function isAllowedMigration(name, content),
just before it wants to run the migration.
If I could override that function, it would be easy to have migrations that would only run on a certain environment.

That would be very helpful.

Or have a way to feed Goose an array of filenames (instead of embedFS), then I can do the same.

So this is about seeding from the moment there is a table, so if any migrations will update fields, add fields, delete fields, the end-result can be tested (and each developer has the same data-set to begin with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions