fix(multiplayer): validate legacy connection leases

This commit is contained in:
Josh Creek
2026-09-03 21:14:41 +01:00
parent 2050acd63d
commit b5b6bdea95
4 changed files with 11 additions and 1 deletions
@@ -0,0 +1,5 @@
-- Migration 0011 used NOT VALID so the new check protected concurrent writes
-- while its backfill completed. Validate separately so an upgraded database
-- cannot silently retain an impossible pre-lease connection state.
ALTER TABLE match_participants
VALIDATE CONSTRAINT match_participants_connection_lease;