Fix schema for euph_spans

A primary key implies a NOT NULL constraint for all its columns, which
is not what we want here.
This commit is contained in:
Joscha 2022-06-24 23:04:17 +02:00
parent 5b28d1601d
commit 97366485c9

View file

@ -53,7 +53,7 @@ fn m1(tx: &mut Transaction) -> rusqlite::Result<()> {
start INT,
end INT,
PRIMARY KEY (room, start, end),
UNIQUE (room, start, end),
FOREIGN KEY (room, start) REFERENCES euph_msgs (room, id),
FOREIGN KEY (room, end) REFERENCES euph_msgs (room, id),