Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

fix(deps): update module github.com/golang-migrate/migrate to v4 #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 22, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
github.com/golang-migrate/migrate require major v3.5.4+incompatible -> v4.14.1

Release Notes

golang-migrate/migrate

v4.14.1

Compare Source

Changes

Source Drivers

v4.14.0

Compare Source

Changes

Source Drivers
Database Drivers
  • Spanner
    • Add local locks for Spanner (fa3e119)
    • Run tests against in-memory emulator fixing #​410
  • MySQL
  • 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
Docs

v4.13.0

Compare Source

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

Compare Source

Changes

Database Driver
Builds
  • Use make for Docker builds

v4.12.1

Compare Source

Changes

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

v4.12.0

Compare Source

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
Docs
Builds
  • Stop releasing .debs for Ubuntu 18.10 and start releasing for Ubuntu 20.04

v4.11.0

Compare Source

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

Compare Source

Changes

Drivers
  • Make automatic transaction-wrapping of SQLite migrations configurable, fixing #​346 thanks to @​saj (#​350)
  • Update CockroachDB driver fixing #​308
CLI
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

v4.9.1

Compare Source

Changes

Builds
  • Actually release windows 386

v4.9.0

Compare Source

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

Compare Source

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

Compare Source

Changes

v4.7.0

Compare Source

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

Compare Source

Changes

v4.6.1

Compare Source

Changes

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

v4.6.0

Compare Source

Breaking Changes

  • Updated MongoDB driver to v1.1.0
    • If you're using migrate as a library with MongoDB, you'll need to update your MongoDB driver version as well.
  • Missing migrate CLI commands will now return a non-zero exit status thanks to @​groyoh (#​260)
  • Go 1.12.8 fixed a security issue where invalid URIs were being parsed. The fix broke migrate when used with MySQL. Thanks to @​erikdubbelboer for the fixes and @​lou-lan for discovering an issue w/ the original fix! (#​265 and #​271)

Changes

  • Update NewDockerContainer in unused/deprecated migrate/testing package thanks to @​thaJeztah (#​270)

v4.5.0

Compare Source

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

v4.4.0

Compare Source

Changes

v4.3.1

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

Changes

  • Fix release packaging issue

v4.2.0

Compare Source

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

v4.1.0

Compare Source

Breaking Changes

  • The Redshift DB driver no longer exposes an embedded database.Driver.
    The decision was made to include this backwards incompatible change since it's unlikely to affect any users. e.g. the affected usage is an anti-pattern
    For more info, see: #​128 (comment)
    You will not be impacted by this change unless you're using the Redshift DB driver's embedded database.Driver e.g. redshift.Redshift.Driver
    If you encounter this issue, either:
    1. Stop using the embedded database.Driver and instead use the Redshift DB driver which provides the same interface.
    1. Wrap the new Redshift DB driver and update your references to use your new wrapper
  • Debian packages install migrate to /usr/local/bin instead of /usr/bin. You'll need to update any references to the migrate binary that uses absolute paths and ensure that /usr/local/bin is in your environment PATH.

Changes

  • Support TLS connections in the Cassandra DB driver thanks to @​weszeloos (#​115)
  • Allow the Spanner DB driver to be customized in Go thanks to @​wmetaw (#​121)
  • Support migrating multiple schemas in Postgres thanks to @​vporoshok (#​127)
  • Fix the Redshift DB driver (not sure if it ever worked...). Thanks to @​sumits for reporting and investigating (#​90) and @​andrei-m for fixing (#​128)
  • Changed CLI path so that binaries built using the Go tool chain have the namemigrate thanks to @​vearutop (#​131)
  • Support Debian packages across more distros (debian/stretch, debian/buster, ubuntu/xenial [16.04 LTS], ubuntu/bionic [18.04 LTS], ubuntu/cosmic [18.10])

v4.0.2

Compare Source

Changes

  • Update dependencies

v4.0.1

Compare Source

Changes

v4.0.0

Compare Source

Breaking Changes

  • Opt-in to Go 1.11 modules
    _ Per the Go module wiki, only Go 1.9.7+, 1.10.3+, and 1.11+ are supported
    _ You'll need to use Go modules to use this release
    _ Use modules: go mod init
    _ Update to the latest version of migrate: go get -u github.com/golang-migrate/migrate
    _ If you're updating from v3.5.2, you'll need to update all of your imports from v3 to v4
    _ A command like this should update your imports:
    sed -i -e 's@"github.com/golang-migrate/migrate/v3@​"github.com/golang-migrate/migrate/v4@​g' $(git grep -l '"github.com/golang-migrate/migrate/v3')
    _ If you're updating from any other version before v4 except for v3.5.2, you'll need to change your imports to include v4
    _ A command like this should update your imports:
    sed -i -e 's@"github.com/golang-migrate/migrate@"github.com/golang-migrate/migrate/v4@​g' $(git grep -l '"github.com/golang-migrate/migrate')
    * Note: BSD sed and GNU sed treat the -i option differently. Please consult your sed man page before running any of the commands above

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant