anonymousland-synapse/synapse/storage/schema/main/delta/72
Patrick Cloke 666ae87729
Update event push action and receipt tables to support threads. ()
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 Implement MSC3827: Filtering of /publicRooms by room type () 2022-06-29 17:12:45 +00:00
01event_push_summary_receipt.sql Fix serialization errors when rotating notifications () 2022-06-28 13:13:44 +01:00
02event_push_actions_index.sql Add index to help delete old push actions () 2022-06-30 14:05:49 +00:00
03bg_populate_events_columns.py Bg update to populate new events table columns () 2022-07-15 12:47:26 +01:00
03drop_event_reference_hashes.sql Drop unused table event_reference_hashes () 2022-07-12 18:52:06 +00:00
03remove_groups.sql Drop unused tables from groups/communities. () 2022-07-13 09:55:14 -04:00
04drop_column_application_services_state_last_txn.sql.postgres Drop unused column application_services_state.last_txn () 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 () 2022-08-30 10:29:16 -07:00
05receipts_event_stream_ordering.sql Add receipts event stream ordering () 2022-09-13 08:16:37 +01:00
05remove_unstable_private_read_receipts.sql Add a schema delta to drop unstable private read receipts. () 2022-09-01 14:57:47 -04:00
06add_consent_ts_to_users.sql Add timestamp to user's consent () 2022-09-08 15:41:48 +00:00
06thread_notifications.sql Update event push action and receipt tables to support threads. () 2022-09-14 17:11:16 +00:00
07force_update_current_state_events_membership.py Remove check current state membership up to date () 2022-09-12 12:58:33 +01:00
07thread_receipts.sql.postgres Update event push action and receipt tables to support threads. () 2022-09-14 17:11:16 +00:00
07thread_receipts.sql.sqlite Update event push action and receipt tables to support threads. () 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 () 2022-09-13 16:14:28 +02:00
08thread_receipts.sql Update event push action and receipt tables to support threads. () 2022-09-14 17:11:16 +00:00
09partial_indices.sql.sqlite Use partial indices on SQLIte. () 2022-09-14 12:01:42 -04:00