-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
orm-cli generated incorrect type for #[sea_orm(primary_key)]. Should be u64. Was i64. #295
Comments
Hi @exzachlyvv, are you using MySQL? |
Yep, MySQL |
Currently, we did not capture I guess unsigned integer types are not included in |
Yes, you are right. I checked, SeaSchema did parse unsigned types. col_type: SmallInt(
NumericAttr {
maximum: None,
decimal: None,
unsigned: Some(
true,
),
zero_fill: None,
},
) But yeah we have to add it to SeaQuery first before it could be supported. The implication is though, it will not be portable as Postgres does not support unsigned. |
It appears that orm-cli failed to handle unsigned type as a primary key when generating models.
This later resulted in a:
The text was updated successfully, but these errors were encountered: