From d210f8aa887443f2363349694d351f6431c467dc Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 9 Nov 2024 10:34:50 -0500 Subject: [PATCH] Add UNIQUE constraint on message_id column --- db/newsgroup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/newsgroup.sql b/db/newsgroup.sql index e35f37a..e9edf5b 100644 --- a/db/newsgroup.sql +++ b/db/newsgroup.sql @@ -9,7 +9,7 @@ create table newsgroup ( create table newsgroup_message ( id INTEGER PRIMARY KEY NOT NULL, newsgroup_id INTEGER NOT NULL, - message_id TEXT NOT NULL, + message_id TEXT NOT NULL UNIQUE, created_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, sender TEXT NOT NULL, subject TEXT NOT NULL,