Fix: cannot delete an operation when there are supplemental document attached
This commit is contained in:
parent
6e976e4a68
commit
7a9c56ac2f
2 changed files with 8 additions and 1 deletions
7
include/sql/patch/upgrade207.sql
Normal file
7
include/sql/patch/upgrade207.sql
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue