Skip to content

Releases: pressly/goose

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

v3.9.0

27 Jan 14:23
32ad603
Compare
Choose a tag to compare

Changelog

Added

  • Add support for *sql.DB-registered Go migrations (#450). Kudos to @cbodonnell for helping with this feature.

There are 2 new func types:

// GoMigration is a Go migration func that is run within a transaction.
type GoMigration func(tx *sql.Tx) error

// GoMigrationNoTx is a Go migration func that is run outside a transaction.
type GoMigrationNoTx func(db *sql.DB) error

And 2 new functions to register Go migrations:

// AddMigrationNoTx adds Go migrations that will be run outside transaction.
func AddMigrationNoTx(up, down GoMigrationNoTx) { ... }

// AddNamedMigrationNoTx adds named Go migrations that will be run outside transaction.
func AddNamedMigrationNoTx(filename string, up, down GoMigrationNoTx) { ... }
  • Add goose env command to expose set environment variables (#443)
  • Add golangci-lint to enforce standards within the project (#456)

Fixed

  • The SQL parser better handles leading/trailing empty lines and comments (#446). Additional tests have been added to capture edge cases with the parser.

v3.8.0

18 Jan 13:57
436452d
Compare
Choose a tag to compare

Changelog

v3.7.0

31 Aug 16:23
8abd890
Compare
Choose a tag to compare

Changelog

v3.6.1

23 Jun 01:41
f3d569f
Compare
Choose a tag to compare

Changelog