Use unique indices

pull/2252/head
Erik Johnston 2017-05-31 17:29:12 +01:00
parent cc7609aa9f
commit 5dd1b2c525
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ CREATE TABLE user_directory (
);
CREATE INDEX user_directory_room_idx ON user_directory(room_id);
CREATE INDEX user_directory_user_idx ON user_directory(user_id);
CREATE UNIQUE INDEX user_directory_user_idx ON user_directory(user_id);
"""
@ -48,7 +48,7 @@ CREATE TABLE user_directory_search (
);
CREATE INDEX user_directory_search_fts_idx ON user_directory_search USING gin(vector);
CREATE INDEX user_directory_search_user_idx ON user_directory_search(user_id);
CREATE UNIQUE INDEX user_directory_search_user_idx ON user_directory_search(user_id);
"""