-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to rollback an individual migration without migrations that have... #451
Conversation
…ave happened after it
I would also like to see this kind of feature being added, especially for large teams with different parts of a project, where linear based may only made sense up to a point (especially when testing out individual features etc) |
missing semicolon
I'm waiting to see if theres further community support before merging |
I would like also migrate or rollback a specific version. |
This would be a great feature addition |
This would be really helpful. When merging in development branches of git it often happens that the migrations created are dated before some of the ones already deployed. |
I would find this feature a bit of a problem for views/stored procedures/etc that are dependent upon a specific column existing that can be removed by randomly rolling back a migration. Rolling back should by LIFO (Last In, First Out). |
@fabianhoward, We use a mechanism to rename the migrations in a branch such that they are pushed as close to now as possible rather than when they were created. This is done prior to feature finishing. So, as far as production is concerned, these migrations have just been developed. As each feature branch is closed, its migrations are the most recent ones to add. It works for us (4 devs in 2 countries with 3 different applications and - at the moment - 18 different features being developed across the set). Of course, YMMV. |
+1 for this feature, it would be really helpful. |
@automatical I really like the idea of this change, but it can no longer be merged into the 0.4.x branch, as we are now targeting 0.5.x. Please open a new PR against the 0.5.x-dev branch. Thank you! |
@shadowhand Sure, I'll get this to you at some point during the holiday break. |
... happened after it
There are some situations where migrations may happen out of order of they they are written, this change allows single migrations to be reverted on an individual basis.