fix: add missing worker_job_results FK cleanup in V115 migration #619
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/v115-worker-job-results-fk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem\nV115 migration fails on deploy: FK violation when deleting from
worker_jobsbecauseworker_job_resultsrows still reference those jobs.\n\n## Fix\nAdd step 15b before step 16 to DELETE fromworker_job_resultswhere the parentworker_jobsmatch the same queued/failed people-pipeline jobs being cleaned.\n\n## Changes\n-apps/api/src/main/resources/db/migration/V115__clear_person_domain.sql— insertDELETE FROM worker_job_resultsbeforeDELETE FROM worker_jobs