Add CREATE SEQUENCE line in invites_table.go

This commit is contained in:
Pushpam Choudhary 2019-12-03 22:33:02 +05:30
parent 145921f207
commit dbb714e6c9
2 changed files with 5 additions and 0 deletions

2
go.mod
View file

@ -65,3 +65,5 @@ require (
gopkg.in/macaroon.v2 v2.1.0
gopkg.in/yaml.v2 v2.2.2
)
go 1.13

View file

@ -9,6 +9,9 @@ import (
)
const inviteEventsSchema = `
-- This sequence is shared between all the tables generated from kafka logs.
CREATE SEQUENCE IF NOT EXISTS syncapi_stream_id;
CREATE TABLE IF NOT EXISTS syncapi_invite_events (
id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_stream_id'),
event_id TEXT NOT NULL,