Skip to content
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.1 #79

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/pressly/goose/v3 v3.18.0 -> v3.24.1 age adoption passing confidence

Release Notes

pressly/goose (github.com/pressly/goose/v3)

v3.24.1

Compare Source

  • Fix regression (v3.23.1 and v3.24.0) in postgres migration table existence check for
    non-default schema. (#​882, #​883, #​884).

v3.24.0

Compare Source

  • Add support for loading environment variables from .env files, enabled by default.
    • The default file name is .env, but can be changed with the -env=<filename> flag.
    • To disable this feature, set -env=none.

v3.23.1

Compare Source

  • Store implementations can optionally implement the TableExists method to provide optimized
    table existence checks (#​860)
    • Default postgres Store implementation updated to use pg_tables system catalog, more to follow
    • Backward compatible change - existing implementations will continue to work without modification
TableExists(ctx context.Context, db database.DBTxConn) (bool, error)

v3.23.0

Compare Source

  • Add WithLogger to NewProvider to allow custom loggers (#​833)
  • Update Provider WithVerbose behavior to log all SQL statements (#​851)
  • Upgrade dependencies and rebuild binaries with latest Go version (go1.23.3)

v3.22.1

Compare Source

  • Upgrade dependencies and rebuild binaries with latest Go version (go1.23.1)

v3.22.0

Compare Source

  • Minimum Go version is now 1.21
  • Add Unwrap to PartialError (#​815)
  • Allow flags anywhere on the CLI (#​814)

goose uses the default Go flag parsing library, which means flags must be defined before the
first positional argument. We've updated this behavior to allow flags to be defined anywhere. For
more details, see blog post.

  • Update WithDisableGlobalRegistry behavior (#​783). When set, this will ignore globally-registered
    migrationse entirely instead of the previous behavior of raising an error. Specifically, the
    following check is removed:
if len(global) > 0 {
	return nil, errors.New("global registry disabled, but provider has registered go migrations")
}

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-scoped WithGoMigrations.

  • Postgres, updated schema to use identity instead of serial and make tstamp not nullable (#​556)
- id serial NOT NULL,
+ id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,

- tstamp timestamp NULL default now(),
+ tstamp timestamp NOT NULL DEFAULT now()
  • MySQL, updated schema to not use SERIAL alias (#​816)
- id serial NOT NULL,
+ id bigint(20) unsigned NOT NULL AUTO_INCREMENT,

v3.21.1

Compare Source

  • Add GetVersions method to goose.Provider, returns the current (max db) version and the latest
    (max filesystem) version. (#​756)

  • Clarify GetLatestVersion method MUST return ErrVersionNotFound if no latest migration is
    found. 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 avoid
    loading all migrations when only the latest version is needed. This uses the max function in SQL
    to get the latest version_id irrespective of the order of applied migrations.

    • Refactor existing portions of the code to use the new GetLatestVersion method.

v3.21.0

Compare Source

  • Retracted. Broken release, please use v3.21.1 instead.

v3.20.0

Compare Source

  • Expand the Store interface by adding a GetLatestVersion method and make the interface public.
  • Add a (non-blocking) method to check if there are pending migrations to the goose.Provider
    (#​751):
func (p *Provider) HasPending(context.Context) (bool, error) {}

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
    detailhttps://github.com/pressly/goose/pull/507#discussion_r1266498077_r1266498077 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

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • Use [v3.19.1] instead. This was tagged but not released and does not contain release binaries.

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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner October 10, 2023 17:27
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 6 times, most recently from 7b81428 to 9d6d184 Compare October 19, 2023 21:13
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 2 times, most recently from 5a56aff to 97cb2cf Compare October 20, 2023 18:54
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 4 times, most recently from b11551c to 0e20c94 Compare November 3, 2023 21:04
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.15.1 Update module github.com/pressly/goose/v3 to v3.16.0 Nov 12, 2023
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 0e20c94 to 03f136e Compare November 12, 2023 19:24
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 03f136e to 6175f5b Compare November 20, 2023 20:14
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 6175f5b to 3b969d3 Compare December 12, 2023 21:10
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.16.0 Update module github.com/pressly/goose/v3 to v3.17.0 Dec 16, 2023
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 3b969d3 to f349548 Compare December 16, 2023 07:44
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from f349548 to 2573472 Compare January 5, 2024 18:49
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 2573472 to a39b14b Compare January 19, 2024 17:09
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 2 times, most recently from b2529d8 to a336976 Compare January 31, 2024 16:39
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.17.0 Update module github.com/pressly/goose/v3 to v3.18.0 Jan 31, 2024
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 4 times, most recently from 0a7fafe to 33cb80b Compare February 3, 2024 00:22
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 2 times, most recently from c7bd62a to c357fe9 Compare February 12, 2024 22:59
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from e63c851 to 4d58917 Compare December 12, 2024 17:45
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.23.0 Update module github.com/pressly/goose/v3 to v3.23.1 Dec 12, 2024
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.23.1 Update module github.com/pressly/goose/v3 to v3.24.0 Dec 19, 2024
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 4d58917 to fd14ec3 Compare December 19, 2024 17:01
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 2 times, most recently from 45d8f0a to d875d30 Compare January 7, 2025 06:19
@renovate renovate bot changed the title Update module github.com/pressly/goose/v3 to v3.24.0 Update module github.com/pressly/goose/v3 to v3.24.1 Jan 7, 2025
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from d875d30 to c670266 Compare January 7, 2025 17:30
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 8 times, most recently from f8fa2be to 132061d Compare February 3, 2025 16:26
mikemrm
mikemrm previously approved these changes Feb 3, 2025
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 132061d to 40a772c Compare February 3, 2025 20:01
@renovate renovate bot force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 40a772c to 51edb20 Compare February 3, 2025 20:02
Copy link
Contributor Author

renovate bot commented Feb 3, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@mikemrm mikemrm force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch 2 times, most recently from 0dd4abb to 03b4873 Compare February 3, 2025 21:48
Signed-off-by: Mike Mason <[email protected]>
@mikemrm mikemrm force-pushed the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch from 03b4873 to bd16f99 Compare February 3, 2025 21:53
@mikemrm mikemrm merged commit d0e55d6 into main Feb 3, 2025
6 checks passed
@mikemrm mikemrm deleted the renovate/github.aaakk.us.kg-pressly-goose-v3-3.x branch February 3, 2025 21:57
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.

2 participants