Skip to content

Commit

Permalink
chore(core/db): Make highlight text and owner unique together
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 31, 2024
1 parent 3b562ae commit 9a27838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zibot/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ class Highlight(ContainsGuildId, Model):

class Meta:
table = "highlight"
unique_together = (("text", "ownerId"),)

0 comments on commit 9a27838

Please sign in to comment.