mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Add v4 deltas to current sql.
This commit is contained in:
parent
efea61dc50
commit
4354590a69
@ -57,6 +57,7 @@ SCHEMAS = [
|
|||||||
"presence",
|
"presence",
|
||||||
"im",
|
"im",
|
||||||
"room_aliases",
|
"room_aliases",
|
||||||
|
"deletions",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
7
synapse/storage/schema/deletions.sql
Normal file
7
synapse/storage/schema/deletions.sql
Normal 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);
|
@ -150,7 +150,8 @@ CREATE TABLE IF NOT EXISTS room_ops_levels(
|
|||||||
event_id TEXT NOT NULL,
|
event_id TEXT NOT NULL,
|
||||||
room_id TEXT NOT NULL,
|
room_id TEXT NOT NULL,
|
||||||
ban_level INTEGER,
|
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);
|
CREATE INDEX IF NOT EXISTS room_ops_levels_event_id ON room_ops_levels(event_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user