[!NOTE]
The underlying implementation does not respect the SessionLocker (if one is enabled) and can
be used to check for pending migrations without blocking or being blocked by other operations.
The methods .Up, .UpByOne, and .UpTo from goose.Provider will invoke .HasPending before
acquiring a lock with SessionLocker (if enabled). This addresses an edge case in
Kubernetes-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
details, refer to pressly/goose#507 and #751.
Move integration tests to ./internal/testing and make it a separate Go module. This will allow
us 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.
v3.19.2
Remove duckdb support. The driver uses Cgo and we've decided to remove it until we can find a
better solution. If you were using duckdb with goose, please let us know by opening an issue.
v3.19.1
Fix selecting dialect for redshift
Add GOOSE_MIGRATION_DIR documentation
Bump github.com/opencontainers/runc to v1.1.12 (security fix)
Update CI tests for go1.22
Make goose annotations case-insensitive
All -- +goose annotations are now case-insensitive. This means that -- +goose Up and -- +goose up are now equivalent. This change was made to improve the user experience and to make the annotations more consistent.
@dpeckett made their first contribution in pressly/goose#696 (currently disabled until build is resolved, uses CGO. But thank you for the contribution 😄)
The underlying implementation does not respect the SessionLocker (if one is enabled) and can
be used to check for pending migrations without blocking or being blocked by other operations.
The methods .Up, .UpByOne, and .UpTo from goose.Provider will invoke .HasPending before
acquiring a lock with SessionLocker (if enabled). This addresses an edge case in
Kubernetes-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
details, refer to pressly/goose#507 and #751.
Move integration tests to ./internal/testing and make it a separate Go module. This will allow
us 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.
[v3.19.2] - 2024-03-13
Remove duckdb support. The driver uses Cgo and we've decided to remove it until we can find a
better solution. If you were using duckdb with goose, please let us know by opening an issue.
[v3.19.1] - 2024-03-11
Fix selecting dialect for redshift
Add GOOSE_MIGRATION_DIR documentation
Bump github.com/opencontainers/runc to v1.1.12 (security fix)
Update CI tests for go1.22
Make goose annotations case-insensitive
All -- +goose annotations are now case-insensitive. This means that -- +goose Up and -- +goose up are now equivalent. This change was made to improve the user experience and to make the
annotations more consistent.
[v3.19.0] - 2024-03-11
Use [v3.19.1] instead. This was tagged but not released and does not contain release binaries.
[v3.18.0] - 2024-01-31
Add environment variable substitution for SQL migrations. (#604)
This feature is disabled by default, and can be enabled by adding an annotation to the
migration file:
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/pressly/goose/v3 from 3.17.0 to 3.20.0.
Release notes
Sourced from github.com/pressly/goose/v3's releases.
... (truncated)
Changelog
Sourced from github.com/pressly/goose/v3's changelog.
... (truncated)
Commits
31de74d
Release v3.20.0d0641b5
chore: upgrade container images and bump integration test deps (#753)1ad801c
feat: Add provider HasPending method (#751)7e96a22
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 (#749)5f21833
build(deps): bump github.com/docker/docker from 26.0.1+incompatible to 26.0.2...b164611
build: bump deps (#744)f4f1a24
Expand the Store interface and add GetLatestVersion method (#743)42eab2b
build: bump internal/testing go deps (#732)234a9d5
docs: cleanup changeloge2c1ac0
fix: makefile test-postgresDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show