From 62fd09946ee1d1f72cfe28691ef68cbd5c008074 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 6 Nov 2020 11:48:18 +0000 Subject: [PATCH] Fix create table syntax on postgres --- internal/mscs/msc2836/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mscs/msc2836/storage.go b/internal/mscs/msc2836/storage.go index 3eabcabf3..30484eb2a 100644 --- a/internal/mscs/msc2836/storage.go +++ b/internal/mscs/msc2836/storage.go @@ -56,7 +56,7 @@ func newPostgresDatabase(dbOpts *config.DatabaseOptions) (Database, error) { parent_event_id TEXT NOT NULL, child_event_id TEXT NOT NULL, rel_type TEXT NOT NULL, - CONSTRAINT msc2836_edges UNIQUE (parent_event_id, child_event_id, rel_type) + CONSTRAINT msc2836_edges_uniq UNIQUE (parent_event_id, child_event_id, rel_type) ); CREATE TABLE IF NOT EXISTS msc2836_nodes (