fix upgrade85
This commit is contained in:
parent
c1657e49fc
commit
93ae20fbac
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ ALTER TABLE stock_goods
|
|||
ADD CONSTRAINT stock_goods_j_id_fkey FOREIGN KEY (j_id)
|
||||
REFERENCES jrnx (j_id) MATCH SIMPLE
|
||||
ON UPDATE cascade ON DELETE cascade;
|
||||
|
||||
delete from jrn_rapt where jr_id not in (select jr_id from jrn);
|
||||
delete from jrn_rapt where jra_id not in (select jr_id from jrn);
|
||||
|
||||
ALTER TABLE jrn_rapt
|
||||
ADD CONSTRAINT jrn_rapt_jr_id_fkey FOREIGN KEY (jr_id)
|
||||
REFERENCES jrn (jr_id) MATCH SIMPLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue