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.
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.