-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create migration file with next version number #50
Conversation
This is a fairly large non-backwards compatible update for those of us who have been using timestamps from the original |
Hi @mschmo, how is it non-backward compatible for you? Is it just that you invoke Does it I strongly advice you guys switch to sequential numbers instead of timestamps to prevent version mismatch, see #25. But yeah, if there's more people thinking we should release v2.0 because of this change, we can totally do that. |
I can see the benefits of using sequential numbering and will consider updating our current migration process to use that instead of timestamps, but that does not change the fact that this is change breaks things.
After updating to this commit's change the sequential versions, This does seem like it may just a bug that could be related to sql vs go migrations, in which case this should be reverted and fixed before you attempt to make a change like this, or the version should be bumped so that I can stick to the v1.0 of this package while it is fixed. |
@mschmo let me try |
It works as expected. It bumped the last (highest) timestamp by one, as expected. @mschmo am I missing anything? |
Is this expected behavior for you for a directory that already has timestamped migrations?
Perhaps I am misunderstanding how to create migration files, but I feel as though that 3rd migration should be |
Another example that doesn't make sense to me:
|
Yea, this is not right. The example I provided above doesn't have this bug. It increments versions correctly. I wonder what's the difference here.. Can you pls update your goose pkg and rebuild your binary? |
Ok I think I'm now identifying this as an issue related to not supplying a I can explore a little more and open an issue if necessary sometime later today. Thanks for checking on this! |
|
Fixes #25