Skip to content

Commit

Permalink
add a unique index to prevent duplicate claims
Browse files Browse the repository at this point in the history
  • Loading branch information
plural committed Jan 27, 2022
1 parent 91ba816 commit ef0e861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AppBundle/Resources/config/doctrine/Claim.orm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
AppBundle\Entity\Claim:
type: entity
table: claim
uniqueConstraints:
usercard_index:
columns: [ decklist_id, client_id, name, rank ]
id:
id:
type: integer
Expand Down

0 comments on commit ef0e861

Please sign in to comment.