Skip to content

Commit

Permalink
Fix current_state bg update to work on old SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jul 29, 2019
1 parent fa87004 commit 45df38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,10 @@ def _background_current_state_membership_txn(txn, last_processed_room):
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 = ?
"""
Expand Down

0 comments on commit 45df38e

Please sign in to comment.