Default ON DELETE RESTRICT
in MySQL schema causes trouble with JobRepositoryTestUtils
#4322
Labels
status: superseded
Issues that are superseded by other issues
In MySQL schema:
https://github.com/spring-projects/spring-batch/blob/main/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mysql.sql
a FK is defined with default cascade behaviour (
ON DELETE RESTRICT
):However, https://github.com/spring-projects/spring-batch/blob/main/spring-batch-test/src/main/java/org/springframework/batch/test/JobRepositoryTestUtils.java doesn't take care of cleaning the dependant rows, and a failure is caused when used:
The text was updated successfully, but these errors were encountered: