Fix build

This commit is contained in:
Kegan Dougal 2020-06-30 15:04:34 +01:00
parent b53aac0084
commit 6bc65983b0

View file

@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS currentstate_current_room_state (
-- for event deletion -- for event deletion
CREATE UNIQUE INDEX IF NOT EXISTS currentstate_event_id_idx ON currentstate_current_room_state(event_id, room_id, type, sender); 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 -- 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'; WHERE type='m.room.member' AND content_value IS NOT NULL AND content_value != 'leave';
` `