ALTER TABLE ONLY kockazat_mintapont DROP CONSTRAINT kockazat_mintapont_fk1;
ALTER TABLE ONLY kockazat_mintapont ADD CONSTRAINT kockazat_mintapont_fk1 FOREIGN KEY  (kockazat_mintapont_tkod) REFERENCES kockazat_minta (kockazat_minta_kod) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE ONLY kockazat_pszmintapont DROP CONSTRAINT kockazat_pszmintapont_fk1;
ALTER TABLE ONLY kockazat_pszmintapont ADD CONSTRAINT kockazat_pszmintapont_fk1 FOREIGN KEY (kockazat_pszmintapont_tkod)  REFERENCES kockazat_pszminta (kockazat_pszminta_kod) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE;
