summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-23 17:36:17 +0100
committerErik Johnston <erik@matrix.org>2014-09-23 17:36:24 +0100
commitbc250a6afa68b7584f3b7b3aacb919df406da75a (patch)
treedb6bfd1b559eadcb70e742f5df0b4531d6ed17ff /synapse/storage/schema
parentAdd prune_event method (diff)
downloadsynapse-bc250a6afa68b7584f3b7b3aacb919df406da75a.tar.xz
SYN-12: Implement auth for deletion by adding a 'delete_level' on the ops levels event
SYN-12 # comment Auth has been added.
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/v4.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/v4.sql b/synapse/storage/schema/delta/v4.sql
index 2e2635317a..fc8bb5ad84 100644
--- a/synapse/storage/schema/delta/v4.sql
+++ b/synapse/storage/schema/delta/v4.sql
@@ -5,3 +5,7 @@ CREATE TABLE IF NOT EXISTS deletions (
 
 CREATE INDEX IF NOT EXISTS deletions_event_id ON deletions (event_id);
 CREATE INDEX IF NOT EXISTS deletions_deletes ON deletions (deletes);
+
+ALTER TABLE room_ops_levels ADD COLUMN delete_level INTEGER;
+
+PRAGMA user_version = 4;