Changelog
This commit is contained in:
parent
2d3926294b
commit
76a4ba4f0f
@ -67,6 +67,10 @@ impl sea_orm::sea_query::ValueType for MyType {
|
|||||||
* `ActiveEnum::name()` changed return type to `DynIden`:
|
* `ActiveEnum::name()` changed return type to `DynIden`:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
#[derive(Debug, Iden)]
|
||||||
|
#[iden = "category"]
|
||||||
|
pub struct CategoryEnum;
|
||||||
|
|
||||||
impl ActiveEnum for Category {
|
impl ActiveEnum for Category {
|
||||||
// then
|
// then
|
||||||
fn name() -> String {
|
fn name() -> String {
|
||||||
@ -74,10 +78,6 @@ impl ActiveEnum for Category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// now
|
// now
|
||||||
#[derive(Debug, Iden)]
|
|
||||||
#[iden = "category"]
|
|
||||||
pub struct CategoryEnum;
|
|
||||||
|
|
||||||
fn name() -> DynIden {
|
fn name() -> DynIden {
|
||||||
SeaRc::new(CategoryEnum)
|
SeaRc::new(CategoryEnum)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user