mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 18:35:08 -04:00
Add a unique constraint on the room hosts table
This commit is contained in:
parent
a9a5329a11
commit
9d86c8c7a6
1 changed files with 2 additions and 1 deletions
|
@ -98,5 +98,6 @@ CREATE TABLE IF NOT EXISTS rooms(
|
|||
|
||||
CREATE TABLE IF NOT EXISTS room_hosts(
|
||||
room_id TEXT NOT NULL,
|
||||
host TEXT NOT NULL
|
||||
host TEXT NOT NULL,
|
||||
CONSTRAINT room_hosts_uniq UNIQUE (room_id, host) ON CONFLICT IGNORE
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue