Make feedback table also store sender.
This commit is contained in:
parent
336987bb8d
commit
beaf4384d9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue