Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 507bea0

Browse files
author
David Robertson
committed
Add column to track where we partial-joined via
1 parent d05d53d commit 507bea0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright 2022 The Matrix.org Foundation C.I.C
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
-- When we resync partial state, we prioritise doing so using the server we
17+
-- partial-joined from. To do this we need to record which server that was!
18+
-- Both columns are backwards compatible.
19+
ALTER TABLE partial_state_rooms ADD COLUMN joined_via TEXT;

0 commit comments

Comments
 (0)