Update module github.com/pressly/goose/v3 to v3.22.0 #5

Merged
finn merged 1 commit from renovate/github.com-pressly-goose-v3-3.x into main 2024-09-08 06:16:38 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
github.com/pressly/goose/v3 require minor v3.20.0 -> v3.22.0

Release Notes

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

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.

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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/pressly/goose/v3](https://github.com/pressly/goose) | require | minor | `v3.20.0` -> `v3.22.0` | --- ### Release Notes <details> <summary>pressly/goose (github.com/pressly/goose/v3)</summary> ### [`v3.22.0`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3220) [Compare Source](https://github.com/pressly/goose/compare/v3.21.1...v3.22.0) - Minimum Go version is now 1.21 - Add Unwrap to PartialError ([#&#8203;815](https://github.com/pressly/goose/issues/815)) - Allow flags anywhere on the CLI ([#&#8203;814](https://github.com/pressly/goose/issues/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](https://mfridman.com/blog/2024/allowing-flags-anywhere-on-the-cli/). - Update `WithDisableGlobalRegistry` behavior ([#&#8203;783](https://github.com/pressly/goose/issues/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: ```go 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 ([#&#8203;556](https://github.com/pressly/goose/issues/556)) ```diff - 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 ([#&#8203;816](https://github.com/pressly/goose/issues/816)) ```diff - id serial NOT NULL, + id bigint(20) unsigned NOT NULL AUTO_INCREMENT, ``` ### [`v3.21.1`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3211) [Compare Source](https://github.com/pressly/goose/compare/v3.21.0...v3.21.1) - Add `GetVersions` method to `goose.Provider`, returns the current (max db) version and the latest (max filesystem) version. ([#&#8203;756](https://github.com/pressly/goose/issues/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`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3210) [Compare Source](https://github.com/pressly/goose/compare/v3.20.0...v3.21.0) - Retracted. Broken release, please use v3.21.1 instead. </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43Mi4wIiwidXBkYXRlZEluVmVyIjoiMzguNzIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
renovatebot added 1 commit 2024-09-08 06:01:08 +00:00
Author
Collaborator

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/sethvargo/go-retry v0.2.4 -> v0.3.0
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 1 additional dependency was updated Details: | **Package** | **Change** | | :------------------------------ | :------------------- | | `github.com/sethvargo/go-retry` | `v0.2.4` -> `v0.3.0` |
renovatebot force-pushed renovate/github.com-pressly-goose-v3-3.x from 13b7e81778 to 1bc9858220 2024-09-08 06:16:16 +00:00 Compare
finn merged commit 1bc9858220 into main 2024-09-08 06:16:38 +00:00
finn deleted branch renovate/github.com-pressly-goose-v3-3.x 2024-09-08 06:16:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: finn/go-project-template#5
No description provided.