MatrixSynapse/synapse/storage/schema/main/delta/72
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
..
01add_room_type_to_state_stats.sql
01event_push_summary_receipt.sql
02event_push_actions_index.sql
03bg_populate_events_columns.py
03drop_event_reference_hashes.sql
03remove_groups.sql
04drop_column_application_services_state_last_txn.sql.postgres Drop unused column `application_services_state.last_txn` (#13627) 2022-08-30 10:29:16 -07:00
04drop_column_application_services_state_last_txn.sql.sqlite Drop unused column `application_services_state.last_txn` (#13627) 2022-08-30 10:29:16 -07:00
05receipts_event_stream_ordering.sql Add receipts event stream ordering (#13703) 2022-09-13 08:16:37 +01:00
05remove_unstable_private_read_receipts.sql Add a schema delta to drop unstable private read receipts. (#13692) 2022-09-01 14:57:47 -04:00
06add_consent_ts_to_users.sql Add timestamp to user's consent (#13741) 2022-09-08 15:41:48 +00:00
06thread_notifications.sql Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
07force_update_current_state_events_membership.py Remove check current state membership up to date (#13745) 2022-09-12 12:58:33 +01:00
07thread_receipts.sql.postgres Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
07thread_receipts.sql.sqlite Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
08begin_cache_invalidation_seq_at_2.sql.postgres Make sequence `cache_invalidation_stream_seq` begin at `2` (#13766) 2022-09-13 16:14:28 +02:00
08thread_receipts.sql Update event push action and receipt tables to support threads. (#13753) 2022-09-14 17:11:16 +00:00
09partial_indices.sql.sqlite Use partial indices on SQLIte. (#13802) 2022-09-14 12:01:42 -04:00