summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2022-06-14 09:56:47 -0400
committerPatrick Cloke <patrickc@matrix.org>2022-08-05 08:18:08 -0400
commit2c7a5681b44fe70feb3baf5ed8364031f0410db7 (patch)
tree6e12702672688a04eabbb175466f16142330fe2e /synapse/storage/schema
parentMark token-authenticaticated-registration API as not-experimental (#11897) (diff)
downloadsynapse-2c7a5681b44fe70feb3baf5ed8364031f0410db7.tar.xz
Extract the thread ID when processing push rules.
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/main/delta/72/03thread_notifications.sql27
1 files changed, 27 insertions, 0 deletions
diff --git a/synapse/storage/schema/main/delta/72/03thread_notifications.sql b/synapse/storage/schema/main/delta/72/03thread_notifications.sql
new file mode 100644
index 0000000000..27eb52e347
--- /dev/null
+++ b/synapse/storage/schema/main/delta/72/03thread_notifications.sql
@@ -0,0 +1,27 @@
+/* Copyright 2022 The Matrix.org Foundation C.I.C
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+ALTER TABLE event_push_actions_staging
+  ADD COLUMN thread_id TEXT NOT NULL DEFAULT '';
+
+ALTER TABLE event_push_actions
+  ADD COLUMN thread_id TEXT NOT NULL DEFAULT '';
+
+ALTER TABLE event_push_summary
+  ADD COLUMN thread_id TEXT NOT NULL DEFAULT '';
+
+-- Update the unique index for `event_push_summary`
+INSERT INTO background_updates (ordering, update_name, progress_json) VALUES
+  (7003, 'event_push_summary_unique_index2', '{}');