diff --git a/api/src/main/resources/marquez/db/migration/V70__alter_job_facets.sql b/api/src/main/resources/marquez/db/migration/V70__alter_job_facets.sql new file mode 100644 index 0000000000..ef77d3fb83 --- /dev/null +++ b/api/src/main/resources/marquez/db/migration/V70__alter_job_facets.sql @@ -0,0 +1,6 @@ +ALTER TABLE job_facets + DROP CONSTRAINT IF EXISTS job_facets_job_version_uuid_fkey, + ADD CONSTRAINT job_facets_job_version_uuid_fkey + FOREIGN KEY (job_version_uuid) + REFERENCES job_versions(uuid) + ON DELETE CASCADE;