From 79c02cada0dc1b1ec0920789df4d633704531287 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 20 Nov 2024 17:12:17 +0000 Subject: [PATCH] Fix incorrect comment in new schema delta (#17936) Added in #17912, was a bad copy and paste. --- changelog.d/17936.misc | 1 + .../schema/main/delta/88/04_current_state_delta_index.sql | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/17936.misc diff --git a/changelog.d/17936.misc b/changelog.d/17936.misc new file mode 100644 index 0000000000..91d976fbd9 --- /dev/null +++ b/changelog.d/17936.misc @@ -0,0 +1 @@ +Fix incorrect comment in new schema delta. diff --git a/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql b/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql index ad54302a8f..0ee78df1a0 100644 --- a/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql +++ b/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql @@ -12,7 +12,7 @@ -- . --- Add an index on (user_id, device_id, algorithm, ts_added_ms) on e2e_one_time_keys_json, so that OTKs can --- efficiently be issued in the same order they were uploaded. +-- Add an index on `current_state_delta_stream(room_id, stream_id)` to allow +-- efficient per-room lookups. INSERT INTO background_updates (ordering, update_name, progress_json) VALUES (8804, 'current_state_delta_stream_room_index', '{}');