Skip to content

v0.5.0

Compare
Choose a tag to compare
@jdkaplan jdkaplan released this 18 Jul 17:59

This release is a full rewrite of this entire project to be (hopefully) more idiomatic Rust code than a Rust port of Go code (which is what it was).

I don't have any easy upgrade instructions, but looking at the changes to main.rs from #47 should give you a place to start. I don't expect that anyone discovered this and started using it as a library, but if you did and want help migrating, please open an issue!

Features

  • Now with modules and types!
  • Derive useful standard library traits on types
  • Replace anyhow::Result with operation-specific error enums

Fixes

  • init, new, renumber/align-ids: Allow filesystem-only commands without DB config
  • status: Avoid printing duplicate rows for applied migrations
  • status: Print local migration directory name if present
  • status: Remove redundant "comment" field
  • init, new: Error if migration ID already exists
  • Make -v/--verbosity a global flag

Changes

  • Rename the renumber --write subcommand to align-ids --execute. The old subcommand and flag
    will be available as hidden aliases until the next set of breaking changes.

Docs

  • Update the init migration comment text to clarify what the no-transaction directive does.
  • Add help text for all CLI subcommands and flags

Development

  • Now with tests!
  • Ignore CLI files when running the command from this repo
  • Add docker-compose.yml for local integration testing