Skip to content


Subversion checkout URL

You can clone with
Download ZIP


migrations get run in the wrong order #51

ryanmeador opened this Issue · 2 comments

2 participants


I have a whole bunch of migrations I've built up over a period of time, and I just tried to run them on an empty database (to create a brand new database for my app). I received errors that indicate the migrations are being run in the wrong order (using --verbose I see it running a migration that it shouldn't be running based on the timestamps). I'm at a loss to explain how this could happen from looking at the code, since I see the array of migrations is sorted twice (once when read from the filesystem and again in filterUp()). Is it possible that the filtering code is messing up the order? Is it possible that sort() isn't sorting quite the way that is intended? Please let me know if I can offer any further info.


Can you check the migrations table to make sure all the expected migrations are in there with sane column values?

@kunklejr kunklejr closed this in 2034028

This fix is now available in version 0.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.