From 0437061287bfed8522e411fdde0b83b811372b74 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Wed, 19 Oct 2022 00:43:10 +0800 Subject: [PATCH] Changelog --- CHANGELOG.md | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f09df816..2443ba71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * Replaced `usize` with `u64` in `PaginatorTrait` https://github.com/SeaQL/sea-orm/pull/789 * Type signature of `DbErr` changed as a result of https://github.com/SeaQL/sea-orm/pull/1002 +* `ColumnType::Enum` structure changed: +```rust +enum ColumnType { + // then + Enum(String, Vec) + + // now + Enum { + /// Name of enum + name: DynIden, + /// Variants of enum + variants: Vec, + } + ... +} +``` ### House keeping @@ -54,7 +70,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Migration Guide * A new method `array_type` was added to `ValueType` - ```rust impl sea_orm::sea_query::ValueType for MyType { fn array_type() -> sea_orm::sea_query::ArrayType { @@ -65,7 +80,6 @@ impl sea_orm::sea_query::ValueType for MyType { ``` * `ActiveEnum::name()` changed return type to `DynIden`: - ```rust #[derive(Debug, Iden)] #[iden = "category"] @@ -85,24 +99,6 @@ impl ActiveEnum for Category { } ``` -* `ColumnType::Enum` structure change: - -```rust -enum ColumnType { - // then - Enum(String, Vec) - - // now - Enum { - /// Name of enum - name: DynIden, - /// Variants of enum - variants: Vec, - } - ... -} -``` - ## 0.9.3 - 2022-09-30 ### Enhancements