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

Add UniqueConstraint to custom through tables #3730

Open
9 tasks
amickan opened this issue Dec 4, 2024 · 2 comments
Open
9 tasks

Add UniqueConstraint to custom through tables #3730

amickan opened this issue Dec 4, 2024 · 2 comments

Comments

@amickan
Copy link
Contributor

amickan commented Dec 4, 2024

As per the Django documentation, we should add a UniqueConstraint including the from and to fields to all custom through tables in the codebase.

List of through tables that need updating:

  • OptionalHangingProtocolAlgorithm
  • OptionalHangingProtocolArchive
  • DirectMessageUnreadBy
  • ConversationParticipant
  • OptionalHangingProtocolPhase
  • CombinedLeaderboardPhase
  • WorkstationSessionReaderStudy
  • OptionalHangingProtocolReaderStudy
  • VerificationUserSetUser
@chrisvanrun
Copy link
Contributor

Not all of them, just the ones that weren't automatically created by Django for some relations.

@amickan
Copy link
Contributor Author

amickan commented Dec 5, 2024

Those are all the custom through tables.

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

No branches or pull requests

2 participants