mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Fix current_state bg update to work on old SQLite
This commit is contained in:
parent
fa87004bc1
commit
45df38e61b
@ -870,10 +870,10 @@ class RoomMemberStore(RoomMemberWorkerStore):
|
|||||||
next_room, = row
|
next_room, = row
|
||||||
|
|
||||||
sql = """
|
sql = """
|
||||||
UPDATE current_state_events AS c
|
UPDATE current_state_events
|
||||||
SET membership = (
|
SET membership = (
|
||||||
SELECT membership FROM room_memberships
|
SELECT membership FROM room_memberships
|
||||||
WHERE event_id = c.event_id
|
WHERE event_id = current_state_events.event_id
|
||||||
)
|
)
|
||||||
WHERE room_id = ?
|
WHERE room_id = ?
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user