From dd293ce1e934536190c029cb1b774cf04e81482f Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 13 Feb 2017 18:23:48 +0000 Subject: [PATCH] Fix SQL --- src/github.com/matrix-org/dendrite/roomserver/storage/sql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/sql.go b/src/github.com/matrix-org/dendrite/roomserver/storage/sql.go index 78bc4ebb3..55c34fd02 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/sql.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/sql.go @@ -352,7 +352,7 @@ CREATE TABLE IF NOT EXISTS events ( -- part of the event graph -- Since many different events can have the same state we store the -- state into a separate state table and refer to it by numeric ID. - state_snapshot_nid bigint NOT NULL DEFAULT 0 + state_snapshot_nid bigint NOT NULL DEFAULT 0, -- The textual event id. -- Used to lookup the numeric ID when processing requests. -- Needed for state resolution. @@ -362,7 +362,7 @@ CREATE TABLE IF NOT EXISTS events ( -- Needed for setting reference hashes when sending new events. reference_sha256 BYTEA NOT NULL, -- A list of numeric IDs for events that can authenticate this event. - auth_event_nids BIGINT[] NOT NULL, + auth_event_nids BIGINT[] NOT NULL ); `