summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-27 15:23:48 +0000
committerErik Johnston <erik@matrix.org>2017-01-27 15:23:48 +0000
commitd1e1fd62108c9b285d7c57d357311c6d5df2190e (patch)
treedf9bdd246b4e8880377a0d2fa5bd09594cff9ef1 /synapse/storage/schema
parentHook device list updates to replication (diff)
downloadsynapse-d1e1fd62108c9b285d7c57d357311c6d5df2190e.tar.xz
Add ts column to device_lists_outbound_pokes
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/40/device_list_streams.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/40/device_list_streams.sql b/synapse/storage/schema/delta/40/device_list_streams.sql
index 8348c143c3..54841b3843 100644
--- a/synapse/storage/schema/delta/40/device_list_streams.sql
+++ b/synapse/storage/schema/delta/40/device_list_streams.sql
@@ -51,7 +51,8 @@ CREATE TABLE device_lists_outbound_pokes (
     stream_id BIGINT NOT NULL,
     user_id TEXT NOT NULL,
     device_id TEXT NOT NULL,
-    sent BOOLEAN NOT NULL
+    sent BOOLEAN NOT NULL,
+    ts BIGINT NOT NULL  -- So that in future we can clear out pokes to dead servers
 );
 
 CREATE INDEX device_lists_outbound_pokes_id ON device_lists_outbound_pokes(destination, stream_id);