mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 06:22:18 -04:00
Disambiguate queries on state_key
(#11497)
We're going to add a `state_key` column to the `events` table, so we need to add some disambiguation to queries which use it.
This commit is contained in:
parent
d26808dd85
commit
5640992d17
7 changed files with 21 additions and 16 deletions
|
@ -118,7 +118,7 @@ class PurgeEventsStore(StateGroupWorkerStore, CacheInvalidationWorkerStore):
|
|||
|
||||
logger.info("[purge] looking for events to delete")
|
||||
|
||||
should_delete_expr = "state_key IS NULL"
|
||||
should_delete_expr = "state_events.state_key IS NULL"
|
||||
should_delete_params: Tuple[Any, ...] = ()
|
||||
if not delete_local_events:
|
||||
should_delete_expr += " AND event_id NOT LIKE ?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue