forked-synapse/synapse/storage
Patrick Cloke 666ae87729
Update event push action and receipt tables to support threads. (#13753)
Adds a `thread_id` column to the `event_push_actions`, `event_push_actions_staging`,
and `event_push_summary` tables. This will notifications to be segmented by the thread
in a future pull request. The `thread_id` column stores the root event ID or the special
value `"main"`.

The `thread_id` column for `event_push_actions` and `event_push_summary` is
backfilled with `"main"` for all existing rows. New entries into `event_push_actions`
and `event_push_actions_staging` will get the proper thread ID.

`receipts_linearized` and `receipts_graph` also gain a `thread_id` column, which is similar,
except `NULL` is a special value meaning the receipt is "unthreaded".

See MSC3771 and MSC3773 for where this data will be useful.
2022-09-14 17:11:16 +00:00
..
controllers Fix bug in device list caching when remote users leave rooms (#13749) 2022-09-14 10:42:57 +01:00
databases Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
engines Require SQLite >= 3.27.0 (#13760) 2022-09-09 11:14:10 +01:00
schema Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
util Cancel the processing of key query requests when they time out. (#13680) 2022-09-07 12:03:32 +01:00
__init__.py Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
_base.py Refactor presence so we can prune user in room caches (#13313) 2022-07-25 09:21:06 +00:00
background_updates.py Use partial indices on SQLIte. (#13802) 2022-09-14 12:01:42 -04:00
database.py Require SQLite >= 3.27.0 (#13760) 2022-09-09 11:14:10 +01:00
keys.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
prepare_database.py Use dummy fallback engines if imports fail (#12979) 2022-06-07 17:33:55 +01:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py Do not include rooms with an unknown room version in a sync response. (#10644) 2021-08-19 11:12:55 -04:00
state.py Update the rejected state of events during resync (#13459) 2022-08-11 10:42:24 +00:00
types.py Tidy up and type-hint the database engine modules (#12734) 2022-05-17 00:34:38 +01:00