Skip to content

Releases: pressly/goose

v3.15.1

10 Oct 13:29
v3.15.1
091166a
Compare
Choose a tag to compare
  • Fix regression that prevented registering Go migrations that didn't have the corresponding files
    available in the filesystem. (#588)
    • If Go migrations have been registered globally, but there are no .go files in the filesystem,
      always include them.
    • If Go migrations have been registered, and there are .go files in the filesystem, only
      include
      those migrations. This was the original motivation behind #553.
    • If there are .go files in the filesystem but not registered, raise an error. This is to
      prevent accidentally adding valid looking Go migration files without explicitly registering
      them.

v3.15.0

13 Aug 03:27
v3.15.0
6c1d92b
Compare
Choose a tag to compare
  • Fix sqlparser to avoid skipping the last statement when it's not terminated with a semicolon
    within a StatementBegin/End block. (#580)
  • Add go1.21 to the CI matrix.
  • Bump minimum version of module in go.mod to go1.19.
  • Fix version output when installing pre-built binaries (#585).

v3.14.0

26 Jul 13:01
v3.14.0
da5f2bf
Compare
Choose a tag to compare
  • Filter registered Go migrations from the global map with corresponding .go files from the
    filesystem.
    • The code previously assumed all .go migrations would be in the same folder, so this should not
      be a breaking change.
    • See #553 for more details
  • Improve output log message for applied up migrations. #562
  • Fix an issue where AddMigrationNoTxContext was registering the wrong source because it skipped
    too many frames. #572
  • Improve binary version output when using go install.

v3.13.4

07 Jul 22:51
Compare
Choose a tag to compare
  • Fix pre-built binary versioning and make small improvements to GoReleaser config (a tool for packaging / releasing Go tools).
  • Fix an edge case in the sqlparser where the last up statement may be ignored if it's
    unterminated with a semicolon and followed by a -- +goose Down annotation.
  • Trim Logger interface to Printf and Fatalf methods only. Projects that have previously
    implemented the Logger interface should not be affected, and can remove unused methods.

v3.13.3

07 Jul 22:50
8bdf173
Compare
Choose a tag to compare

Fixed a bunch of build issues, see https://github.com/pressly/goose/releases/tag/v3.13.4 for correct changelog.

v3.13.1

03 Jul 13:01
v3.13.1
d34ca5c
Compare
Choose a tag to compare
  • Add pre-built binaries with GoReleaser and update the build process.

Release v3.13.0

29 Jun 22:13
Compare
Choose a tag to compare

Changelog

  • Fix up and up -allowing-missing behavior.
  • Fix empty version in log output.
  • Add new context.Context-aware functions and methods, for both sql and go migrations.
  • Return error when no migration files found or dir is not a directory.

Note, tags v3.12.0, v3.12.1, v3.12.2 have been retracted because they contained the wrong module reference, please use the current release v3.13.0 onwards. Apologies for the inconvenience.

Full Changelog: v3.11.2...v3.13.0

v3.11.2

08 May 12:53
Compare
Choose a tag to compare

Changelog

  • Add validate command to help and readme in #512
  • fix: use global table name in store queries in #515. Fixes a regression reported in #514
  • build: upgrade deps in #516

Full Changelog: v3.11.0...v3.11.2

v3.11.0

04 May 12:39
ba6e5fb
Compare
Choose a tag to compare

Changelog

v3.10.0

10 Mar 03:54
Compare
Choose a tag to compare

Changelog (for humans)

  • Bumps the minimum Go version to 1.18
  • Add a new command: goose validate .. enables you to validate your SQL / Go migrations. Very handy for catching errors in CI when the migration is first written
  • Removes hard coded tls override in MySQL DSN
  • ClickHouse down migrations (deleting version) now uses set mutations_sync 2 for synchronization

Changelog