v3.22.0
Changelog
-
Minimum Go version is now 1.21
-
Add
UnwraptoPartialError(#815) -
Allow flags anywhere on the CLI (#814)
gooseuses the default Goflagparsing 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
WithDisableGlobalRegistrybehavior (#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
WithDisableGlobalRegistryin combination with provider-scopedWithGoMigrations.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
tstampnot 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,