Fix: cannot delete an operation when there are supplemental document attached

This commit is contained in:
sparkyx 2026-05-01 10:42:10 +02:00
parent 6e976e4a68
commit 7a9c56ac2f
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
begin;
ALTER TABLE public.jrn_sup_document DROP CONSTRAINT jrn_sup_document_jrn_fk;
ALTER TABLE public.jrn_sup_document ADD CONSTRAINT jrn_sup_document_jrn_fk FOREIGN KEY (jr_id) REFERENCES public.jrn(jr_id) ON DELETE CASCADE ON UPDATE CASCADE;
insert into version (val,v_description) values (208,'delete an operation + additional documents');
commit;