Support for batch migrate and rollback operations? #359
Replies: 3 comments
-
How are you envisaging the batch is declared? I think this could be partially solved by #18 (migrating or rolling back to a specific migration). I'm not sure of the context for your release (e.g. whether you are publishing something that customers would individually run migrations), but an approach I would consider is squashing your migrations prior to a release into a single file. You could still write each migration in an idempotent manner ( |
Beta Was this translation helpful? Give feedback.
-
This seems the same as issue #243 I suggest being able to specify specific migrations with |
Beta Was this translation helpful? Give feedback.
-
PR #438 adds a syntax for multiple migrations (or maybe you just wanted all unapplied in which case you wouldn't need that). Would need an additional flag for batching. |
Beta Was this translation helpful? Give feedback.
-
It will be really nice if there is a support to migrate and rollback in batches.
Generally when releases might contain multiple migrations, it should be
possible to group these into batches and then refer by the batch name.
Something like:
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions