Closed omjadas closed 7 months ago
I just compiled the latest main
branch version of sea-orm-cli
and in my case it still failed to add that primary key attribute.
I just compiled the latest
main
branch version ofsea-orm-cli
and in my case it still failed to add that primary key attribute.
Looks like we are waiting on a new release of https://github.com/SeaQL/sea-schema
Description
When a postgres DB contains partitions of a partitioned table (if a partitioned table is present but doesn't have any partitions then this issue does not happen). If sea-orm-cli is used to generate entities none of the entities have the
primary_key
attribute (even non partitioned tables). This seems to have worked prior to0.12.0
.Steps to Reproduce
sea-orm-cli generate entity
Expected Behavior
Generated entities have
primary_key
attributesActual Behavior
Generated entities do not
primary_key
attributesReproduces How Often
Always
Workarounds
Manually add
primary_key
attributes after generating entities.Reproducible Example
Versions
Broken in
0.12.14
. I have also tested0.11.3
and when using it theprimary_key
attributes are correctly set.