mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-24 15:15:30 +00:00
42a2c37c5b
The cleanup-queue-jobs job was failing because it tried to delete completed/failed jobs still referenced by `queue_schedules.last_scheduled_job_id`. The FK defaulted to RESTRICT, blocking the delete. Change it to `ON DELETE SET NULL` so cleanup can proceed, matching the existing semantics (NULL = "never scheduled or cleaned up"). Fixes #5545