github pressly/goose v3.21.1

latest releases: v3.23.0, v3.22.1, v3.22.0...
5 months ago
  • Add GetVersions method to goose.Provider, returns the current (max db) version and the latest
    (max filesystem) version. (#756)
  • Clarify GetLatestVersion method MUST return ErrVersionNotFound if no latest migration is
    found. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
    API surface.
  • Add GetLatestVersion implementations to all existing dialects. This is an optimization to avoid
    loading all migrations when only the latest version is needed. This uses the max function in SQL
    to get the latest version_id irrespective of the order of applied migrations.
    • Refactor existing portions of the code to use the new GetLatestVersion method.

Note, v3.21.0 was retracted due to a reported user issue #779 with Go modules and replace directives when using go run, hence the patch bump to v3.21.1.

Don't miss a new goose release

NewReleases is sending notifications on new releases.