Skip to content

Releases: cljoly/rusqlite_migration

Version 1.1.0 Alpha 1

13 Feb 00:44
Compare
Choose a tag to compare
Version 1.1.0 Alpha 1 Pre-release
Pre-release

⚠️ The APIs exposed in this version may be unstable.

Minimum Rust Version

Rust 1.61

New Features

  • Add up/down hooks to run custom Rust code during migrations (PR thanks to @matze)
    • The purpose of this release is to get feedback on the new API. Please feel free to comment on this discussion!
  • Add foreign_key_check method to migrations (PR thanks to @Jokler)
  • Make Migration functions const (PR thanks to @fkaa)

Other

  • CI improvements
  • Linter improvements
  • Repository metadata improvements
  • Documentation improvements
  • Dev dependencies update (not dependencies of the library when used in another crate)

New Contributors

Full Changelog: v1.0.0...v1.1.0-alpha.1

Version 1.0.1

30 Oct 23:00
Compare
Choose a tag to compare

Version 1.0.1

Bug Fix

  • fix: error instead of panicking on higher migration level (see commit ad57d92)

Other

  • Documentation improvements

Version 1.0.0

27 Mar 13:58
Compare
Choose a tag to compare

Version 1.0.0

Breaking changes

  • Remove deprecated symbols (Migrations.latest, SchemaVersionError::MigrateToLowerNotSupported)

Other

  • Documentation improvements

Version 0.5.1

03 Dec 16:47
Compare
Choose a tag to compare

Version 0.5.1

Potentially Breaking Changes

Other

  • Improve the documentation

Version 0.5.0

03 Dec 16:42
Compare
Choose a tag to compare

Potentially breaking change

  • Update the env_logger dependency

Other

  • Improve the documentation

Version 0.4.2

17 Apr 17:16
Compare
Choose a tag to compare

Only documentation changes.

Version 0.4.1

17 Apr 17:17
Compare
Choose a tag to compare

Only documentation changes.

Version 0.4.0

06 Apr 20:21
Compare
Choose a tag to compare

New features

  • Add downward migrations, i.e. migrations to go to past schema version of the database. Thanks @MightyPork!
  • Unsafe code is now forbidden.

Breaking changes

  • Rename latest to to_latest. The old symbol is deprecated and will be removed eventually.
  • An error is now returned when a migration is attempted while no migrations exist.

Other

  • Improve general rust API documentation.
  • Generate parts of the readme based on rust comments, for increased consistency with the docs.rs content.
  • Various refactoring and clean-ups.

Version 0.3.1

14 Mar 18:37
Compare
Choose a tag to compare

Fix in readme, for crates.io

Version 0.3

14 Mar 18:35
163b049
Compare
Choose a tag to compare

New features

  • Multi line sql statements like:
    M::up(r#"
    CREATE TABLE t1(a, b);
    CREATE TABLE t2(a, b);
    "#)
    are now fully supported

Other

  • Various doc & CI improvements
  • Fix a case of failure with silent errors.