-
Notifications
You must be signed in to change notification settings - Fork 820
Upgrade golang-migrate/migrate to v4 (#1384) #1802
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have one minor nit, otherwise this looks good to me. Have you tested it locally?
pkg/configs/db/postgres/postgres.go
Outdated
} | ||
return DB{}, errors.New("database migrations failed") | ||
level.Warn(util.Logger).Log("msg", "no change in schema, error (ignored)", "error", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a warn level log? It looks like it should be a debug level log since it is expected behavior?
Signed-off-by: adnan <adnan.khan021@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Crashes immediately on startup for me, with
|
I got another crash today which could be related: #1972 |
What this PR does:
changes
mattes/migrate
path togolang-migrate/migrate
, upgrades to v4.7.0, and corresponding changes to migrate api use inpkg/configs/db/postgres/postgres.go
ran
go mod vendor
andgo mod tidy
Which issue(s) this PR fixes:
Fixes #1384