summary refs log tree commit diff
path: root/synapse/storage/schema/delta
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-30 14:53:01 +0100
committerErik Johnston <erik@matrix.org>2017-05-30 14:53:01 +0100
commit04095f75810176d7ba2b5ef70b40dd1a3281850d (patch)
treef7c8cf32dcf88d0b006ae758155014c22a46a798 /synapse/storage/schema/delta
parentAdd current_state_delta_stream table (diff)
downloadsynapse-04095f75810176d7ba2b5ef70b40dd1a3281850d.tar.xz
Add clobbered event_id
Diffstat (limited to 'synapse/storage/schema/delta')
-rw-r--r--synapse/storage/schema/delta/42/current_state_delta.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/42/current_state_delta.sql b/synapse/storage/schema/delta/42/current_state_delta.sql
index 1a55aa912b..bf124f3def 100644
--- a/synapse/storage/schema/delta/42/current_state_delta.sql
+++ b/synapse/storage/schema/delta/42/current_state_delta.sql
@@ -19,7 +19,8 @@ CREATE TABLE current_state_delta_stream (
     room_id TEXT NOT NULL,
     type TEXT NOT NULL,
     state_key TEXT NOT NULL,
-    event_id TEXT  -- Is null if the key was removed
+    event_id TEXT,  -- Is null if the key was removed
+    prev_event_id TEXT
 );
 
 CREATE INDEX current_state_delta_stream_idx ON current_state_delta_stream(stream_id);