Tweak query

This commit is contained in:
Neil Alexander 2022-10-11 14:14:22 +01:00
parent 4445dd48c9
commit 9bae393776
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -42,7 +42,7 @@ const insertRelationSQL = "" +
"INSERT INTO syncapi_relations (" +
" room_id, event_id, child_event_id, rel_type" +
") VALUES ($1, $2, $3, $4) " +
" ON CONFLICT syncapi_relations_unique DO UPDATE SET event_id=EXCLUDED.event_id" +
" ON CONFLICT ON CONSTRAINT syncapi_relations_unique DO UPDATE SET event_id=EXCLUDED.event_id" +
" RETURNING id"
const deleteRelationSQL = "" +