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:
parent
5b28d1601d
commit
97366485c9
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ fn m1(tx: &mut Transaction) -> rusqlite::Result<()> {
|
||||||
start INT,
|
start INT,
|
||||||
end INT,
|
end INT,
|
||||||
|
|
||||||
PRIMARY KEY (room, start, end),
|
UNIQUE (room, start, end),
|
||||||
FOREIGN KEY (room, start) REFERENCES euph_msgs (room, id),
|
FOREIGN KEY (room, start) REFERENCES euph_msgs (room, id),
|
||||||
FOREIGN KEY (room, end) REFERENCES euph_msgs (room, id),
|
FOREIGN KEY (room, end) REFERENCES euph_msgs (room, id),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue