mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 17:23:53 +01:00
Fix schema delta to not take as long on large servers (#10227)
Introduced in #6739
This commit is contained in:
parent
34db6bb9f5
commit
33701dc116
2 changed files with 6 additions and 2 deletions
1
changelog.d/10227.feature
Normal file
1
changelog.d/10227.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Implement "room knocking" as per [MSC2403](https://github.com/matrix-org/matrix-doc/pull/2403). Contributed by Sorunome and anoa.
|
|
@ -13,5 +13,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
ALTER TABLE room_stats_current ADD COLUMN knocked_members INT NOT NULL DEFAULT '0';
|
||||
ALTER TABLE room_stats_historical ADD COLUMN knocked_members BIGINT NOT NULL DEFAULT '0';
|
||||
-- Existing rows will default to NULL, so anything reading from these tables
|
||||
-- needs to interpret NULL as 0. This is fine here as no existing rooms can have
|
||||
-- any knocked members.
|
||||
ALTER TABLE room_stats_current ADD COLUMN knocked_members INT;
|
||||
ALTER TABLE room_stats_historical ADD COLUMN knocked_members BIGINT;
|
||||
|
|
Loading…
Reference in a new issue