Skip to content

Releases: golang-migrate/migrate

v4.12.0

27 Jul 06:47
07052cd

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

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

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

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

Choose a tag to compare

Changes

Builds

  • Actually release windows 386

v4.9.0

17 Feb 10:41
51f9aab

Choose a tag to compare

Changes

Drivers

  • Add support for Neo4j thanks to @mvid (#320)
  • Support statement timeouts in postgres using the x-statement-timeout option thanks to @coolnay309 (aka @psuresh309) (#327)
  • Allow AWS S3 client to be specified thanks to @bishtawi (#334)
  • Updated cloud.google.com/go drivers to fix linting issues
  • Dropped support for Postgres 9.4 (EOL) and added support for Postgres 12

Builds

Docs

v4.8.0

13 Jan 07:33

Choose a tag to compare

Changes

Docs

Drivers

  • Add httpfs driver, making it easier to create source drivers that implement thehttp.FileSystem interface. Resolves #307 thanks to @fln (#293).
    • File and GodocVFS sources now use httpfs.PartialDriver
  • Change QL driver from github.com/cznic/ql/driver to modernc.org/ql/driver

Builds

  • Linux ARM binaries are now available with each release thanks to @pcarranza (#316)
  • Release now built using Go 1.13

v4.7.1

16 Dec 17:31
41b578a

Choose a tag to compare

Changes

v4.7.0

22 Oct 05:11

Choose a tag to compare

Changes

  • Support Go 1.13 and drop support for Go 1.11
  • Respect DB driver values specified via config structs. Fixes #262.
  • Trim whitespace for spanner migrations thanks to @jon-whit (#288)
  • Officially support Firebird SQL again thanks to @jacobalberty. Fixes #49

v4.6.2

09 Sep 16:07

Choose a tag to compare

Changes

  • Removed unnecessary debug output thanks to @ch3rub1m (#277)
  • Improved error messages when no migrations are found thanks to @dotchev (#158)

v4.6.1

22 Aug 18:50

Choose a tag to compare

Changes

  • Fix issue (#272) parsing MySQL DSNs with custom query parameters. Thanks to @mitchellh for reporting!