mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-24 19:25:57 +00:00
Match against event_id, rather than room_id
This commit is contained in:
parent
dc692556d6
commit
8009d84364
@ -16,7 +16,7 @@
|
|||||||
-- Re-add some entries to stream_ordering_to_exterm that were incorrectly deleted
|
-- 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)
|
INSERT INTO stream_ordering_to_exterm (stream_ordering, room_id, event_id)
|
||||||
SELECT
|
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,
|
room_id,
|
||||||
event_id
|
event_id
|
||||||
FROM event_forward_extremities AS e
|
FROM event_forward_extremities AS e
|
||||||
|
Loading…
Reference in New Issue
Block a user