diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-13 17:43:34 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-13 18:03:41 +0100 |
commit | beaf4384d906f7fb41d80619d0a46a3f593795db (patch) | |
tree | 45ab31db1872d82b2fb83eaec197dec1cf5ecab2 /synapse/storage | |
parent | Initial stab at refactoring the SQL tables, including rejigging some of the s... (diff) | |
download | synapse-beaf4384d906f7fb41d80619d0a46a3f593795db.tar.xz |
Make feedback table also store sender.
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/feedback.py | 1 | ||||
-rw-r--r-- | synapse/storage/schema/im.sql | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/feedback.py b/synapse/storage/feedback.py index fc93f92e1d..b9e792c120 100644 --- a/synapse/storage/feedback.py +++ b/synapse/storage/feedback.py @@ -28,6 +28,7 @@ class FeedbackStore(SQLBaseStore): "feedback_type": event.feedback_type, "room_id": event.room_id, "target_event_id": event.target_event, + "sender": event.user_id, }) @defer.inlineCallback diff --git a/synapse/storage/schema/im.sql b/synapse/storage/schema/im.sql index ad9770244d..37b7c6c74f 100644 --- a/synapse/storage/schema/im.sql +++ b/synapse/storage/schema/im.sql @@ -47,7 +47,8 @@ CREATE TABLE IF NOT EXISTS room_memberships( CREATE TABLE IF NOT EXISTS feedback( event_id TEXT NOT NULL, feedback_type TEXT, - target_event_id TEXT,sudo + target_event_id TEXT, + sender TEXT, room_id TEXT ); |