v4.15.0-beta.1
版本发布时间: 2021-08-04 15:51:31
golang-migrate/migrate最新发布版本:v4.18.1(2024-09-09 06:12:22)
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
- Fix issue when gitlab return only first 20 migrations (#497) by @mef13
- GitHub
- Add default GitHub API client (#501) by @ganboonhong
- Update go-github from v17 to v35 by @dhui
- iofs
- Fix iofs tests (#560) by @dhui
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
- Upgrade clickhouse driver lib (#529) by @linux019
- added tests for clickhouse database (#532) by @prinkov
- make table engine for schema versions table configurable (#551) by @brunotm
- spanner
- fix (spanner): upgrade spanner client to v1.18.0 to support NUMERIC types (#565) by @kylechadha
- snowflake
- Update snowflake DB driver to update to non-vulnarable jwt downstream package (#569) by @dhui
- mssql
- Add msi auth support (#591) by @samfoxcode
- mysql
- Added a method to create a mysql database from a connection object (#583) by @Seb-C
- 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
1、 migrate.windows-armv7.zip 9.63MB
2、 sha256sum.txt 1.16KB
3、 migrate.windows-amd64.zip 10.14MB
4、 migrate.windows-386.zip 9.85MB
5、 migrate.linux-armv7.deb 9.42MB
6、 migrate.linux-arm64.deb 9.16MB
7、 migrate.linux-386.deb 9.47MB
8、 migrate.linux-amd64.deb 10.07MB
9、 migrate.darwin-arm64.tar.gz 10.32MB
10、 migrate.linux-386.tar.gz 9.46MB
11、 migrate.darwin-amd64.tar.gz 10.44MB
12、 migrate.linux-amd64.tar.gz 10.03MB
13、 migrate.linux-armv7.tar.gz 9.4MB
14、 migrate.linux-arm64.tar.gz 9.15MB