The only change is a fix to the deps.rs badge in the documentation.
The code of this version is identical to Version 1.3.0 Beta 1
Rusqlite was updated from 0.31.0 to 0.32.1. Please see the release notes for 0.32.0 and for 0.32.1. Tokio Rusqlite was updated from 0.5.1 to 0.6.0. Please see the release notes.
Rust 1.77
Various documentation improvements and clarification. In particular, call out that if a rusqlite error is encountered during a migration, the next migrations in the list are not applied.
- Apply minor or patch updates to the dependencies
- Update development dependencies
- Make CI testing more reproducible by forcing the use of Cargo.lock
This reintroduces the async features temporarily removed from Version 1.3.0 Alpha-Without-Tokio 1
Rusqlite was updated from 0.31.0 to 0.32.1. Please see the release notes for 0.32.0 and for 0.32.1. Tokio Rusqlite was updated from 0.5.1 to 0.6.0. Please see the release notes.
Rust 1.77
Various documentation improvements and clarification. In particular, call out that if a rusqlite error is encountered during a migration, the next migrations in the list are not applied.
- Apply minor or patch updates to the dependencies
- Update development dependencies
- Make CI testing more reproducible by forcing the use of Cargo.lock
This is an alpha version to start integrating rusqlite 0.32.1. Unfortunately, at this time, tokio-rusqlite is did not update to rusqlite 0.32.1. So we are temporarily removing the async features, while we figure out a way to bring them back. To be clear, we intend to support the async features going forward, this is a temporary change in a specifically tagged version.
Rusqlite was updated from 0.31.0 to 0.32.1. Please see the release notes for 0.32.0 and for 0.32.1
Rust 1.77
Various documentation improvements and clarification. In particular, call out that if a rusqlite error is encountered during a migration, the next migrations in the list are not applied.
- Apply minor or patch updates to the dependencies
- Update development dependencies
- Make CI testing more reproducible by forcing the use of Cargo.lock
Same code as version 1.2.0-beta.1
- Improved the badges a little bit
Small release, mainly to update dependencies.
Now using edition 2021, but the minimum rust version is still 1.70
No new features.
- Update rusqlite to 0.31
- Update various development dependencies
- Improve CI build time
- Impove documentation
- Fix some broken examples
Rusqlite was updated from 0.30 to 0.31. Please see its release notes
Same code as version 1.1.0-beta.1
Rust 1.70
- Support for tokio-rusqlite behind the feature named
alpha-async-tokio-rusqlite
thanks to @czocher. See the example. This feature is alpha, meaning that compatibility in future minor versions is not guaranteed. - Create migrations from directories holding SQL files thanks to @czocher. See the example.
- Add up/down hooks to run custom Rust code during migrations (PR thanks to @matze)
- Add foreign_key_check method to migrations (PR thanks to @Jokler)
- Make
Migration
functions const (PR thanks to @fkaa) - Make
Migrations
serializable (using the Debug serializer) with insta.
- Mark
Migrations::from_iter
as deprecated
- Documentation improvements
- Repository metadata improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes and other linter improvements
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Updated dependencies
Rusqlite was updated from 0.29.0 to 0.30.0. Please see its release notes
Summing up all the changes from the previous Alpha versions.
Rust 1.70
- Support for tokio-rusqlite behind the feature named
alpha-async-tokio-rusqlite
thanks to @czocher. See the example. This feature is alpha, meaning that compatibility in future minor versions is not guaranteed. - Create migrations from directories holding SQL files thanks to @czocher. See the example.
- Add up/down hooks to run custom Rust code during migrations (PR thanks to @matze)
- Add foreign_key_check method to migrations (PR thanks to @Jokler)
- Make
Migration
functions const (PR thanks to @fkaa) - Make
Migrations
serializable (using the Debug serializer) with insta.
- Mark
Migrations::from_iter
as deprecated
- Documentation improvements
- Repository metadata improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes and other linter improvements
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Updated dependencies
Rusqlite was updated from 0.29.0 to 0.30.0. Please see its release notes
Rust 1.64
- Create migrations from directories holding SQL files. See the example.
- Mark
Migrations::from_iter
as deprecated
- Documentation improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Update dependencies
Rust 1.61
- 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)
- Please beware of the follow up work needed on this
- Make
Migration
functions const (PR thanks to @fkaa)
- CI improvements
- Linter improvements
- Repository metadata improvements
- Documentation improvements
- Dev dependencies update (not dependencies of the library when used in another crate)
- fix: adapt to rusqlite 0.29 and tighten dependency requirements for rusqlite (see this discussion)
- fix: error instead of panicking on higher migration level (see commit ad57d92d1677420eb81c4e25635be1884f9b7ce7)
- Documentation improvements
- Remove deprecated symbols (
Migrations.latest
,SchemaVersionError::MigrateToLowerNotSupported
)
- Documentation improvements
- Update the
rusqlite
crate (to protect agaisnt RUSTSEC-2020-0014)
- Improve the documentation
- Update the
env_logger
dependency - Improve the documentation
- Update documentation
- Add downward migrations, i.e. migrations to go to past schema version of the database. Thanks @MightyPork!
- Unsafe code is now forbidden.
- Rename
latest
toto_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.
- 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.
Fix in readme, for crates.io
- Multi line sql statements like:
are now fully supported
M::up(r#" CREATE TABLE t1(a, b); CREATE TABLE t2(a, b); "#)
- Various doc & CI improvements
- Fix a case of failure with silent errors.