summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/schema/delta/21/receipts.sql6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/21/receipts.sql b/synapse/storage/schema/delta/21/receipts.sql
index ccd64ec7f4..ac7738e371 100644
--- a/synapse/storage/schema/delta/21/receipts.sql
+++ b/synapse/storage/schema/delta/21/receipts.sql
@@ -33,6 +33,10 @@ CREATE TABLE IF NOT EXISTS receipts_linearized (
     event_id TEXT NOT NULL
 );
 
-CREATE INDEX receipts_linearized_room_tuple ON receipts_graph(
+CREATE INDEX receipts_linearized_room_tuple ON receipts_linearized(
   room_id, receipt_type, user_id
 );
+
+CREATE INDEX receipts_linearized_id ON receipts_linearized(
+  stream_id
+);