-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update module github.com/pressly/goose/v3 to v3.24.0 #7
base: main
Are you sure you want to change the base?
Conversation
95b976d
to
18f7090
Compare
18f7090
to
e6cee76
Compare
e6cee76
to
082e1e6
Compare
082e1e6
to
697f7e2
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: go.sum
|
697f7e2
to
6877fc0
Compare
6877fc0
to
a41460b
Compare
a41460b
to
a2a7c48
Compare
a2a7c48
to
093cd64
Compare
093cd64
to
474256e
Compare
474256e
to
5c01e6d
Compare
5c01e6d
to
a41375c
Compare
a41375c
to
1f8c12a
Compare
1f8c12a
to
3aff514
Compare
3aff514
to
0b40162
Compare
0b40162
to
9a1c484
Compare
9a1c484
to
5a6b9e4
Compare
|
5a6b9e4
to
5e25b80
Compare
5e25b80
to
4f034a2
Compare
4f034a2
to
8ddd53c
Compare
8ddd53c
to
6431d94
Compare
6431d94
to
cb3fdef
Compare
This PR contains the following updates:
v3.6.1
->v3.24.0
Release Notes
pressly/goose (github.com/pressly/goose/v3)
v3.24.0
Compare Source
.env
files, enabled by default..env
, but can be changed with the-env=<filename>
flag.-env=none
.v3.23.1
Compare Source
TableExists
method to provide optimizedtable existence checks (#860)
pg_tables
system catalog, more to followv3.23.0
Compare Source
WithLogger
toNewProvider
to allow custom loggers (#833)WithVerbose
behavior to log all SQL statements (#851)go1.23.3
)v3.22.1
Compare Source
go1.23.1
)v3.22.0
Compare Source
goose
uses the default Goflag
parsing library, which means flags must be defined before thefirst positional argument. We've updated this behavior to allow flags to be defined anywhere. For
more details, see blog post.
WithDisableGlobalRegistry
behavior (#783). When set, this will ignore globally-registeredmigrationse entirely instead of the previous behavior of raising an error. Specifically, the
following check is removed:
This enables creating isolated goose provider(s) in legacy environments where global migrations may
be registered. Without updating this behavior, it would be impossible to use
WithDisableGlobalRegistry
in combination with provider-scopedWithGoMigrations
.tstamp
not nullable (#556)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.
v3.19.2
Compare Source
better solution. If you were using duckdb with goose, please let us know by opening an issue.
v3.19.1
Compare Source
redshift
GOOSE_MIGRATION_DIR
documentationv1.1.12
(security fix)-- +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 theannotations more consistent.
v3.19.0
Compare Source
v3.18.0
Compare Source
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:
-- +goose ENVSUB ON
When enabled, goose will attempt to substitute environment variables in the SQL migration
queries until the end of the file, or until the annotation
-- +goose ENVSUB OFF
is found. Forexample, if the environment variable
REGION
is set tous_east_1
, the following SQL migrationwill be substituted to
SELECT * FROM regions WHERE name = 'us_east_1';
Add native Turso support with libsql driver. (#658)
Fixed query for list migrations in YDB (#684)
v3.17.0
Compare Source
Apply()
errors, addErrNotApplied
when attempting to rollback a migrationthat has not been previously applied. (#660)
WithDisableGlobalRegistry
option toNewProvider
to disable the global registry. (#645)-timeout
flag to CLI to set the maximum allowed duration for queries to run. Default remainsno timeout. (#627)
Provider
whenWithVerbose
option is supplied. (#668)goose create
to use UTC time instead of local time. (#242)v3.16.0
Compare Source
SetGlobalMigrations
andResetGlobalMigrations
functions have been added.NewGoMigration
for constructing Go migrations.goose.NewProvider
.🎉 Read more about this new feature here:
https://pressly.github.io/goose/blog/2023/goose-provider/
The motivation behind the Provider was simple - to reduce global state and make goose easier to
consume as an imported package.
Here's a quick summary:
v3.15.1
Compare Source
available in the filesystem. (#588)
always include them.
include those migrations. This was the original motivation behind #553.
prevent accidentally adding valid looking Go migration files without explicitly registering
them.
v3.15.0
Compare Source
sqlparser
to avoid skipping the last statement when it's not terminated with a semicolonwithin a StatementBegin/End block. (#580)
go1.21
to the CI matrix.go1.19
.v3.14.0
Compare Source
filesystem.
be a breaking change.
AddMigrationNoTxContext
was registering the wrong source because it skippedtoo many frames. #572
v3.13.4
Compare Source
sqlparser
where the last up statement may be ignored if it'sunterminated with a semicolon and followed by a
-- +goose Down
annotation.Logger
interface toPrintf
andFatalf
methods only. Projects that have previouslyimplemented the
Logger
interface should not be affected, and can remove unused methods.v3.13.3
Compare Source
Fixed a bunch of build issues, see https://github.com/pressly/goose/releases/tag/v3.13.4 for correct changelog.
v3.13.2
Compare Source
v3.13.1
Compare Source
v3.13.0
v3.12.X
tags. They were accidentally pushed and contain areference to the wrong Go module.
up
andup -allowing-missing
behavior.context.Context
-aware functions and methods, for both sql and go migrations.v3.11.2
Compare Source
Changelog
Full Changelog: pressly/goose@v3.11.0...v3.11.2
v3.11.1
Compare Source
v3.11.0
Compare Source
Changelog
ba6e5fb
: Add 'sqlserver' to dialects as an alias of mssql (#510) (@ffaen)3e0905a
: build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 (#488) (@dependabot[bot])4eee07f
: build(deps): bump github.com/ory/dockertest/v3 from 3.9.1 to 3.10.0 (#504) (@dependabot[bot])86f779a
: build: add Linux ARM64 arch support (#499) (@jesusprubio)0bc0034
: build: upgrade deps and update workflows (#500) (@mfridman)99204d2
: build: upgrade to github.com/jackc/pgx/v5 (#475) (@dahu33)15ef2bc
: chore: fix comment typos (#480) (@deining)33106fc
: chore: update annotation comments (#478) (@mfridman)0d1296b
: feat(mssql): update driver to microsoft/go-mssqldb (#501) (@mfridman)49c55f0
: feat: add support for azuresql dialect (#487) (@sblackstone)e2ecb28
: fix: clickhouse tests (@mfridman)c462979
: refactor: create a generic store and stub out dialect queries (#477) (@mfridman)baaec13
: refactor: dialectquery (#482) (@mfridman)8574431
: refactor: remove deprecated ioutil (@mfridman)v3.10.0
Compare Source
Changelog (for humans)
goose validate
.. enables you to validate your SQL / Go migrations. Very handy for catching errors in CI when the migration is first writtentls
override in MySQL DSNset mutations_sync 2
for synchronizationChangelog
2a6d7c0
: build: bump minimum Go version to 1.18 (update CI) (#458) (@mfridman)935e883
: build: golangci-lint add skip-pkg-cache: true (@mfridman)7e6e512
: build: update CI go version references and upgrade deps (#473) (@mfridman)0af59c1
: build: upgrade dependencies (#471) (@mfridman)c2f9bcb
: ci: drop 1.17 tests and add 1.20-rc.3 (#455) (@mfridman)ad90652
: clickhouse: set mutations_sync 2 for delete version (#454) (@chapsuk)8c25e3b
: feat:goose validate
command (#449) (@mfridman)b4af752
: fix test race condition and remove verbose global in parser (#457) (@mfridman)b62288d
: fix: exclude Go test files from migrations (#474) (@ipoerner)60610d3
: removetls
override from mysql dsn normalizing (#468) (@jonas-jonas)v3.9.0
Compare Source
Changelog
Added
*sql.DB
-registered Go migrations (#450). Kudos to @cbodonnell for helping with this feature.There are 2 new func types:
And 2 new functions to register Go migrations:
goose env
command to expose set environment variables (#443)Fixed
v3.8.0
Compare Source
Changelog
5a6c34e
: Add NO_COLOR (-no-color) support (#409) (@mfridman)b582641
: Adds vertica driver support (#393) (@bobpace)b6c15b9
: Bump modernc.org/sqlite from 1.18.1 to 1.19.1 (#406) (@dependabot[bot])73e53f9
: Changing Sprintf to Sprint if there is no formatting (#417) (@sashamelentyev)28113a2
: Print duration of execution time of each migration (#410) (@mfridman)1c15215
: Remove deprecated package ioutil and upgrade deps (#411) (@mfridman)f30eb6d
: Update deprecated query in createVersionTableSQL for new ClickHouse versions since 22.7 (#408) (@Systemnick)9823e00
: Upgrade golang.org/x/text (#421) (@brandon-leapyear)1939e61
: build: upgrade dependencies (#442) (@mfridman)436452d
: ci: bump goreleaser/goreleaser-action from 3 to 4 (#430) (@dependabot[bot])81d44b3
: refactor: Use math.MaxInt64 const as MaxVersion instead of hardcode number (#441) (@sashamelentyev)v3.7.0
Compare Source
Changelog
45a192f
: Add a credit notation for Gopher image in README (#375) (@ryokotmng)4826c03
: Bump github.com/ClickHouse/clickhouse-go/v2 from 2.1.0 to 2.2.0 (#377) (@dependabot[bot])8abd890
: Exit with error 1 without required arguments (#399) (@el4v)7792d04
: Update GH workflow to include go version 1.19.0-rc.1 (#381) (@mfridman)2278d75
: Upgrade direct and indirect deps (#391) (@mfridman)0a72970
: logger: add nop logger (#384) (@mfridman)496d7cd
: parser: preserve empty lines in SQL statements (#372) (@iktakahiro)bc72e78
: postgres: switch from lib/pq to jackc/pgx (#382) (@craigpastro)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.