Skip to content

Releases: golang-migrate/migrate

v4.17.1

19 Apr 06:38
0c456c4
Compare
Choose a tag to compare

Changelog

  • 4bc6777 Add dktesting.Cleanup() method
  • bead4a9 Added documentation and test for lock strategy
  • 129922a Added support for pgx locking table
  • a860f0c Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0
  • d1df97b Bump github.com/jackc/pgx/v4 from 4.18.1 to 4.18.2
  • a78d1ab Bump github.com/jackc/pgx/v5 from 5.3.1 to 5.5.4
  • 2e0872f Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
  • 1b707a7 Cleanup cassandra images after tests run
  • 49cac86 Cleanup mongodb images after tests run
  • 2884a8e Cleanup postgres images after tests run
  • b1d02e2 Cleanup sqlserver images after tests run
  • 06614d9 Cleanup yugabytedb images after tests run
  • e913336 Drop support for Go 1.20 and add support for Go 1.22
  • f4950c1 Fallback to dktest.DefaultCleanupTimeout if the dktest.Options doesn't have one specified
  • 5aa4670 Fix GoReleaser deprecations
  • d63a5c2 Only test against YugabyteDB LTS releases
  • 091ad5d Quote locktable from config in queries
  • 1a002d0 Set golangci-lint to 1.54.2 (latest is broken) (#1046)
  • f100226 Update dktest from v0.4.0 to v0.4.1 to fix docker vulnerability
  • ff8a961 Update yugabyte test images
  • 0350a00 [sqlserver] Always access version table with explicit schema
  • 8147693 [sqlserver] Ensure version table in provided schema
  • 7f85f9c chore: fix some typos
  • 9d70a39 chore: fix some typos in comments
  • 94b8fa5 rqlite is spelled with all lowercase

v4.17.0

20 Dec 21:19
Compare
Choose a tag to compare

Changelog

  • cf03803 Add rqlite 8.0.0 to tested database versions
  • 12968a7 Add syntax highlighting to Postgres example
  • 50112e7 Add to clickhouse README.md database creation
  • 5ded96d Bump golang.org/x/crypto from 0.14.0 to 0.17.0
  • c3ebd52 Bump google.golang.org/grpc from 1.55.0 to 1.56.3
  • 5026488 Clean up require directive grouping
  • 3b02b18 Correct a spelling mistake
  • cd17c5a Drop support for Go 1.19 and add support for Go 1.21
  • 839421e Leverage quoteIdentifier from pgx
  • bad30b5 Mention migradaptor
  • fb22436 Merge remote-tracking branch 'origin/master' into upgrade-spanner
  • bfedabb Merge remote-tracking branch 'upstream/master'
  • 92dec35 Move supported go version to standard place
  • 4078ef8 New release prep
  • 9fe7383 Quote in drop as well
  • 691f687 Reformat ScyllaDB/Cassandra docs
  • 90a3ac4 Remove cluster adaptation for tables to pass tests
  • 64755d0 Update README.md
  • f2c4b52 Update aws-sdk-go from v1.44.301 to v1.49.6
  • 876a13d Update aws-sdk-go to adress vulerabilitiy
  • b567287 Update from alpine 3.18 to 3.19
  • f2e0b33 Update lib/pq to fix cert permissions issues
  • 208ac53 Update spanner to fix security issue See also: #952
  • 72957b6 Updated version of spanner to support sequences and generate uuid
  • 7d03609 add 8.11 and 8.12 versions and remove debug logging
  • 7a72550 add tests for scylladb. add scylladb to docs
  • 90273fe clickhouse: Quote db name in ensureVersionTable
  • 5163ac7 feature: add rqlite support
  • ee8a8e5 fix: typo
  • f8afa5a small changes to retry failed by timeout CI
  • 669437c update rqlite 8 container version to 8.0.6

v4.16.2

12 Jun 05:26
691bc77
Compare
Choose a tag to compare

Changelog

  • 383386b Bump github.com/snowflakedb/gosnowflake from 1.6.3 to 1.6.19
  • 315a205 Update Dockerfiles

v4.16.1

05 Jun 06:02
Compare
Choose a tag to compare

Changelog

  • d72e5c6 Fix typo
  • 23d8d33 Support .deb packages for Ubuntu Jammy Jellyfish and Debian bookworm
  • 0b3b628 Use pgx5 connection string in README

v4.16.0

28 May 01:41
Compare
Choose a tag to compare

Changelog

v4.15.2

27 Apr 10:31
Compare
Choose a tag to compare

Changes

Documentation

Database Drivers

Migration Sources

  • a2b0bda change github auth to use oauth token instead of basic. (by @Greyeye )

Builds

  • 5aa1a03 Bump version of autorest/adal (by @jcmuller )
  • 169d0fc Include 2 letter query param key in unit test (by @suzaku )
  • 331a15d Update dktest from v0.3.9 to v0.3.10 to fix upstream security issues (by @dhui )
  • c277388 Update dktest to v0.3.9 for upstream security vulnerability fixes (by @dhui )
  • cf68462 Run gofmt on internal build dir (by @dhui )
  • fc7f720 refactor: use sort.Slice (by @suzaku )
  • 918e13a Upgrade containerd and image-spec for the vulnerabilities (#662) (by @mopp )
  • 4f82413 len(k) is guaranteed to be greater than 1 in this case (by @suzaku )

Thank you for your hard work and all your contributions!

v4.15.1

17 Oct 05:45
1ba9bec
Compare
Choose a tag to compare

Changes

Database Drivers

  • Update gosnowflake from v1.4.3 to v1.6.3 to fix security warnings (#632 & #637). Thanks @nicholas-mainardi and @obitech for reporting the issue!
  • Add unofficial support for AWS Keyspaces to the Cassandra DB driver by DELETEing the schema version table instead of using TRUNCATE thanks to @florentsolt and @Baumanar (#634)

Docker Image

Builds

v4.15.0

22 Sep 09:41
10a92d0
Compare
Choose a tag to compare

Breaking Changes

  • In the Docker image, the location of the migrate binary changed from /usr/local/bin/migrate to /usr/bin/migrate
  • 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 (#604) by @johejo and @Fontinalis
  • 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
  • ci: migrate from CircleCI to GitHub Actions (#605) by @Juneezee
  • Drop support for Go 1.15 by @dhui

Source Drivers

  • GitLab
    • Fix issue when gitlab return only first 20 migrations (#497) by @mef13
  • GitHub
  • iofs

Database Drivers

  • used uber atomic bool instead standard in lock/unlock db (#580) by @prinkov
  • sqlite3
  • postgres & pgx
  • 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
    • Adding support for clickhouse cluster (#568) by @preved911
    • honor DefaultMigrationsTableEngine when created WithInstance() (#617) by @kaworu
  • spanner
    • fix (spanner): upgrade spanner client to v1.18.0 to support NUMERIC types (#565) by @kylechadha
    • Update Google Spanner dependency (#608) by @alethenorio
      • support for ROW DELETION POLICY, ALTER DATABASE and parsing keywords and functions in case insensitive
  • snowflake
    • Update snowflake DB driver to update to non-vulnarable jwt downstream package (#569) by @dhui
  • mssql
    • Add msi auth support (#591) by @samfoxcode
    • 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 from drop to down (#522) by @Juneezee

Docs

  • Point docs link to v4 (#524) by @jeffwidman
  • Update sqlite and sqlite3 docs with comparison by @dhui
  • Fix grammar for Clickhouse cluster mode docs by @dhui

v4.15.0-beta.1

04 Aug 07:51
5a601b9
Compare
Choose a tag to compare
v4.15.0-beta.1 Pre-release
Pre-release

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
  • iofs

Database Drivers

  • used uber atomic bool instead standard in lock/unlock db (#580) by @prinkov
  • sqlite3
  • postgres & pgx
  • clubhouse
  • 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
  • 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 from drop to down (#522) by @Juneezee

Docs

  • Point docs link to v4 (#524) by @jeffwidman
  • Update sqlite and sqlite3 docs with comparison by @dhui

v4.14.1

22 Nov 05:45
b690b78
Compare
Choose a tag to compare

Changes

Source Drivers

  • Remove iofs driver (#472) since it was breaking go mod tidy. Thanks to @zikaeroh for reporting the issue (#480) and @johejo for the revert PR (#481)