Open
Description
Description of the problem
We get the following error:
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`domjudge`.`judging_run`, CONSTRAINT `FK_29A6E6E13CBA64F2` FOREIGN KEY (`judgetaskid`) REFERENCES `judgetask` (`judgetaskid`))
Your environment
- main branch
- BAPC2023 dump
Steps to reproduce
- Either load the BAPC2023 dump or upload a contest with example problems
- Make sure everything is judged
- Remove the contest problem from a contest
Expected behaviour
The contest problem gets deleted or we don't allow removing the problem from the contest, no server errors expected
Actual behaviour
Error, problem is not removed (so we stay consistent)