Add create sequence in invites_table.go in syncapi

This commit is contained in:
Pushpam Choudhary 2020-01-27 01:15:43 +05:30
parent 37d117f2b7
commit b8cfaad0f7

View file

@ -25,6 +25,8 @@ import (
) )
const inviteEventsSchema = ` 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 ( CREATE TABLE IF NOT EXISTS syncapi_invite_events (
id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_stream_id'), id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_stream_id'),
event_id TEXT NOT NULL, event_id TEXT NOT NULL,