mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Ensure we bump the change ID on sqlite
This commit is contained in:
parent
5dc360481a
commit
8096217d9e
2 changed files with 7 additions and 3 deletions
|
@ -40,7 +40,8 @@ const upsertKeyChangeSQL = "" +
|
|||
"INSERT INTO keyserver_key_changes (user_id)" +
|
||||
" VALUES ($1)" +
|
||||
" ON CONFLICT" +
|
||||
" DO UPDATE SET user_id = $1" +
|
||||
// this only works because we rely on a single writer
|
||||
" DO UPDATE SET change_id = change_id + 1" +
|
||||
" RETURNING change_id"
|
||||
|
||||
// select the highest offset for each user in the range. The grouping by user gives distinct entries and then we just
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue