github pressly/goose v2.1.0
Add reset command

latest releases: v3.23.0, v3.22.1, v3.22.0...
7 years ago

reset calls goose down for each applied migration, until it reaches the oldest migration.

  • Useful when switching between different development branches (you can rewind WIP migrations from the previous branch and apply yours).
  • Also very useful for CI tests (you can run goose up && goose reset && goose up to double check your migrations are in good shape in both directions.

Kudos to @smacker

Don't miss a new goose release

NewReleases is sending notifications on new releases.