Skip to content

Releases: golang-migrate/migrate

v4.5.0

12 Jul 06:17
ff1977c

Choose a tag to compare

Breaking Changes

  1. For safety reasons, migrate down now presents a confirmation prompt instead of running all down migrations thanks to @KlotzAndrew (#236)
    • For previous behavior, use migrate down -all. Namely, if you have scripts that run migrate down, you'll now have to run migrate down -all

Changes

  • Added support for Github Enterprise sources thanks to @kasparasg (#234)

v4.4.0

04 Jun 04:39
8437fe6

Choose a tag to compare

Changes

v4.3.1

27 Apr 05:49

Choose a tag to compare

Changes

  • Additional linters were enabled thanks to @kmuratov (#206)
    • Previously many errors in deferred calls were ignored. We're now using multierror for errors arising in a deferred call, so this may break any code that relied on specific errors.
  • Official support for Firebird is dropped. For more info, see: #49 (comment)
  • Another attempt at fixing #202

v4.3.0

16 Apr 16:22

Choose a tag to compare

Changes

  • Fixed bug (#164) introduced by #150 by not re-creating the schema version table thanks to @lukaspj (#173)
    • This change was made to all DB drivers and may break your dev workflow if you expect the schema version table to exist after Migrate.Drop() is run.
  • Support Go 1.12.x and drop support for Go 1.10.x
    • Distributed CLI binaries are now built with Go 1.12.x
  • Updated dependencies
    • Fixes issue with dependencies using wrong golint import path (#202)
  • Support gitlab as a migration source thanks to @bpatyi (#184)
  • Support migrations for the Firebird database thanks to @kmuratov (#191)

v4.2.5

26 Feb 03:19

Choose a tag to compare

Changes

  • Support MongoDB in Docker image thanks to @plutov (#175)
  • Properly quote Postgres identifiers in SQL queries internal to migrate thanks to @jszwedko (#176)
  • Replace unnecessary panics in core implementation with errors
  • Use Alpine Linux 3.9 as base Docker image

v4.2.4

13 Feb 03:34
c0f025d

Choose a tag to compare

Changes

  • Correctly use configured migration table in SQLite db driver. Fixes #165 thanks to @bcho (#166)
  • Fix ErrNilDocument issue when using newer versions of mongo-go-driver thanks to @arpando (#167)

v4.2.3

01 Feb 01:35
f6d624c

Choose a tag to compare

Changes

  • Fix issue (#55) with postgres db driver failing when run concurrently due to lack of locking when the schema version tracking table is created thanks to @tsenart (#150)

v4.2.2

15 Jan 20:02

Choose a tag to compare

Changes

  • Add support for MongoDB migrations thanks to @bobrovde (#146)
  • Test improvements
    • MySQL DB driver tests should pass more consistently
  • Update gocql (Cassandra DB driver)
    • Cassandra DB driver tests should pass more consistently

v4.2.1

04 Jan 00:54

Choose a tag to compare

Changes

  • Fix release packaging issue

v4.2.0

03 Jan 20:05
fd50054

Choose a tag to compare

Breaking Changes

  • Update github.com/docker/docker checksum in go.sum which is computed differently in Go 1.11.4
    • If you're using Go modules, you'll need to use Go 1.11.4 with this version.

Changes

  • Update github.com/go-sql-driver/mysql from v1.4.0 to v1.4.1 to fix issue with connecting to a MySQL RDBMS w/o a password. Thanks to @fsouza for reporting (#139) and fixing (#141) the issue.
  • More tolerant URL parsing by file source driver thanks to @coolaj86 (#143)
  • Support NilVersion in ClickHouse db driver thanks to @bobrovde (#145)
    • To use this, you'll need to manually ALTER the version column in the schema version table. e.g. ALTER schema_migrations MODIFY COLUMN version Int64