forked-synapse/synapse/storage/schema/main/delta/76
Patrick Cloke a7b3e9ce65
Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437)
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.

For SQLite we simply rebuild the table & copy the data.
2023-05-03 07:49:03 -04:00
..
01_add_profiles_full_user_id_column.sql Add column full_user_id to tables profiles and user_filters. (#15458) 2023-04-26 16:03:26 -07:00
02_add_user_filters_full_user_id_column.sql Add column full_user_id to tables profiles and user_filters. (#15458) 2023-04-26 16:03:26 -07:00
03_per_user_experimental_features.sql Add an admin API endpoint to support per-user feature flags (#15344) 2023-04-28 11:33:45 -07:00
04_add_room_forgetter.sql Add config option to forget rooms automatically when users leave them (#15224) 2023-05-03 12:27:33 +01:00
04thread_notifications_backfill.sql Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437) 2023-05-03 07:49:03 -04:00
05thread_notifications_not_null.sql.postgres Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437) 2023-05-03 07:49:03 -04:00
05thread_notifications_not_null.sql.sqlite Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437) 2023-05-03 07:49:03 -04:00