fix(deps): update module github.com/pressly/goose/v3 to v3.21.1 #248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v3.19.2
->v3.21.1
Release Notes
pressly/goose (github.com/pressly/goose/v3)
v3.21.1
Compare Source
Add
GetVersions
method togoose.Provider
, returns the current (max db) version and the latest(max filesystem) version. (#756)
Clarify
GetLatestVersion
method MUST returnErrVersionNotFound
if no latest migration isfound. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
API surface.
Add
GetLatestVersion
implementations to all existing dialects. This is an optimization to avoidloading all migrations when only the latest version is needed. This uses the
max
function in SQLto get the latest version_id irrespective of the order of applied migrations.
GetLatestVersion
method.v3.21.0
Compare Source
v3.20.0
Compare Source
Store
interface by adding aGetLatestVersion
method and make the interface public.goose.Provider
(#751):
The underlying implementation does not respect the
SessionLocker
(if one is enabled) and canbe used to check for pending migrations without blocking or being blocked by other operations.
.Up
,.UpByOne
, and.UpTo
fromgoose.Provider
will invoke.HasPending
beforeacquiring a lock with
SessionLocker
(if enabled). This addresses an edge case inKubernetes-style deployments where newer pods with long-running migrations prevent older pods -
which have all known migrations applied - from starting up due to an advisory lock. For more
detailhttps://github.com/pressly/goose/pull/507#discussion_r1266498077_r1266498077 and #751.
./internal/testing
and make it a separate Go module. This will allowus to have a cleaner top-level go.mod file and avoid imports unrelated to the goose project. See
integration/README.md
for more details. This shouldn't affect users of the goose library.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.