lastland / scala-forklift

Type-safe data migration tool for Slick, Git and beyond.
Other
188 stars 31 forks source link

Sort migration ids before writing to summary file #21

Closed kshepard closed 8 years ago

kshepard commented 8 years ago

I encountered a problem when performing the following steps:

This commit ensures that the migrations in the summary file are properly ordered and fixes the above issue.

lastland commented 8 years ago

Hi @kshepard,

Thanks for reporting this and submitting a pull request! However, there are a few things I would like to clarify:

Maybe I should try to make this explanation more visible somewhere.

kshepard commented 8 years ago

Hi @lastland, thanks for taking a look at the PR! The reason I was deleting the database file was to simulate a deployment scenario. I wanted to see what it would be like to develop the migrations locally, and then at a later time, change my database configuration and migrate a different, remote database. The database deletion was a simple way for me to test this out without needing to set up a completely separate database, but the results should be the same.

lastland commented 8 years ago

@kshepard Yeah that makes good sense. Thanks again for the PR!

kshepard commented 8 years ago

No problem, thanks for building this project! Also, curious about your release cycle: approximately when do you next expect to publish a 0.2.2 release?

lastland commented 8 years ago

There has been quite a few changes so I plan to publish a 0.2.2 release soon -- hopefully tomorrow. Would that be OK for you?

kshepard commented 8 years ago

Sounds wonderful, thank you!

lastland commented 8 years ago

0.2.2 is released, though it may take a few hours before the release is synced to mvn repo center.