Add unique index to group_rooms table

This commit is contained in:
Erik Johnston 2017-09-26 15:39:13 +01:00
parent 0d7c7fd907
commit a8e2a3df32
2 changed files with 1 additions and 3 deletions

View file

@ -52,7 +52,7 @@ CREATE TABLE group_rooms (
is_public BOOLEAN NOT NULL -- whether the room can be seen by everyone
);
CREATE INDEX groups_rooms_g_idx ON group_rooms(group_id, room_id);
CREATE UNIQUE INDEX groups_rooms_g_idx ON group_rooms(group_id, room_id);
CREATE INDEX groups_rooms_r_idx ON group_rooms(room_id);