Skip to content

Releases: pressly/goose

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

v3.6.0

20 Jun 01:18
1b45f37
Compare
Choose a tag to compare

Breaking change

The ClickHouse driver has been upgraded from /v1 to /v2. See comment here and a short blog post.

See comment here for new format: #369 (comment)

Changelog

v3.5.3

12 Feb 03:12
5f1f43c
Compare
Choose a tag to compare

Changelog

v3.5.2

04 Feb 13:55
b2a7e51
Compare
Choose a tag to compare

Changelog