Fix whitespace and more comments

This commit is contained in:
Mark Haines 2017-02-07 17:17:56 +00:00
parent 5b2e8db5b6
commit 5874ac5898
2 changed files with 12 additions and 10 deletions

View file

@ -27,7 +27,7 @@ func processRoomEvent(db RoomEventDatabase, input api.InputRoomEvent) error {
if input.Kind == api.KindOutlier {
// For outliers we can stop after we've stored the event itself as it
// doesn't have any associated state to store and we don't need to
// notify anyone it.
// notify anyone about it.
return nil
}

View file

@ -292,8 +292,10 @@ CREATE TABLE IF NOT EXISTS events (
-- Local numeric ID for the event.
event_nid BIGINT PRIMARY KEY DEFAULT nextval('event_nid_seq'),
-- Local numeric ID for the room the event is in.
-- This is never 0.
room_nid BIGINT NOT NULL,
-- Local numeric ID for the type of the event.
-- This is never 0.
event_type_nid BIGINT NOT NULL,
-- Local numeric ID for the state_key of the event
-- This is 0 if the event is not a state event.