Skip to content
Snippets Groups Projects
Unverified Commit d90087cf authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Remove from the event_relations table when purging historical events. (#7978)

parent 3a00bd13
No related branches found
No related tags found
No related merge requests found
Fix a long standing bug: 'Duplicate key value violates unique constraint "event_relations_id"' when message retention is configured.
...@@ -62,6 +62,7 @@ class PurgeEventsStore(StateGroupWorkerStore, SQLBaseStore): ...@@ -62,6 +62,7 @@ class PurgeEventsStore(StateGroupWorkerStore, SQLBaseStore):
# event_json # event_json
# event_push_actions # event_push_actions
# event_reference_hashes # event_reference_hashes
# event_relations
# event_search # event_search
# event_to_state_groups # event_to_state_groups
# events # events
...@@ -209,6 +210,7 @@ class PurgeEventsStore(StateGroupWorkerStore, SQLBaseStore): ...@@ -209,6 +210,7 @@ class PurgeEventsStore(StateGroupWorkerStore, SQLBaseStore):
"event_edges", "event_edges",
"event_forward_extremities", "event_forward_extremities",
"event_reference_hashes", "event_reference_hashes",
"event_relations",
"event_search", "event_search",
"rejections", "rejections",
): ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment