mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Fix Postgres
This commit is contained in:
parent
a65a5ca0fd
commit
12d93eb6ed
|
|
@ -45,11 +45,10 @@ CREATE TABLE IF NOT EXISTS syncapi_memberships (
|
|||
-- The stream position of the change
|
||||
stream_pos BIGINT NOT NULL,
|
||||
-- The topological position of the change in the room
|
||||
topological_pos BIGINT NOT NULL
|
||||
topological_pos BIGINT NOT NULL,
|
||||
-- Unique index
|
||||
CONSTRAINT syncapi_memberships_unique UNIQUE (room_id, user_id, membership)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS syncapi_memberships_unique
|
||||
ON syncapi_memberships(room_id, user_id, membership);
|
||||
`
|
||||
|
||||
const upsertMembershipSQL = "" +
|
||||
|
|
|
|||
Loading…
Reference in a new issue