Browse Source

Bugfix negat. Hochschulsem. #1

master
Daniel Quathamer 4 weeks ago
parent
commit
52edf0d349
  1. 48
      src-modules/module/xcube/conf/xcube.xml
  2. 2
      src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql

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

@ -242,6 +242,54 @@ parent="Xcubes">Abfragen zur Administration von Xcubes </thema>
</action> </action>
</install-step> </install-step>
</install> </install>
<!-- Elemente nur für die neue KV von HIS:-->
<install_upgrade_job>
<install-upgrade-step name="pre_upgrade" type="container" id="xcube_preupgrade_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_tables" type="" id="xcube_upgrade_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/upgrade/xcube_upgrade_tables_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_fields" type="" id="xcube_upgrade_fields_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/upgrade/xcube_upgrade_fields_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="upgrade_views" type="" id="xcube_upgrade_views_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/upgrade/xcube_upgrade_views_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_functions" type="container" id="xcube_install_functions_containernode">
<action error="stop"/>
</install-upgrade-step>
<install-upgrade-step name="upgrade_indices" type="" id="xcube_upgrade_indices_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/upgrade/xcube_upgrade_indexes_pg.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="fill_tables" type="" id="xcube_fill_tables_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/conf/sx_tables_fuellen.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="Update Module Metadata" type="container" id="xcube_update_module_metadata_container">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/conf/module_metadata.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="update_topic_tree" type="" id="xcube_update_topictree_actionstep">
<action error="stop">
<nativeaction sql="" scriptfile="$XCUBE_PFAD/upgrade/xcube_upgrade_themenbaum.sql" database=""/>
</action>
</install-upgrade-step>
<install-upgrade-step name="install_masks" type="container" id="xcube_install_masks_containernode">
<action error="stop"/>
</install-upgrade-step>
</install_upgrade_job>
<upgrade> <upgrade>
<upgrade-step> <upgrade-step>

2
src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql

@ -55,7 +55,7 @@ select distinct 'fssemzahl', '99','FS>10',99 from sos_stg_aggr where fach_sem_za
</#if> </#if>
<#if TableFieldExists('sos_stg_aggr','hssem')> <#if TableFieldExists('sos_stg_aggr','hssem')>
delete from xcube_dims where id='hssem'; delete from xcube_dims where id='hssemzahl';
INSERT INTO xcube_dims (id,apnr,name,sort1) INSERT INTO xcube_dims (id,apnr,name,sort1)
select distinct 'hssemzahl',hssem::varchar(10),hssem||'.HS',hssem from sos_stg_aggr select distinct 'hssemzahl',hssem::varchar(10),hssem||'.HS',hssem from sos_stg_aggr
where hssem between 0 and 10; where hssem between 0 and 10;

Loading…
Cancel
Save