Database migrations. CLI and Golang library.
migrate
as a library with MongoDB, you'll need to update your MongoDB driver version as well.migrate
CLI commands will now return a non-zero exit status thanks to @groyoh (https://github.com/golang-migrate/migrate/pull/260)migrate
when used with MySQL. Thanks to @erikdubbelboer for the fixes and @lou-lan for discovering an issue w/ the original fix! (https://github.com/golang-migrate/migrate/pull/265 and https://github.com/golang-migrate/migrate/pull/271)NewDockerContainer
in unused/deprecated migrate/testing
package thanks to @thaJeztah (https://github.com/golang-migrate/migrate/pull/270)migrate down
now presents a confirmation prompt instead of running all down migrations thanks to @KlotzAndrew (https://github.com/golang-migrate/migrate/pull/236)
migrate down -all
. Namely, if you have scripts that run migrate down
, you'll now have to run migrate down -all
Migrate.Drop()
is run.migrate
thanks to @jszwedko (https://github.com/golang-migrate/migrate/pull/176)