We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to add unique key to model with 2 fields. Django offers a design _meta.unique_togetter. How i can do it with Trotoise?
_meta.unique_togetter
The text was updated successfully, but these errors were encountered:
Hi
Tortoise doesn't support compound indexes yet. You can simulate this by creating a compound unique index in your DB over those two tables.
I'm also tagging this as a feature request :-)
Sorry, something went wrong.
thanks :)
Added ability to create tables with "unique_together" meta options (#112
7c2f238
) Added ability to use "unique_together" meta Model option like in Django (#108)
Hi @Bobsans v0.11.6 #112 should have added this feature. Please test :-)
Yes. It's works. Thanks.
No branches or pull requests
I need to add unique key to model with 2 fields. Django offers a design
_meta.unique_togetter
. How i can do it with Trotoise?The text was updated successfully, but these errors were encountered: