SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
7.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<patch patch_id="2024-07-05">
<systeme>
<system name="his1" codierung="utf8"/>
<system name="superx" codierung="utf8"/>
<system name="superx" codierung="iso"/>
</systeme>
<module name="kern" systeminfo_id="xxx" inst_from="xx">
<patch-description feature_id="315457">Patch:Es werden neue Schlüsseltabllen für Staaten, Kontinente, EU-Miglichdschaft sowie weiterer Tabellen eingespielt, die in SuperX Kern 5.1 und HISinOne-BI 2024.12 bereits enthalten ist. Die Tabelle ist die Grundlage für Sichten nach Staaten.<br />
</patch-description>
<patch-test>
<!-- Bisher nur sql erlaubt. Ergebniss muss 0 sein, um zu erlauben, dass der Patch eingespielt wird! -->
<nativeaction sql="select 0 from xdummy where (select count(*) from db_version where his_system='kern') > 0 " scriptfile="" database=""/>
</patch-test>
<patch-data>
<files>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_studienfach_land.unl"><patch-description feature_id="252453">Datei Fach (Land) zu Land (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_staat.unl"><patch-description feature_id="315457">Datei Staat (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_kontinent.unl"><patch-description feature_id="315457">Datei Kontinent (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_faechergruppe.unl"><patch-description feature_id="252453">Datei Fächergruppen (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_abschluss3steller_land.unl"><patch-description feature_id="252453">Datei Abschluss (Land) zu Abschluss (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_abschluss2steller.unl"><patch-description feature_id="252453">Datei Abschluss (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_studienbereich.unl"><patch-description feature_id="252453">Datei Studienbereich (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_studienfach.unl"><patch-description feature_id="252453">Datei Fach (Bund)</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_staat_eu.unl"><patch-description feature_id="315457">Tabelle Staaten nach EU-Mitgl.</patch-description></file>
<file path="WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/k_astat_abschl_grp.unl"><patch-description feature_id="319910">Tabelle Abschluss (Bund) zu Abschlussgruppen</patch-description></file>
</files>
<database name="superx">
<!-- TODO: hier können beliebige Elemente der normalen Modul-XML stehen-->
<masken>>
</masken>
</database>
<upgrade>
<upgrade-step>
<action error="cont">
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_studienfach_land(
schluessel VARCHAR(255) ,
gueltig_ab INTEGER ,
land INTEGER ,
version INTEGER ,
sortkey INTEGER ,
gueltig_bis INTEGER ,
name VARCHAR(255) ,
isced VARCHAR(255) ,
keybund VARCHAR(255)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_abschluss3steller_land(
schluessel VARCHAR(255) not null,
gueltig_ab INTEGER ,
land INTEGER ,
version INTEGER ,
sortkey INTEGER ,
gueltig_bis INTEGER ,
name VARCHAR(255) ,
sig2steller VARCHAR(255) ,
keybund VARCHAR(255)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_abschluss2steller(
schluessel VARCHAR(255) not null,
name VARCHAR(255)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_studienbereich(
schluessel VARCHAR(255) not null,
name VARCHAR(255) ,
fgr VARCHAR(255)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_studienfach(
schluessel VARCHAR(255) not null,
name VARCHAR(255) ,
sb VARCHAR(255)
)
;" scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_staat(
schluessel INTEGER not null,
nummer VARCHAR(255) ,
name VARCHAR(255) ,
kennz VARCHAR(255) ,
kontinent INTEGER ,
constraint c_k_astat_staat primary key (schluessel)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_kontinent(
schluessel INTEGER not null,
nummer VARCHAR(255) ,
name VARCHAR(255) ,
constraint c_k_astat_kontinent primary key (schluessel)
)
;
" scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_faechergruppe(
schluessel VARCHAR(255) not null,
name VARCHAR(255)
)
; " scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_staat_eu(
tid SERIAL not null,
astat CHAR(3) not null,
eu CHAR(1) ,
semester_von INTEGER ,
semester_bis INTEGER ,
gueltig_von DATE ,
gueltig_bis DATE ,
constraint pk_k_astat_staat_eu primary key (tid)
)
;" scriptfile="" database="POSTGRES"/>
<nativeaction sql="CREATE TABLE IF NOT EXISTS k_astat_abschl_grp(
abschluss_astat_bund VARCHAR(255) not null,
abschluss_astat_bund_ktxt VARCHAR(255) ,
abschlussart VARCHAR(255) ,
abschluss_grp VARCHAR(255) ,
constraint pk_k_astat_abschl_grp primary key (abschluss_astat_bund)
)
;" scriptfile="" database="POSTGRES"/>
</action>
<action error="cont">
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_studienfach_land">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach_land.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_abschluss3steller_land">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss3steller_land.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_abschluss2steller">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss2steller.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_studienbereich">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienbereich.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_studienfach">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_staat">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_staat.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_kontinent">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_kontinent.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_faechergruppe">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_faechergruppe.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_abschl_grp">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschl_grp.unl" />
</loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="k_astat_staat_eu">
<file path="$SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_staat_eu.unl" />
</loadtable>
</action>
</upgrade-step>
</upgrade>
</patch-data>
</module>
</patch>