Skip to content

Releases: golang-migrate/migrate

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)

v4.14.0

21 Nov 06:10
1593164
Compare
Choose a tag to compare

Changes

Source Drivers

  • Add BitBucket as a source thanks to @Doctor-X (#450)
  • Improve error message readability when the source driver is missing thanks to @olicuzo (#454)
  • Add iofs source driver (Go 1.16+ only) fixing #471 thanks to @johejo (#472)

Database Drivers

  • Spanner
    • Add local locks for Spanner (fa3e119)
    • Run tests against in-memory emulator fixing #410
  • MySQL
    • Fix issue (#411) connecting to MySQL with custom TLS parameters. Thanks @Chronojam for the detailed bug report!
    • Fix issue with ANSI or ANSI_QUOTES sql_mode (#475) thanks to @MacTynow (#476)
  • Properly handle all errors when running drop thanks to @hypnoglow (#456)
  • Update dhui/dktest to update docker client which uses the module compatible version of logrus

CLI

  • Add help option (-h) to every migrate command thanks to @yageek (#460)

Docs

  • Warn about installing migrate via go get from within a module fixing #257
  • Document postgres search_path issues thanks to @veger (#414)
  • Typo fixed thanks to @xortive (#458)
  • Document -f option for the drop command thanks to @neomantra (#459)

v4.13.0

27 Sep 05:09
c602605
Compare
Choose a tag to compare

Changes

Database Driver

Builds

  • Support Go 1.15 and drop support for Go 1.13
  • Update to golangci-lint v1.30.0

Docs

v4.12.2

04 Aug 01:06
Compare
Choose a tag to compare

Changes

Database Driver

Builds

  • Use make for Docker builds

v4.12.1

28 Jul 19:44
d72c200
Compare
Choose a tag to compare

Changes

Builds

  • Add make target to avoid unnecessarily building for all OSes and architectures thanks to @dawidd6 (#419)

v4.12.0

27 Jul 06:47
07052cd
Compare
Choose a tag to compare

Breaking Changes

  • Spanner db driver no longer parses out multiple statements by default. See: #409 (comment). Thanks to @wyardley for pointing out that the breaking change wasn't documented in the release notes!

Changes

Core Library

  • Add multistmt package to handle splitting multiple statements in a migration

Database Driver

  • Fix Cassandra SSL URL param handling thanks to @kadenlnelson (#386)
  • Add mongodb+srv as a scheme to support seedlists thanks to @shiwano (#391)
  • Add snowflake db driver thanks to @abhinavcohesity (#402)
    • snowflake is not officially supported due to lack of tests
  • Update spanner driver thanks to @dmivankov (#403)
  • Support stripping comments and cleaning/parsing in spanner db driver thanks to @alethenorio (#409)
  • Update clickhouse, cassandra, and neo4j db drivers to use new multistmt package
  • Update neo4j driver to no longer require CGO thanks to @arjantop-cai (#415)
  • Update go-mssqldb and spanner drivers to remove dependency on vulnerable thrift package thanks to @odeke-em (#417)

Docs

Builds

  • Stop releasing .debs for Ubuntu 18.10 and start releasing for Ubuntu 20.04

v4.11.0

04 May 06:48
f5a22be
Compare
Choose a tag to compare

Breaking Changes

  • Fix neo4j.WithInstance() method signature to actually include an instance of the neo4j driver thanks to @dynastymasra (#373)

Changes

Core Library

  • Update hashicorp/go-multierror to v1.1.0 to fix #369 thanks to @jmramos02 (#375)

Database Driver

  • Properly handle first down migration failures (#330)
    • Affected drivers: cassandra, cockroachdb, firebird, mysql, neo4j, postgres, ql, redshift, sqlite, and sqlserver
      • Schema migration apply times are now tracked in Neo4j

Source Driver

CLI

  • Prompt before running the drop command thanks to @niksoper (#360)

Docs

  • Provide guidance on how to handle dirty database version errors fixing #337 thanks to @mknycha (#361)
  • Fix command for building and installing the CLI. Thanks to @JKKGBE for reporting.

v4.10.0

15 Mar 02:37
5cc28f0
Compare
Choose a tag to compare

Changes

Drivers

  • Make automatic transaction-wrapping of SQLite migrations configurable, fixing #346 thanks to @saj (#350)
  • Update CockroachDB driver fixing #308

CLI

  • Fixed path issues (#238) thanks to @13k and @r3code (#352)
    • Refactored/cleaned up migration creation code and increased test coverage!

Builds

  • Add support for Go 1.14 and drop support for Go 1.12
    • Pre-built binaries are now built using Go 1.14
  • Changed CLI path in Docker image fixing #304 thanks to @jace-ys (#356)

Docs

  • Add Windows install instructions using scoop thanks to @martinlindhe (#348)
  • Add docs for SQLite thanks to @saj

v4.9.1

17 Feb 17:47
Compare
Choose a tag to compare

Changes

Builds

  • Actually release windows 386