Breaking Changes
- When updating to this version of
migrate
with postgres, you need to ensure that no migrations are currently running and no old versions of migrate will run at the same time as new versions. The inputs for generating the advisory lock changed so this version will lock with a different key than previous versions.
Changes
Builds
- Use GoReleaser and GitHub Actions for releases thanks to @johejo and @Fontinalis (#604)
- Fix test on windows (#482) by @johejo
- Upgrade dktest from v0.3.3 to v.0.3.4 by @dhui
- Support Go 1.16 and drop support for Go 1.15 by @dhui
- Update docker builds to use Go 1.16 and Alpine Linux 3.13 (#560) by @dhui
Source Drivers
- GitLab
- GitHub
- Add default GitHub API client (#501) by @ganboonhong
- Update go-github from v17 to v35 by @dhui
- iofs
Database Drivers
- used uber atomic bool instead standard in lock/unlock db (#580) by @prinkov
- sqlite3
- Fix error when path to database contains whitespace (#500) by @ganboonhong
- Add support for modernc.org/sqlite (#555) by @gammazero
- Bump sqlite past memory corruption bug (#558) by @zikaeroh
- postgres & pgx
- Support multi-statement execution for PostgreSQL (#495) by @AnatolyRugalev
- Add pgx driver package (#517) by @dzbee
- Add a check to determine if table already exists to elide CREATE query (#526) by @testtest959
- Add x-migrations-table-quoted url query option (#95) (#533) by @stephane-klein
- Fix SchemaName parameter is ignored (#547) by @stephane-klein
- clubhouse
- spanner
- fix (spanner): upgrade spanner client to v1.18.0 to support NUMERIC types (#565) by @kylechadha
- snowflake
- mssql
- Add msi auth support (#591) by @samfoxcode
- mysql
- cockroachdb
- use github.com/cockroachdb/cockroach-go/v2/crdb (for better go module support) (#595) by @DGollings
- mongodb
- Update MongoDB db driver to fix security issue by @dhui
CLI
- Allow the abillity to pass timezone when generating migration files (#509) by @nronas
- fix: move
-all
flag usage fromdrop
todown
(#522) by @Juneezee
Docs
- Point docs link to v4 (#524) by @jeffwidman
- Update sqlite and sqlite3 docs with comparison by @dhui