From 9a27838629fca7a83dd03504ec3ec02720176672 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Wed, 31 Jul 2024 09:59:03 +0700 Subject: [PATCH] chore(core/db): Make highlight text and owner unique together --- src/zibot/core/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zibot/core/db.py b/src/zibot/core/db.py index bc104bf..441a43b 100644 --- a/src/zibot/core/db.py +++ b/src/zibot/core/db.py @@ -168,3 +168,4 @@ class Highlight(ContainsGuildId, Model): class Meta: table = "highlight" + unique_together = (("text", "ownerId"),)