Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The table {election_ballot} should have a unique constraint ('election_id', 'post_id', 'uid'). This would ensure that never can there be more than one vote per person for the same election post.
Comment | File | Size | Author |
---|---|---|---|
#7 | election-improve_unqiue_one_vote_per_person-2615078-7-D7.patch | 989 bytes | Liam Morland |
#2 | election-election_ballot_unique_key-2615078-2-D7.patch | 843 bytes | Liam Morland |
Comments
Comment #2
Liam MorlandComment #3
pjcdawkins CreditAttribution: pjcdawkins commentedComment #6
Liam MorlandThe constraint should be ('post_id', 'uid').
Comment #7
Liam MorlandComment #8
pjcdawkins CreditAttribution: pjcdawkins commentedCommitted - thanks