synapse-product/synapse/storage/schema
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
..
common Support for database schema version ranges (#9933) 2021-06-11 14:45:53 +01:00
main Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
state Remove incorrect migration file from state logical DB (#13788) 2022-09-14 14:16:12 +01:00
__init__.py Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
README.md update links to schema doc (#10620) 2021-08-17 10:45:35 +00:00

Synapse Database Schemas

This directory contains the schema files used to build Synapse databases. For more information, see https://matrix-org.github.io/synapse/develop/development/database_schema.html.