fix(geschichte): delete note-less journey items before document delete (#805) #806

Merged
marcel merged 8 commits from feat/issue-805-journey-note-less-cascade into feat/issue-795-story-documents 2026-06-11 19:36:06 +02:00
Showing only changes of commit f65296172f - Show all commits

View File

@@ -95,6 +95,8 @@ class JourneyItemDocumentDeleteTest {
void cleanup() {
SecurityContextHolder.clearContext();
reset(documentRepository);
// Deletion order is FK-load-bearing: journey_items reference both documents
// and geschichten, so children must be removed before their parents.
journeyItemRepository.deleteAll();
docRepo.deleteAll();
geschichteRepository.deleteAll();