summary refs log tree commit diff
path: root/scripts-dev/check_pydantic_models.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2025-04-16 14:14:56 +0100
committerGitHub <noreply@github.com>2025-04-16 14:14:56 +0100
commitc16a981f22dd559b56caa94a46392c206be9a265 (patch)
tree0e226a545772caea073aa7d7b0f01c10ce8536bf /scripts-dev/check_pydantic_models.py
parentFix ExternalIDReuse exception for concurrent transactions (#18342) (diff)
downloadsynapse-c16a981f22dd559b56caa94a46392c206be9a265.tar.xz
Fix query for room participation (#18345)
Follow on from #18068

Currently the subquery in `UPDATE` is pointless, as it will still just
update all `room_membership` rows. Instead, we should look at the
current membership event ID (which is easily retrieved from
`local_current_membership`). We also add a `AND NOT participant` to noop
the `UPDATE` when the `participant` flag is already set.

cc @H-Shay
Diffstat (limited to 'scripts-dev/check_pydantic_models.py')
0 files changed, 0 insertions, 0 deletions