Don't panic if duplicate event_id in syncapi_output_room_events_topology

This commit is contained in:
Neil Alexander 2021-01-22 12:53:48 +00:00
parent 58f78e08af
commit 316bd20da4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -45,6 +45,7 @@ const insertEventInTopologySQL = "" +
"INSERT INTO syncapi_output_room_events_topology (event_id, topological_position, room_id, stream_position)" + "INSERT INTO syncapi_output_room_events_topology (event_id, topological_position, room_id, stream_position)" +
" VALUES ($1, $2, $3, $4)" + " VALUES ($1, $2, $3, $4)" +
" ON CONFLICT (topological_position, stream_position, room_id) DO UPDATE SET event_id = $1" + " ON CONFLICT (topological_position, stream_position, room_id) DO UPDATE SET event_id = $1" +
" ON CONFLICT (event_id) DO NOTHING"
" RETURNING topological_position" " RETURNING topological_position"
const selectEventIDsInRangeASCSQL = "" + const selectEventIDsInRangeASCSQL = "" +