mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-18 04:13:10 -06:00
Add create sequence in invites_table.go in syncapi
This commit is contained in:
parent
37d117f2b7
commit
b8cfaad0f7
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue