Skip to content

Releases: getkalido/hb_migrations

v2.0.0: Merge pull request #7 from getkalido/feature/rework

23 Oct 11:42
24af310
Compare
Choose a tag to compare

This migration library was in dire need of an update, to make it easier to maintain and use.

Changelog

  • Functionality has been encapsulated, so that migrations can be managed for multiple databases without trampling each other's configuration.
  • Migrations now need to be registered in a Registry object.
    • This does mean that the pattern of globally registering migrations in init() methods no longer work. The workaround is to define a Registry (by value, not pointer) in the package where migrations are generated. The zero-value of the registry is ready for use, so it doesn't need special initialisation.
    • The Registry should be thread-safe.
  • Functionality is now accessed by running methods on a Migrator. This should be easier to use than emulating command-line arguments without proper type-checking.
  • Case conversion now allocates fewer strings.
  • Configuration is achieved by the options pattern. Any of the With*() functions can be called and passed to the Migrator's constructor as additional arguments.
  • The package now defines a number of errors, which can be easily checked with errors.Is() from github.com/pkg/errors.

Upgrade to go-pg v10.

18 Nov 07:11
9c9fb18
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.8...v1.1.9

Correct the gopg library version in the template file.

19 Jul 14:07
f6e9ab3
Compare
Choose a tag to compare
Merge pull request #3 from getkalido/fix/go_pg_version

Fix migration template gopg version