dendrite/cmd
kegsay 2c581377a5
Remodel how device list change IDs are created (#2098)
* Remodel how device list change IDs are created

Previously we made them using the offset Kafka supplied.
We don't run Kafka anymore, so now we make the SQL table assign
the change ID via an AUTOINCREMENTing ID. Redesign the
`keyserver_key_changes` table to have `UNIQUE(user_id)` so we
don't accumulate key changes forevermore, we now have at most 1
row per user which contains the highest change ID.

This needs a SQL migration.

* Ensure we bump the change ID on sqlite

* Actually read the DeviceChangeID not the Offset in synapi

* Add SQL migrations

* Prepare after migration; fixup dendrite-upgrade-test logging

* Use higher version numbers; fix sqlite query to increment better

* Default 0 on postgres

* fixup postgres migration on fresh dendrite instances
2022-01-21 09:56:06 +00:00
..
client-api-proxy
create-account Fix building on Windows (#2008) 2021-11-02 16:50:59 +00:00
dendrite-demo-libp2p Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
dendrite-demo-pinecone Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
dendrite-demo-yggdrasil Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
dendrite-monolith-server NATS JetStream tweaks (#2086) 2022-01-07 17:31:57 +00:00
dendrite-polylith-multi Use non http API as fsAPI to avoid network requests (#2075) 2021-12-20 10:27:58 +00:00
dendrite-upgrade-tests Remodel how device list change IDs are created (#2098) 2022-01-21 09:56:06 +00:00
dendritejs Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
dendritejs-pinecone Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
federation-api-proxy
furl Increase gocyclo complexity to 25 (and remove all but 2 golint directives related to it) (#1783) 2021-03-03 14:35:57 +00:00
generate-config Add NATS JetStream support (#1866) 2022-01-05 17:44:49 +00:00
generate-keys API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
goose Merge federationapi, federationsender, signingkeyserver components (#2055) 2021-11-24 10:45:23 +00:00
resolve-state Increase gocyclo complexity to 25 (and remove all but 2 golint directives related to it) (#1783) 2021-03-03 14:35:57 +00:00