 --
 
 ALTER TABLE ONLY public.dataset_keyword
-    ADD CONSTRAINT dataset_keyword_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES public.keyword(keyword_id);
+    ADD CONSTRAINT dataset_keyword_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES public.keyword(keyword_id) ON UPDATE CASCADE ON DELETE NO ACTION;
 
 
 --

--

ALTER TABLE ONLY public.dataset
    ADD CONSTRAINT dataset_survey_id_fkey FOREIGN KEY (survey_id) REFERENCES public.survey(survey_id);


--

--

ALTER TABLE ONLY public.distribution
    ADD CONSTRAINT distribution_dataset_id_fkey FOREIGN KEY (dataset_id) REFERENCES public.dataset(dataset_id) ON UPDATE CASCADE ON DELETE NO ACTION;


--
