Fix create table syntax on postgres

This commit is contained in:
Kegan Dougal 2020-11-06 11:48:18 +00:00
parent 8a7ccd5d1d
commit 62fd09946e

View file

@ -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 (