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

Using timestamp instead of sequence #96

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

mrkuzzmin
Copy link
Contributor

Changes are made for this issue -
#81

@TimMikeladze
Copy link
Owner

thanks for the pr!

Is this backwards compatible? Meaning that if someone used the old migration naming scheme and then updates to this new version, will all the migrations still function and apply in the expected order?

I would very much prefer not to introduce a breaking change here.

@mrkuzzmin
Copy link
Contributor Author

Migrations with old naming schema will be executed in the expecting order.
Only one thing is now some versions in old style naming can be skipped, e.g 1,2,3,5 - is valid sequence now.

The order of executing is still from the smallest one to the older.
And another thing is migrations with old name schema will be executed before migrations with timestamps.

@TimMikeladze
Copy link
Owner

Awesome. Thank you very much. I'll test this and update the example repo, and then merge and publish a new version.

I'll have this done within the next couple of days.

@TimMikeladze TimMikeladze merged commit 8a3fb82 into TimMikeladze:master Dec 14, 2023
1 check passed
@TimMikeladze
Copy link
Owner

Thank you @mrkuzzmin for this feature.

It has been released as version 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants