Add v4 deltas to current sql.

This commit is contained in:
Erik Johnston 2014-09-24 11:06:41 +01:00
parent efea61dc50
commit 4354590a69
3 changed files with 10 additions and 1 deletions

View File

@ -57,6 +57,7 @@ SCHEMAS = [
"presence",
"im",
"room_aliases",
"deletions",
]

View File

@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS deletions (
event_id TEXT NOT NULL,
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);

View File

@ -150,7 +150,8 @@ CREATE TABLE IF NOT EXISTS room_ops_levels(
event_id TEXT NOT NULL,
room_id TEXT NOT NULL,
ban_level INTEGER,
kick_level INTEGER
kick_level INTEGER,
delete_level INTEGER
);
CREATE INDEX IF NOT EXISTS room_ops_levels_event_id ON room_ops_levels(event_id);