Skip to content

v4.0.0

Compare
Choose a tag to compare
@dhui dhui released this 11 Oct 06:46
· 756 commits to master since this release

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