mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-10-06 21:08:24 -04: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
|
@ -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…
Add table
Add a link
Reference in a new issue