Fix current_state bg update to work on old SQLite

pull/5770/head
Erik Johnston 2019-07-25 17:15:54 +01:00
parent fa87004bc1
commit 45df38e61b
1 changed files with 2 additions and 2 deletions

View File

@ -870,10 +870,10 @@ class RoomMemberStore(RoomMemberWorkerStore):
next_room, = row
sql = """
UPDATE current_state_events AS c
UPDATE current_state_events
SET membership = (
SELECT membership FROM room_memberships
WHERE event_id = c.event_id
WHERE event_id = current_state_events.event_id
)
WHERE room_id = ?
"""