Add a quickcode for contact
This commit is contained in:
parent
4473470052
commit
f3b7b106e8
3 changed files with 30 additions and 8 deletions
14
html/admin/sql/patch/upgrade17.sql
Normal file
14
html/admin/sql/patch/upgrade17.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
begin;
|
||||
-- add quick code for contact
|
||||
insert into attr_min (frd_id,ad_id) values (16,23);
|
||||
|
||||
|
||||
|
||||
insert into jnt_fic_attr select fd_id,23 from fiche_Def where frd_id=16;
|
||||
insert into jnt_fic_att_value(jft_id,f_id,ad_id) select nextval('s_jnt_fic_att_value')+200,f_id,23 from fiche
|
||||
where fd_id in (select fd_id from fiche_Def where frd_id=16);
|
||||
insert into attr_value select jft_id,'FID'||f_id from jnt_fic_att_value join fiche using(f_id) where ad_id=23 and
|
||||
fd_id in (select fd_id from fiche_Def where frd_id=16);
|
||||
|
||||
update version set val=18;
|
||||
commit;
|
||||
Loading…
Add table
Add a link
Reference in a new issue