mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Don't panic if duplicate event_id in syncapi_output_room_events_topology
This commit is contained in:
parent
58f78e08af
commit
316bd20da4
|
|
@ -45,6 +45,7 @@ const insertEventInTopologySQL = "" +
|
|||
"INSERT INTO syncapi_output_room_events_topology (event_id, topological_position, room_id, stream_position)" +
|
||||
" VALUES ($1, $2, $3, $4)" +
|
||||
" ON CONFLICT (topological_position, stream_position, room_id) DO UPDATE SET event_id = $1" +
|
||||
" ON CONFLICT (event_id) DO NOTHING"
|
||||
" RETURNING topological_position"
|
||||
|
||||
const selectEventIDsInRangeASCSQL = "" +
|
||||
|
|
|
|||
Loading…
Reference in a new issue