Store room tag content and return the content in the m.tag event

This commit is contained in:
Mark Haines 2015-11-02 15:11:31 +00:00
parent 0e36756383
commit ddd8566f41
4 changed files with 41 additions and 22 deletions

View file

@ -18,6 +18,7 @@ CREATE TABLE IF NOT EXISTS room_tags(
user_id TEXT NOT NULL,
room_id TEXT NOT NULL,
tag TEXT NOT NULL, -- The name of the tag.
content TEXT NOT NULL, -- The JSON content of the tag.
CONSTRAINT room_tag_uniqueness UNIQUE (user_id, room_id, tag)
);