diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-23 15:28:32 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-23 15:28:32 +0100 |
commit | 78af6bbb981c41e5509c99454deb7205c31bf964 (patch) | |
tree | 50dcd73e748b2807e22752f59bb940dd420078cb /synapse/storage/schema/delta/v4.sql | |
parent | Add a deletions table (diff) | |
download | synapse-78af6bbb981c41e5509c99454deb7205c31bf964.tar.xz |
Add m.room.deletion. If an event is deleted it will be returned to clients 'pruned', i.e. all client specified keys will be removed.
Diffstat (limited to 'synapse/storage/schema/delta/v4.sql')
-rw-r--r-- | synapse/storage/schema/delta/v4.sql | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/schema/delta/v4.sql b/synapse/storage/schema/delta/v4.sql index 1652ef2921..2e2635317a 100644 --- a/synapse/storage/schema/delta/v4.sql +++ b/synapse/storage/schema/delta/v4.sql @@ -1,5 +1,7 @@ CREATE TABLE IF NOT EXISTS deletions ( event_id TEXT NOT NULL, - deletes TEXT NOT NULL, - CONSTRAINT ev_uniq UNIQUE (event_id) + deletes TEXT NOT NULL ); + +CREATE INDEX IF NOT EXISTS deletions_event_id ON deletions (event_id); +CREATE INDEX IF NOT EXISTS deletions_deletes ON deletions (deletes); |