Don't send old events as federation

This commit is contained in:
Erik Johnston 2016-11-24 12:29:02 +00:00
parent f36ea03741
commit 46ca345b06

View file

@ -19,4 +19,4 @@
); );
INSERT INTO federation_stream_position (type, stream_id) VALUES ('federation', -1); 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;