1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/include/sql/patch/upgrade21.sql
dudjima 3a905a4a87 Update sources 7.01
Update files from sources with last update on noalyss.eu
2018-04-13 18:58:28 +02:00

14 lines
335 B
PL/PgSQL

begin;
alter table import_tmp add jr_rapt text;
delete from jnt_fic_attr
where jnt_id in (
select a.jnt_id
from jnt_fic_attr as a join jnt_fic_attr as b
on (a.fd_id=b.fd_id and a.ad_id=b.ad_id)
where b.jnt_id > a.jnt_id);
create unique index fd_id_ad_id_x on jnt_fic_attr( fd_id,ad_id);
update version set val=22;
commit;