Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

automatical
Copy link

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

@davidjdixon
Copy link

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)

@robmorgan
Copy link
Member

I'm waiting to see if theres further community support before merging

@jvengeon
Copy link

jvengeon commented Sep 3, 2015

I would like also migrate or rollback a specific version.

@Timethor
Copy link

This would be a great feature addition

@fabianhoward
Copy link

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.

@rquadling
Copy link
Collaborator

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

@rquadling
Copy link
Collaborator

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

@voidcontext
Copy link

+1 for this feature, it would be really helpful.

@shadowhand
Copy link
Contributor

@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 shadowhand closed this Dec 30, 2015
@automatical
Copy link
Author

@shadowhand Sure, I'll get this to you at some point during the holiday break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants