mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 09:13:09 -06:00
Update joined_hosts_table.go
This commit is contained in:
parent
ed39554449
commit
636f0b631c
|
|
@ -47,8 +47,8 @@ CREATE INDEX IF NOT EXISTS federatonsender_joined_hosts_room_id_idx
|
||||||
`
|
`
|
||||||
|
|
||||||
const insertJoinedHostsSQL = "" +
|
const insertJoinedHostsSQL = "" +
|
||||||
"INSERT INTO federationsender_joined_hosts (room_id, event_id, server_name)" +
|
"INSERT OR IGNORE INTO federationsender_joined_hosts (room_id, event_id, server_name)" +
|
||||||
" VALUES ($1, $2, $3) ON CONFLICT IGNORE"
|
" VALUES ($1, $2, $3)"
|
||||||
|
|
||||||
const deleteJoinedHostsSQL = "" +
|
const deleteJoinedHostsSQL = "" +
|
||||||
"DELETE FROM federationsender_joined_hosts WHERE event_id = $1"
|
"DELETE FROM federationsender_joined_hosts WHERE event_id = $1"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue