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

Fix unsorted migrations bug #65

Merged
merged 2 commits into from
Aug 13, 2022

Conversation

rafabulsing
Copy link
Contributor

Implemented following the discussion at #62.

The underlying issue was that FindMigrationsEx would not work if files in migrations directory were not properly sorted (say, 1 through 10 without padding 0s).

This PR fixes that. The function still identifies if migrations are missing/repeated. It also returns the paths sorted in the expected order (regardless of padding 0s).

@jackc jackc merged commit 4582d45 into jackc:master Aug 13, 2022
@jackc
Copy link
Owner

jackc commented Aug 13, 2022

LGTM. Thanks!

@rafabulsing
Copy link
Contributor Author

Nice, it was my pleasure! ☺

@rafabulsing rafabulsing deleted the fix-unsorted-migrations-bug branch August 14, 2022 22:11
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