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