Skip to content

Releases: pressly/goose

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

v3.5.1

25 Jan 04:02
7fffa2d
Compare
Choose a tag to compare

Changelog

v3.5.0

19 Dec 14:39
c8aa123
Compare
Choose a tag to compare

Changelog

v3.4.1

26 Nov 01:55
e493182
Compare
Choose a tag to compare

Changelog

e493182: Add build constraints for windows_arm64 (@mfridman)
cc7f022: Replace mattn/go-sqlite3 with modernc.org/sqlite (CGo-free port of SQLite) (#290) (@mfridman)
4148551: option to use pgx instead pq (#283) (@gohryt)
7bc1756: (#289) (@dongri)