summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-30 10:55:55 +0100
committerErik Johnston <erik@matrix.org>2019-05-30 10:55:55 +0100
commit640fcbb07f8dc7d89465734f009d8e0a458c2b17 (patch)
treed0e89333880af077de3ca657958d23e52a538fac /synapse/storage/schema
parentNewsfile (diff)
downloadsynapse-640fcbb07f8dc7d89465734f009d8e0a458c2b17.tar.xz
Fixup comments and logging
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/54/delete_forward_extremities.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/54/delete_forward_extremities.sql b/synapse/storage/schema/delta/54/delete_forward_extremities.sql
index 7056bd1d00..aa40f13da7 100644
--- a/synapse/storage/schema/delta/54/delete_forward_extremities.sql
+++ b/synapse/storage/schema/delta/54/delete_forward_extremities.sql
@@ -13,7 +13,10 @@
  * limitations under the License.
  */
 
+-- Start a background job to cleanup extremities that were incorrectly added
+-- by bug #5269.
 INSERT INTO background_updates (update_name, progress_json) VALUES
   ('delete_soft_failed_extremities', '{}');
 
+DROP TABLE IF EXISTS _extremities_to_check;  -- To make this delta schema file idempotent.
 CREATE TABLE _extremities_to_check AS SELECT event_id FROM event_forward_extremities;