-
Notifications
You must be signed in to change notification settings - Fork 523
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hello,
Looks like the GetCurrentMigrations method performs invalid ordering.
public IEnumerable<IMigration> GetCurrentMigrations()
{
var currentDbVersion = new DbVersion(int.Parse(GrandVersion.MajorVersion), int.Parse(GrandVersion.MinorVersion));
return GetAllMigrations()
.Where(x => currentDbVersion.CompareTo(x.Version) >= 0)
.OrderBy(mg => mg.Version.ToString())
.OrderBy(mg => mg.Priority) // <=
.ToList();
}
Most likely, there should be the ThenBy invocation instead of OrderBy.
Here is the link.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working