summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-13 17:43:34 +0100
committerErik Johnston <erik@matrix.org>2014-08-13 18:03:41 +0100
commitbeaf4384d906f7fb41d80619d0a46a3f593795db (patch)
tree45ab31db1872d82b2fb83eaec197dec1cf5ecab2 /synapse/storage
parentInitial stab at refactoring the SQL tables, including rejigging some of the s... (diff)
downloadsynapse-beaf4384d906f7fb41d80619d0a46a3f593795db.tar.xz
Make feedback table also store sender.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/feedback.py1
-rw-r--r--synapse/storage/schema/im.sql3
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
 );