Releases: pressly/goose
Releases · pressly/goose
v3.9.0
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
Changelog
- 5a6c34e: Add NO_COLOR (-no-color) support (#409) (@mfridman)
- b582641: Adds vertica driver support (#393) (@bobpace)
- b6c15b9: Bump modernc.org/sqlite from 1.18.1 to 1.19.1 (#406) (@dependabot[bot])
- 73e53f9: Changing Sprintf to Sprint if there is no formatting (#417) (@sashamelentyev)
- 28113a2: Print duration of execution time of each migration (#410) (@mfridman)
- 1c15215: Remove deprecated package ioutil and upgrade deps (#411) (@mfridman)
- f30eb6d: Update deprecated query in createVersionTableSQL for new ClickHouse versions since 22.7 (#408) (@Systemnick)
- 9823e00: Upgrade golang.org/x/text (#421) (@brandon-leapyear)
- 1939e61: build: upgrade dependencies (#442) (@mfridman)
- 436452d: ci: bump goreleaser/goreleaser-action from 3 to 4 (#430) (@dependabot[bot])
- 81d44b3: refactor: Use math.MaxInt64 const as MaxVersion instead of hardcode number (#441) (@sashamelentyev)
v3.7.0
Changelog
- 45a192f: Add a credit notation for Gopher image in README (#375) (@ryokotmng)
- 4826c03: Bump github.com/ClickHouse/clickhouse-go/v2 from 2.1.0 to 2.2.0 (#377) (@dependabot[bot])
- 8abd890: Exit with error 1 without required arguments (#399) (@el4v)
- 7792d04: Update GH workflow to include go version 1.19.0-rc.1 (#381) (@mfridman)
- 2278d75: Upgrade direct and indirect deps (#391) (@mfridman)
- 0a72970: logger: add nop logger (#384) (@mfridman)
- 496d7cd: parser: preserve empty lines in SQL statements (#372) (@iktakahiro)
- bc72e78: postgres: switch from lib/pq to jackc/pgx (#382) (@craigpastro)
v3.6.1
v3.6.0
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
- 1311a0e: Add GOOSE_MIGRATION_DIR env variable (#337) (@mfridman)
- b7c7a8d: Add gofmt formatting check to CI (@mfridman)
- b51d501: Add goose init command (#313) (@mfridman)
- 8d29bfc: Bump goreleaser/goreleaser-action from 2 to 3 (#357) (@dependabot[bot])
- 0995b69: Bump modernc.org/sqlite from 1.14.8 to 1.15.4 (#326) (@dependabot[bot])
- 8f53c35: Bump modernc.org/sqlite from 1.15.4 to 1.16.0 (#327) (@dependabot[bot])
- b44efc3: Bump modernc.org/sqlite from 1.16.0 to 1.17.0 (#342) (@dependabot[bot])
- b1fc11a: Cleanup go modules (@mfridman)
- 630ef77: DownTo returns error if no matching migration file is found (#314) (@schparky)
- fbd200b: Fix misspelling in README.md (#323) (@jsanc623)
- c05d337: Fixing clickhouse dialect placeholders (#333) (@kafkiansky)
- 33487e4: Make NumericComponent errors more understandable (#334) (@zealws)
- e7c5f69: Periodic output for long running migrations (#364) (@nikitacrit)
- 4a10c2c: Remove matryer/is replace with simple internal lib (#356) (@mfridman)
- 205faf5: Update CI to support go1.18 (#320) (@mfridman)
- 5cb7ab6: Update README.md (#316) (@fwielstra)
- dc83fe7: Update go dependencies (@mfridman)
- 6fc031a: Update ory/dockertest dependency (#330) (@nadinelyab)
- e8d93a0: clickhouse: Fixed get db version query (#240) (@chapsuk)
- 1b45f37: e2e: add clickhouse and update v2 (#369) (@mfridman)