Skip to content

Commit 88cc969

Browse files
authored
Add migration with on cascade delete constraint (#2878)
Signed-off-by: Matt Paras <matthewparas2020@u.northwestern.edu>
1 parent ead480b commit 88cc969

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALTER TABLE job_facets
2+
DROP CONSTRAINT IF EXISTS job_facets_job_version_uuid_fkey,
3+
ADD CONSTRAINT job_facets_job_version_uuid_fkey
4+
FOREIGN KEY (job_version_uuid)
5+
REFERENCES job_versions(uuid)
6+
ON DELETE CASCADE;

0 commit comments

Comments
 (0)