Add UNIQUE constraint on message_id column
This commit is contained in:
parent
8536decf0e
commit
d210f8aa88
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ create table newsgroup (
|
||||||
create table newsgroup_message (
|
create table newsgroup_message (
|
||||||
id INTEGER PRIMARY KEY NOT NULL,
|
id INTEGER PRIMARY KEY NOT NULL,
|
||||||
newsgroup_id INTEGER 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,
|
created_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
sender TEXT NOT NULL,
|
sender TEXT NOT NULL,
|
||||||
subject TEXT NOT NULL,
|
subject TEXT NOT NULL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue