From 2da0429f410c3db289c6054b900bcba494aa9094 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 9 May 2022 22:06:23 +0800 Subject: [PATCH] Changelog --- CHANGELOG.md | 3 ++- src/entity/prelude.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 712d80dd..0f6403bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,8 +11,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * [sea-orm-cli] `sea migrate generate` to generate a new, empty migration file https://github.com/SeaQL/sea-orm/pull/656 ### Enhancements -* Add max_connections option to CLI https://github.com/SeaQL/sea-orm/pull/670 +* Add `max_connections` option to CLI https://github.com/SeaQL/sea-orm/pull/670 * Derive `Eq`, `Clone` for `DbErr` https://github.com/SeaQL/sea-orm/pull/677 +* Add `is_changed` to `ActiveModelTrait` https://github.com/SeaQL/sea-orm/pull/683 ### Breaking changes * Migration utilities are moved from sea-schema to sea-orm repo, under a new sub-crate `sea-orm-migration`. `sea_schema::migration::prelude` should be replaced by `sea_orm_migration::prelude` in all migration files diff --git a/src/entity/prelude.rs b/src/entity/prelude.rs index 10b1bb50..5d614c1f 100644 --- a/src/entity/prelude.rs +++ b/src/entity/prelude.rs @@ -22,7 +22,7 @@ pub use chrono::NaiveDate as Date; pub use chrono::NaiveTime as Time; #[cfg(feature = "with-chrono")] -pub use chrono::NaiveDateTime as DateTime; +pub type DateTime = chrono::DateTime; /// Date time with fixed offset #[cfg(feature = "with-chrono")]