Skip to content
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

CLI: generate has_one relation for foreign key of unique index / constraint #2254

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Jun 7, 2024

PR Info

Bug Fixes

  • Generate has_one relation for foreign key column with unique index / constraint

Install sea-orm-cli and try it on your local machine:

cargo install sea-orm-cli --force --git https://github.com/SeaQL/sea-orm --branch cli-gen-has-one-relation

@SZenglein
Copy link
Contributor

This does fix my issue I tried to fix in #2236

@billy1624 billy1624 merged commit bca933a into master Jun 19, 2024
35 checks passed
@billy1624 billy1624 deleted the cli-gen-has-one-relation branch June 19, 2024 12:40
Copy link

🎉 Released In 1.0.0-rc.6 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

Copy link

github-actions bot commented Aug 4, 2024

🎉 Released In 1.0.0 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

has_one relation is not recognized with primary foreign key (class table inheritance)
2 participants