Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

wait for current_state_events_membership before delete_old_current_state_events #6924

Merged
merged 1 commit into from
Feb 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/6924.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug introduced in Synapse 1.10.0 which would cause room state to be cleared in the database if Synapse was upgraded direct from 1.2.1 or earlier to 1.10.0.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@

-- Add background update to go and delete current state events for rooms the
-- server is no longer in.
INSERT into background_updates (update_name, progress_json)
VALUES ('delete_old_current_state_events', '{}');
--
-- this relies on the 'membership' column of current_state_events, so make sure
-- that's populated first!
INSERT into background_updates (update_name, progress_json, depends_on)
VALUES ('delete_old_current_state_events', '{}', 'current_state_events_membership');