Compare commits

..

No commits in common. '92c0c436583c9bee11568820e785329b16f290f3' and '0041f5a2eda20e1a65b3d34afed9d0d8f3a46e3a' have entirely different histories.

  1. 3
      src-modules/module/xcube/conf/xcube.xml
  2. 3
      src-modules/module/xcube/schluesseltabellen/create_views.sql
  3. 2
      src-modules/module/xcube/upgrade/xcube_pre_upgrade_pg.sql

3
src-modules/module/xcube/conf/xcube.xml

@ -119,8 +119,7 @@ bund_apnr as parent
from cifx where key=11 from cifx where key=11
union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy
union select druck,apnr,'1' from cifx where key=747 and parent is not null union select druck,apnr,'1' from cifx where key=747 and parent is not null
union select druck, case when astat='' or astat is null then apnr else astat end , union select druck, '' || astat::integer, bund_apnr from cifx where key=12 and apnr != 'D'
case when bund_apnr='' or bund_apnr='---' or bund_apnr is null then '-9999' else bund_apnr end from cifx where key=12 and apnr != 'D'
union union
select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy;
]]></sql> ]]></sql>

3
src-modules/module/xcube/schluesseltabellen/create_views.sql

@ -22,8 +22,7 @@ bund_apnr as parent
from cifx where key=11 from cifx where key=11
union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy
union select druck,apnr,'1' from cifx where key=747 and parent is not null union select druck,apnr,'1' from cifx where key=747 and parent is not null
union select druck, case when astat='' or astat is null then apnr else astat end , union select druck, '' || astat::integer, bund_apnr from cifx where key=12 and apnr != 'D'
case when bund_apnr='' or bund_apnr='---' or bund_apnr is null then '-9999' else bund_apnr end from cifx where key=12 and apnr != 'D'
union union
select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy;

2
src-modules/module/xcube/upgrade/xcube_pre_upgrade_pg.sql

@ -1,2 +0,0 @@
drop view if exists xcube_wohnort_staat;
drop view if exists xcube_hoererstatus;
Loading…
Cancel
Save