MatrixSynapse/synapse/storage
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
..
controllers Fix `@trace` not wrapping some state methods that return coroutines correctly (#15647) 2023-05-23 12:26:25 -05:00
databases Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00
engines Speed up SQLite unit test CI (#15334) 2023-03-30 16:21:12 +01:00
schema Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00
util
__init__.py
_base.py
background_updates.py Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00
database.py Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
keys.py
prepare_database.py Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
push_rule.py
roommember.py
types.py More precise type for LoggingTransaction.execute (#15432) 2023-04-14 18:04:49 +00:00