CHANGELOG
This commit is contained in:
parent
4f8ad56cc4
commit
cac12bbc58
@ -10,9 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
* Fixes `DeriveActiveEnum` (by qualifying `ColumnTypeTrait::def`) https://github.com/SeaQL/sea-orm/issues/1478
|
* Fixes `DeriveActiveEnum` (by qualifying `ColumnTypeTrait::def`) https://github.com/SeaQL/sea-orm/issues/1478
|
||||||
|
|
||||||
* The CLI command `sea-orm-cli generate entity -u '<DB-URL>'` will now generate the following code for each `Binary` or `VarBinary` columns in compact format https://github.com/SeaQL/sea-orm/pull/1529
|
* The CLI command `sea-orm-cli generate entity -u '<DB-URL>'` will now generate the following code for each `Binary` or `VarBinary` columns in compact format https://github.com/SeaQL/sea-orm/pull/1529
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "binary")]
|
#[sea_orm(table_name = "binary")]
|
||||||
@ -33,9 +31,7 @@ pub struct Model {
|
|||||||
pub var_binary: Vec<u8>,
|
pub var_binary: Vec<u8>,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
* The CLI command `sea-orm-cli generate entity -u '<DB-URL>' --expanded-format` will now generate the following code for each `Binary` or `VarBinary` columns in expanded format https://github.com/SeaQL/sea-orm/pull/1529
|
* The CLI command `sea-orm-cli generate entity -u '<DB-URL>' --expanded-format` will now generate the following code for each `Binary` or `VarBinary` columns in expanded format https://github.com/SeaQL/sea-orm/pull/1529
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
impl ColumnTrait for Column {
|
impl ColumnTrait for Column {
|
||||||
type EntityName = Entity;
|
type EntityName = Entity;
|
||||||
@ -54,6 +50,7 @@ impl ColumnTrait for Column {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
* Fix missing documentation on type generated by derive macros https://github.com/SeaQL/sea-orm/pull/1522, https://github.com/SeaQL/sea-orm/pull/1531
|
||||||
|
|
||||||
## 0.11.0 - 2023-02-07
|
## 0.11.0 - 2023-02-07
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user