mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 19:44:06 +00:00
Prevent breaking old sqlite's when media retention is enabled (#12977)
This commit is contained in:
1 parent
a47636c570
commit
c51f5b9592
2 files changed
+2
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
Add new `media_retention` options to the homeserver config for routinely cleaning up non-recently accessed media.
|
||||
@@ -327,7 +327,7 @@ class MediaRepositoryStore(MediaRepositoryBackgroundUpdateStore):
|
||||
if include_protected_media is False:
|
||||
# Do not include media that has been protected from quarantine
|
||||
sql += """
|
||||
AND safe_from_quarantine = false
|
||||
AND NOT safe_from_quarantine
|
||||
"""
|
||||
|
||||
def _get_local_media_ids_txn(txn: LoggingTransaction) -> List[str]:
|
||||
|
||||
Reference in new issue
Block a user