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

Migrations revert in the wrong order when going to "0" #2695

Closed
natemcmaster opened this issue Jul 23, 2015 · 1 comment
Closed

Migrations revert in the wrong order when going to "0" #2695

natemcmaster opened this issue Jul 23, 2015 · 1 comment
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@natemcmaster
Copy link
Contributor

Apply-Migration 0 unapplies in the wrong order. It starts with the oldest migration. The first should be last and the last should be first.

@bricelam
Copy link
Contributor

Looks like I missed a call to .OrderByDescending(m => m.Id) on line 131 of Migrator.cs.

@bricelam bricelam changed the title Migrations unapply in the wrong order Migrations revert in the wrong order when going to "0" Jul 23, 2015
@rowanmiller rowanmiller added this to the 7.0.0 milestone Jul 24, 2015
@bricelam bricelam modified the milestones: 7.0.0, 7.0.0-beta7 Jul 29, 2015
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-beta7, 1.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

4 participants