From 6bc65983b07ef9b45ee0d684a2d8dd8495de265f Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 30 Jun 2020 15:04:34 +0100 Subject: [PATCH] Fix build --- currentstateserver/storage/postgres/current_room_state_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currentstateserver/storage/postgres/current_room_state_table.go b/currentstateserver/storage/postgres/current_room_state_table.go index 9a940f840..f423cc194 100644 --- a/currentstateserver/storage/postgres/current_room_state_table.go +++ b/currentstateserver/storage/postgres/current_room_state_table.go @@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS currentstate_current_room_state ( -- for event deletion CREATE UNIQUE INDEX IF NOT EXISTS currentstate_event_id_idx ON currentstate_current_room_state(event_id, room_id, type, sender); -- for querying membership states of users -CREATE INDEX IF NOT EXISTS currentstate_membership_idx ON currentstate_current_room_state(type, state_key, membership) +CREATE INDEX IF NOT EXISTS currentstate_membership_idx ON currentstate_current_room_state(type, state_key, content_value) WHERE type='m.room.member' AND content_value IS NOT NULL AND content_value != 'leave'; `