mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 01:43:09 -06:00
Review comments
This commit is contained in:
parent
32dd89c969
commit
e0e5418e79
|
|
@ -49,10 +49,10 @@ CREATE INDEX IF NOT EXISTS membership_idx ON current_room_state(type, state_key,
|
||||||
`
|
`
|
||||||
|
|
||||||
const upsertRoomStateSQL = "" +
|
const upsertRoomStateSQL = "" +
|
||||||
"INSERT INTO current_room_state (room_id, event_id, type, state_key, event_json, membership, added_at_id)" +
|
"INSERT INTO current_room_state (room_id, event_id, type, state_key, event_json, membership, added_at)" +
|
||||||
" VALUES ($1, $2, $3, $4, $5, $6, $7)" +
|
" VALUES ($1, $2, $3, $4, $5, $6, $7)" +
|
||||||
" ON CONFLICT ON CONSTRAINT room_state_unique" +
|
" ON CONFLICT ON CONSTRAINT room_state_unique" +
|
||||||
" DO UPDATE SET event_id = $2, event_json = $5, membership = $6, added_at_id = $7"
|
" DO UPDATE SET event_id = $2, event_json = $5, membership = $6, added_at = $7"
|
||||||
|
|
||||||
const deleteRoomStateByEventIDSQL = "" +
|
const deleteRoomStateByEventIDSQL = "" +
|
||||||
"DELETE FROM current_room_state WHERE event_id = $1"
|
"DELETE FROM current_room_state WHERE event_id = $1"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue