synapse/synapse/storage/schema/main/delta
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
..
12
13
14
15
16
17
18
19
20 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
21
22
24
25 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
26
27 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
28
29
30 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
31 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
32
33 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
34 Update code to refer to "workers". (#15606) 2023-05-16 15:56:38 -04:00
35
36
37 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
38
39
40 Speed up get_unread_event_push_actions_by_room (#13005) 2022-06-15 15:17:14 +00:00
41
42 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
43
44
45
46
47
48 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
49
50 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
51
52
53
54
55
56 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
57 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
58 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
59 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
60
61 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
62
63
64
65 Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
67 Drop unused table public_room_list_stream. (#11795) 2022-01-21 09:19:56 +00:00
68 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
69 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
70 Rename delta to apply in the proper schema version. (#13050) 2022-06-14 14:34:04 +00:00
71 Speed up get_unread_event_push_actions_by_room (#13005) 2022-06-15 15:17:14 +00:00
72 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
73 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
74 Add type hints to schema deltas (#15497) 2023-04-27 12:44:53 +00:00
76 Revert "Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15437)" (#15580) 2023-05-12 11:38:16 +01:00
77 Set thread_id column to non-null for event_push_{actions,actions_staging,summary} (#15597) 2023-05-26 13:16:08 -04:00