summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-02-02 11:37:18 +0000
committerGitHub <noreply@github.com>2022-02-02 11:37:18 +0000
commitaf795173bec447da44b65b739d05d0083b02229d (patch)
tree4b423cfa066215aff63aa36048da9d1ba8024d1c /scripts
parentExpose the registered device ID from the `register_appservice_user` test help... (diff)
downloadsynapse-af795173bec447da44b65b739d05d0083b02229d.tar.xz
Add a background database update to purge account data for deactivated users. (#11655)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/synapse_port_db4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db

index 640ff15277..70ee4e5c7f 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db
@@ -36,6 +36,8 @@ from synapse.logging.context import ( run_in_background, ) from synapse.storage.database import DatabasePool, make_conn +from synapse.storage.databases.main import PushRuleStore +from synapse.storage.databases.main.account_data import AccountDataWorkerStore from synapse.storage.databases.main.client_ips import ClientIpBackgroundUpdateStore from synapse.storage.databases.main.deviceinbox import DeviceInboxBackgroundUpdateStore from synapse.storage.databases.main.devices import DeviceBackgroundUpdateStore @@ -180,6 +182,8 @@ class Store( UserDirectoryBackgroundUpdateStore, EndToEndKeyBackgroundStore, StatsStore, + AccountDataWorkerStore, + PushRuleStore, PusherWorkerStore, PresenceBackgroundUpdateStore, GroupServerWorkerStore,