Add UNIQUE constraint on message_id column

This commit is contained in:
XANTRONIX Development 2024-11-09 10:34:50 -05:00
parent 8536decf0e
commit d210f8aa88

View file

@ -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,