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

DbMigration: Break once a correct schema version is found #235

Merged
merged 1 commit into from
May 7, 2024

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented May 6, 2024

The schema versions are queried in descending order and limited to 2, and it should be stopped as soon as it has found the first possible version with success set to true.

@yhabteab yhabteab added the bug Something isn't working label May 6, 2024
@yhabteab yhabteab added this to the 1.0.2 milestone May 6, 2024
@yhabteab yhabteab requested a review from sukhwinder33445 May 6, 2024 10:52
@cla-bot cla-bot bot added the cla/signed label May 6, 2024
@nilmerg
Copy link
Member

nilmerg commented May 7, 2024

Do we have a report for this or how did you notice this?

@yhabteab
Copy link
Member Author

yhabteab commented May 7, 2024

Do we have a report for this or how did you notice this?

Are you just asking out of curiosity or does it matter to you, how did I notice this? No, we don't have any reports on it. I've had this fix for some time in my local stash and can't even remember how I noticed it.

@yhabteab yhabteab force-pushed the fix-db-migration-hook branch from 3cfd8c8 to 673177e Compare May 7, 2024 08:43
@yhabteab yhabteab requested a review from sukhwinder33445 May 7, 2024 08:44
@yhabteab yhabteab force-pushed the fix-db-migration-hook branch from 673177e to f773891 Compare May 7, 2024 08:48
@nilmerg
Copy link
Member

nilmerg commented May 7, 2024

Are you just asking out of curiosity

Essentially, yes.

@raviks789 raviks789 force-pushed the fix-db-migration-hook branch from f773891 to fb68aae Compare May 7, 2024 15:18
@raviks789 raviks789 merged commit f523bc8 into main May 7, 2024
15 checks passed
@raviks789 raviks789 deleted the fix-db-migration-hook branch May 7, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants