summary refs log tree commit diff
path: root/synapse/storage/schema/delta
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-24 12:29:02 +0000
committerErik Johnston <erik@matrix.org>2016-11-24 12:29:02 +0000
commit46ca345b06f02dcdef9aafb03525d01b4ce51f91 (patch)
treea3bffa154b2d7bbde4b79d1197d47ce4065eb41c /synapse/storage/schema/delta
parentBump changelog and version (diff)
downloadsynapse-46ca345b06f02dcdef9aafb03525d01b4ce51f91.tar.xz
Don't send old events as federation
Diffstat (limited to 'synapse/storage/schema/delta')
-rw-r--r--synapse/storage/schema/delta/39/federation_out_position.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/39/federation_out_position.sql b/synapse/storage/schema/delta/39/federation_out_position.sql
index edbd8e132f..5af814290b 100644
--- a/synapse/storage/schema/delta/39/federation_out_position.sql
+++ b/synapse/storage/schema/delta/39/federation_out_position.sql
@@ -19,4 +19,4 @@
  );
 
  INSERT INTO federation_stream_position (type, stream_id) VALUES ('federation', -1);
- INSERT INTO federation_stream_position (type, stream_id) VALUES ('events', -1);
+ INSERT INTO federation_stream_position (type, stream_id) SELECT 'events', coalesce(max(stream_ordering), -1) FROM events;