Open ttys3 opened 1 year ago
MEDIUMINT
is not currently a supported type in SeaQuery / SeaORM, and will unlikely be, because it does not align with other databases.
I think the best we can do is to map MEDIUMINT
to i32
, basically treating it the same as INT
@billy1624
Description
generate model using latest stable cli
a table has field type
MEDIUMINT UNSIGNED
was generated asString
which is wrong, should be number types.Steps to Reproduce
create a demo database, which as a demo table, has a field
invited_by
with typeMEDIUMINT UNSIGNED
Expected Behavior
the model should generate something like:
Actual Behavior
Reproduces How Often
always
Workarounds
manual fixup after generation
Reproducible Example
Versions
sea-orm-cli -V sea-orm-cli 0.11.1