0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 18:23:58 +01:00

Make feedback table also store sender.

This commit is contained in:
Erik Johnston 2014-08-13 17:43:34 +01:00
parent 336987bb8d
commit beaf4384d9
2 changed files with 3 additions and 1 deletions

View file

@ -28,6 +28,7 @@ class FeedbackStore(SQLBaseStore):
"feedback_type": event.feedback_type, "feedback_type": event.feedback_type,
"room_id": event.room_id, "room_id": event.room_id,
"target_event_id": event.target_event, "target_event_id": event.target_event,
"sender": event.user_id,
}) })
@defer.inlineCallback @defer.inlineCallback

View file

@ -47,7 +47,8 @@ CREATE TABLE IF NOT EXISTS room_memberships(
CREATE TABLE IF NOT EXISTS feedback( CREATE TABLE IF NOT EXISTS feedback(
event_id TEXT NOT NULL, event_id TEXT NOT NULL,
feedback_type TEXT, feedback_type TEXT,
target_event_id TEXT,sudo target_event_id TEXT,
sender TEXT,
room_id TEXT room_id TEXT
); );