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: return joined err when try to get migrations list #862

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

R0masik
Copy link
Contributor

@R0masik R0masik commented Nov 28, 2024

Closes #800

@v-electrolux
Copy link

@mfridman can you review this, please? it is very important fix for us

migrate.go Outdated
return 0, createVersionTable(ctx, db)
createErr := createVersionTable(ctx, db)
if createErr != nil {
return 0, errors.Join(err, createErr)
Copy link
Collaborator

@mfridman mfridman Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use go.uber.org/multierr for consistency (rest of the code base does not use errors.Join).

At some point we'll switch over to errors.Join, but until then, would prefer consistency so it's easier to refactor.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mfridman mfridman merged commit fa06062 into pressly:main Feb 4, 2025
4 checks passed
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.

Goose returns incorrect error when multiple DB users try to up migrations
3 participants