-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default_expr method not found in sea_orm::ColumnDef
#826
Comments
@TKFRvisionOfficial hello! Thank you, this is strange, because sea-query has an issue: SeaQL/sea-query#347 I am working on it, but I need more time. |
Hey @TKFRvisionOfficial, sorry for the delay. We will support |
I think sea-query now supports it, so it should be doable to add macro support in sea-orm |
@billy1624 What I exactly need to do in this? |
Update Then, update the macros: sea-orm/sea-orm-macros/src/derives/entity_model.rs Lines 297 to 299 in 565cb5e
|
@billy1624 #[derive(Debug, Clone, PartialEq)]
pub struct ColumnDef {
pub(crate) col_type: ColumnType,
pub(crate) null: bool,
pub(crate) unique: bool,
pub(crate) indexed: bool,
pub(crate) default_value: Option<SimpleExpr>,
} |
Correct! |
Hey! @billy1624 I couldn't get my head around the macros part can you please help? |
@pratushrai0309 are you still working on this? |
Yeah! Go for it |
@billy1624 Since Also, once |
Description
default_expr does not seem to be implemented
Steps to Reproduce
Expected Behavior
A uuid should be generated if none specified.
Actual Behavior
Reproduces How Often
Always
Versions
Additional Information
(Cargo Expand)
The text was updated successfully, but these errors were encountered: