From 8568704d2aaf9257641e0995a73669a40681b1c5 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 16 Dec 2019 14:23:33 +0000 Subject: [PATCH] Add changelog --- changelog.d/6555.bugfix | 1 + .../data_stores/main/schema/full_schemas/54/stream_positions.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/6555.bugfix diff --git a/changelog.d/6555.bugfix b/changelog.d/6555.bugfix new file mode 100644 index 000000000000..86a5a56cf66a --- /dev/null +++ b/changelog.d/6555.bugfix @@ -0,0 +1 @@ +Fix missing row in device_max_stream_id that could cause unable to decrypt errors after server restart. \ No newline at end of file diff --git a/synapse/storage/data_stores/main/schema/full_schemas/54/stream_positions.sql b/synapse/storage/data_stores/main/schema/full_schemas/54/stream_positions.sql index c265fd20e250..91d21b2921fe 100644 --- a/synapse/storage/data_stores/main/schema/full_schemas/54/stream_positions.sql +++ b/synapse/storage/data_stores/main/schema/full_schemas/54/stream_positions.sql @@ -5,3 +5,4 @@ INSERT INTO federation_stream_position (type, stream_id) SELECT 'events', coales INSERT INTO user_directory_stream_pos (stream_id) VALUES (0); INSERT INTO stats_stream_pos (stream_id) VALUES (0); INSERT INTO event_push_summary_stream_ordering (stream_ordering) VALUES (0); +-- device_max_stream_id is handled separately in 56/device_stream_id_insert.sql \ No newline at end of file