Skip to content

v3.22.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Sep 12:26
· 14 commits to master since this release
v3.22.0
5193dcb

Changelog

  • 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.

    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.

    Specifically, the following check is removed:

if len(global) > 0 {
  return nil, errors.New("global registry disabled, but provider has registered go migrations")
}
  • 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,