From 4445dd48c93246a4f15e75e4f893eeaf0de75a88 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Oct 2022 14:12:52 +0100 Subject: [PATCH] Create sequence --- syncapi/storage/postgres/relations_table.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncapi/storage/postgres/relations_table.go b/syncapi/storage/postgres/relations_table.go index bf125b342..7e42389bd 100644 --- a/syncapi/storage/postgres/relations_table.go +++ b/syncapi/storage/postgres/relations_table.go @@ -26,6 +26,8 @@ import ( ) const relationsSchema = ` +CREATE SEQUENCE IF NOT EXISTS syncapi_relation_id; + CREATE TABLE IF NOT EXISTS syncapi_relations ( id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_relation_id'), room_id TEXT NOT NULL,