Skip to content

fix: return joined err when try to get migrations list#862

Merged
mfridman merged 2 commits intopressly:mainfrom
R0masik:permission-err
Feb 4, 2025
Merged

fix: return joined err when try to get migrations list#862
mfridman merged 2 commits intopressly:mainfrom
R0masik:permission-err

Conversation

@R0masik
Copy link
Copy Markdown
Contributor

@R0masik R0masik commented Nov 28, 2024

Closes #800

@v-electrolux
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

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