From b590056ba7b435ebebd208e7f10398f96176c4fe Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Fri, 27 Jun 2025 17:25:15 +0100 Subject: [PATCH] Add deleted rooms table to schema. --- .../delta/93/01_add_deleted_room_memebers.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 synapse/storage/schema/main/delta/93/01_add_deleted_room_memebers.sql diff --git a/synapse/storage/schema/main/delta/93/01_add_deleted_room_memebers.sql b/synapse/storage/schema/main/delta/93/01_add_deleted_room_memebers.sql new file mode 100644 index 0000000000..2130c638a4 --- /dev/null +++ b/synapse/storage/schema/main/delta/93/01_add_deleted_room_memebers.sql @@ -0,0 +1,19 @@ +-- +-- This file is licensed under the Affero General Public License (AGPL) version 3. +-- +-- Copyright (C) 2025 New Vector, Ltd +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- See the GNU Affero General Public License for more details: +-- . + +CREATE TABLE deleted_room_members ( + room_id TEXT NOT NULL, + user_id TEXT NOT NULL, + deleted_at_stream_id bigint NOT NULL +); +CREATE UNIQUE INDEX deleted_room_member_idx ON deleted_room_members(room_id, user_id);