Skip to content
Snippets Groups Projects
Commit 8009d843 authored by Erik Johnston's avatar Erik Johnston
Browse files

Match against event_id, rather than room_id

parent dc692556
No related merge requests found
......@@ -16,7 +16,7 @@
-- Re-add some entries to stream_ordering_to_exterm that were incorrectly deleted
INSERT INTO stream_ordering_to_exterm (stream_ordering, room_id, event_id)
SELECT
(SELECT max(stream_ordering) FROM events where room_id = e.room_id) AS stream_ordering,
(SELECT stream_ordering FROM events where event_id = e.event_id) AS stream_ordering,
room_id,
event_id
FROM event_forward_extremities AS e
......
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