diff options
author | Erik Johnston <erik@matrix.org> | 2019-07-25 17:15:54 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-07-29 13:04:10 +0100 |
commit | 45df38e61bb876208d032cf3480230cecff6cdd8 (patch) | |
tree | 530b49e9828b3039c343c851dce011b588f06e2a /synapse | |
parent | Merge pull request #5780 from matrix-org/baboliver/loopingcall-args (diff) | |
download | synapse-45df38e61bb876208d032cf3480230cecff6cdd8.tar.xz |
Fix current_state bg update to work on old SQLite
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/roommember.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index cb88e49b51..a1b9fd8199 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -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 = ? """ |