MatrixSynapse/synapse/storage/databases/main
Patrick Cloke 2ad91ec628
Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597)
Updates the database schema to require a thread_id (by adding a
constraint that the column is non-null) for event_push_actions,
event_push_actions_staging, and event_push_actions_summary.

For PostgreSQL we add the constraint as NOT VALID, then
VALIDATE the constraint a background job to avoid locking
the table during an upgrade.

Each table is updated as a separate schema delta to avoid
deadlocks between them.

For SQLite we simply rebuild the table & copy the data.
2023-05-26 13:16:08 -04:00
..
__init__.py
account_data.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
appservice.py
cache.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
censor_events.py
client_ips.py
deviceinbox.py
devices.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py Process previously failed backfill events in the background (#15585) 2023-05-24 23:22:24 -05:00
event_push_actions.py Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00
events.py
events_bg_updates.py
events_forward_extremities.py
events_worker.py Handle missing previous read marker event. (#15464) 2023-05-18 14:37:31 -04:00
experimental_features.py
filtering.py Add not null constraint to column `full_user_id` of tables `profiles` and `user_filters` (#15537) 2023-05-16 10:57:39 -07:00
keys.py
lock.py
media_repository.py
metrics.py Remove old R30 because R30v2 supercedes it (#10428) 2023-05-19 11:13:44 -05:00
monthly_active_users.py
openid.py
presence.py
profile.py Add not null constraint to column `full_user_id` of tables `profiles` and `user_filters` (#15537) 2023-05-16 10:57:39 -07:00
purge_events.py
push_rule.py
pusher.py
receipts.py Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
registration.py
rejections.py
relations.py
room.py
room_batch.py
roommember.py Improve type hints for cached decorator. (#15658) 2023-05-24 12:59:31 +00:00
search.py
session.py
signatures.py
state.py
state_deltas.py
stats.py
stream.py
tags.py
transactions.py
ui_auth.py
user_directory.py Speed up user directory rebuild for users some more... (#15665) 2023-05-24 14:13:28 +00:00
user_erasure_store.py