diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-03 12:08:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 12:08:16 +0000 |
commit | 16f9f93eb74885dc8f09d5e7c4b0ca0cc2c2aca1 (patch) | |
tree | 8d436565c2ceb37fd7001e53e11a7534445523dd /synapse/storage/databases/main/schema | |
parent | Update nginx reverse-proxy docs (#9512) (diff) | |
download | synapse-16f9f93eb74885dc8f09d5e7c4b0ca0cc2c2aca1.tar.xz |
Make deleting stale pushers a background update (#9536)
Diffstat (limited to 'synapse/storage/databases/main/schema')
-rw-r--r-- | synapse/storage/databases/main/schema/delta/59/08delete_stale_pushers.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/schema/delta/59/08delete_stale_pushers.sql b/synapse/storage/databases/main/schema/delta/59/08delete_stale_pushers.sql index 2442eea6bc..85196db288 100644 --- a/synapse/storage/databases/main/schema/delta/59/08delete_stale_pushers.sql +++ b/synapse/storage/databases/main/schema/delta/59/08delete_stale_pushers.sql @@ -16,4 +16,5 @@ -- Delete all pushers associated with deleted devices. This is to clear up after -- a bug where they weren't correctly deleted when using workers. -DELETE FROM pushers WHERE access_token NOT IN (SELECT id FROM access_tokens); +INSERT INTO background_updates (ordering, update_name, progress_json) VALUES + (5908, 'remove_stale_pushers', '{}'); |