diff --git a/src/de/superx/bin/KettleExecutor.java b/src/de/superx/bin/KettleExecutor.java index 7e0d8be..c49fbca 100644 --- a/src/de/superx/bin/KettleExecutor.java +++ b/src/de/superx/bin/KettleExecutor.java @@ -7,11 +7,13 @@ import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; +import java.util.StringTokenizer; import org.pentaho.di.core.KettleEnvironment; import org.pentaho.di.core.exception.KettleException; import de.memtext.util.GetOpts; +import de.memtext.util.StringUtils; import de.superx.bin.fm.EtlStarter; import de.superx.common.DBServletException; import de.superx.common.SuperX_el; @@ -22,178 +24,220 @@ import de.superx.servlet.SuperXManager; import de.superx.servlet.SxPools; public class KettleExecutor { - private String mandantenID; - private SxJob sxJob; - private boolean isPostgres = true; - private StringBuffer resultMessages=new StringBuffer(""); - private Map jobParams = new HashMap(); - - public KettleExecutor(String mandantenID) { - this.mandantenID = mandantenID; - isPostgres = SxPools.get(mandantenID).getDatabaseAbbr().equals(("PG")); - } - - public void setParams(Map jobParams) { - this.jobParams = jobParams; - } - - public StringBuffer perform() throws IOException, SQLException, DBServletException { - try { - initSxJob(); - EtlStarter es = new EtlStarter(); - check_sql("vor"); - resultMessages.append(es.kettleCallEmbedded(mandantenID, sxJob.getFilepath(), jobParams, isPostgres)); - check_sql("nach"); - - } catch (Exception e) { - throw new IOException(e); - } - return resultMessages; - } - - private void check_sql(String pos) throws SQLException, DBServletException { - if (sxJob.check_sql != null) { - SuperX_el el=ServletUtils.execute_el("check_sql "+pos+" Durchführung von Ladejob "+sxJob.getCaption(), sxJob.check_sql, false,mandantenID); - SxResultSet rs=el.getResultSet(); - for (Iterator it = rs.iterator(); it.hasNext();) { - SxResultRow row = (SxResultRow) it.next(); - Object erg = row.get(0); - if (erg!=null) { - resultMessages.append("Prüfselektion "+pos+" Durchführung von Ladejob "+sxJob.getCaption()); - resultMessages.append("\n"+erg.toString()+"\n"); - } - } - } - - } - - - private void initSxJob() throws SQLException, DBServletException { - SxResultSet rs = ServletUtils.execute("Einlesen von SxJob)", - "select caption,filepath,params,check_sql from sx_jobs where tid=" + jobParams.get("Job"), mandantenID); - sxJob = new SxJob(); - for (Iterator it = rs.iterator(); it.hasNext();) { - SxResultRow row = (SxResultRow) it.next(); - sxJob.setCaption(row.get(0).toString()); - sxJob.setFilepath("file://" + SuperXManager.getModuleDir() + File.separator + row.get(1).toString()); - sxJob.setParams((String) row.get(2)); - sxJob.setCheck_sql((String) row.get(3)); - } - } - - public static void main(String args[]) { - String usage="usage: -mandantenID:default -MODULE_PFAD:/home/superx/db/module -WEB_INF_PFAD:/home/superx/webserver/tomcat/webapps/superx/WEB-INF -job_uniquename:abc -path_to_uploadfile:/home/superx (optional)" ; - GetOpts.setOpts(args); - String isdrin = GetOpts.isAllRequiredOptionsPresent("-mandantenID,-WEB_INF_PFAD,-MODULE_PFAD,-job_uniquename"); - if (isdrin != null) { - - System.err.println(usage); - System.exit(1); - } - - String mandantenID = GetOpts.getValue("-mandantenID"); - String job_uniquename=GetOpts.getValue("-job_uniquename"); - SuperXManager.setWEB_INFPfad(GetOpts.getValue("-WEB_INF_PFAD")); - SuperXManager.setModuleDir(GetOpts.getValue("-MODULE_PFAD")); - String path_to_uploadfile=""; - if (GetOpts.isPresent("-path_to_uploadfile")) - { - path_to_uploadfile=GetOpts.getValue("-path_to_uploadfile"); - if (!new File(path_to_uploadfile).exists()) - { - System.out.println("Fehler: Datei "+path_to_uploadfile+" nicht gefunden"); - System.exit(-1); - } - } - try { - //muss vor SxPools init ausgeführt werden, sonst kann kein kettleDatabaseMeta-Objekt erzeugt werden java.lang.RuntimeException: Database type not found! - KettleEnvironment.init(); - - SxPools.init(); - SxPools.get(mandantenID).init(); - //SxPools.get(mandantenID).initLogging(true); - SxPools.resetAllPools(); - } catch (Exception e) { - System.out.println("Fehler beim Datenbankverbindungsaufbau " + e); - e.printStackTrace();; - - System.exit(-1); - } - try { - String jobtid=getJobTid(job_uniquename,mandantenID); - KettleExecutor ke = new KettleExecutor(mandantenID); - Map jobParams = new HashMap(); - jobParams.put("Job", jobtid); - jobParams.put("PATH_TO_UPLOADFILE", path_to_uploadfile); - ke.setParams(jobParams); - - ke.perform(); - System.out.println("Keine Fehler aufgefallen"); - } catch (Exception e) { - - System.out.println("Fehler bei Verarbeitung " + e); - e.printStackTrace(); - System.exit(-1); - - } - } - - private static String getJobTid(String job_uniquename,String mandantenID) throws SQLException, DBServletException { - String tid=""; - String sql="select tid from sx_jobs where uniquename='"+job_uniquename+"'"; - SxResultSet rs=ServletUtils.execute("Suche tid für sx_job mit uniquename "+job_uniquename, sql, mandantenID); - if (rs.size()==0) - throw new RuntimeException("Kein sx_job mit uniquename "+job_uniquename+" gefunden"); - if (rs.size()>1) - throw new RuntimeException("Mehrere sx_jobs mit uniquename "+job_uniquename+" gefunden"); - - for (Iterator it = rs.iterator(); it.hasNext();) { - SxResultRow row = (SxResultRow) it.next(); - Object erg = row.get(0); - if (erg!=null) tid=erg.toString(); - } - return tid; - } - - private class SxJob { - private String filepath; - private String params; - private String check_sql; - private String caption; - public String getCaption() { - return caption; - } - - public void setCaption(String caption) { - this.caption = caption; - } - - public String getFilepath() { - return filepath; - } - - public void setFilepath(String filepath) { - this.filepath = filepath; - } - - public String getParams() { - return params; - } - - public void setParams(String params) { - this.params = params; - } - - public String getCheck_sql() { - return check_sql; - } - - public void setCheck_sql(String check_sql) { - this.check_sql = check_sql; - } - - - - } + private String mandantenID; + + private SxJob sxJob; + + private boolean isPostgres = true; + + private StringBuffer resultMessages = new StringBuffer(""); + + private Map jobParams = new HashMap(); + + public KettleExecutor(String mandantenID) { + this.mandantenID = mandantenID; + isPostgres = SxPools.get(mandantenID).getDatabaseAbbr().equals(("PG")); + } + + public void setParams(Map jobParams) { + this.jobParams = jobParams; + } + + public StringBuffer perform() throws IOException, SQLException, DBServletException { + try { + initSxJob(); + EtlStarter es = new EtlStarter(); + if (!isModusVorschau()) { + check_sql("vor"); + } + resultMessages.append(es.kettleCallEmbedded(mandantenID, sxJob.getFilepath(), jobParams, isPostgres)); + if (isModusVorschau()) { + //Vor Ergebnis Vorschau einfügen + resultMessages.insert(0, getPreviewInfo()); + } else { + check_sql("nach"); + } + + + } catch (Exception e) { + throw new IOException(e); + } + return resultMessages; + } + + private boolean isModusVorschau() { + return jobParams.containsKey("Modus") && jobParams.get("Modus") != null && jobParams.get("Modus").equals("3"); + } + + private StringBuilder getPreviewInfo() throws IOException { + StringBuilder result = new StringBuilder(); + File loadjoblog = new File(new File(sxJob.getFilepath().replaceAll("file:", "")).getParentFile().getPath() + File.separator + "ladejob.log"); + if (loadjoblog.exists()) { + String rawpreview = StringUtils.readFile(loadjoblog); + StringTokenizer st = new StringTokenizer(rawpreview, "\n"); + result.append("Vorschau\n"); + String currentHeader = ""; + while (st.hasMoreTokens()) { + String line = st.nextToken(); + if (line.indexOf("|") > -1) { + String firstpart = line.substring(0, line.indexOf("|")); + if (!firstpart.equals(currentHeader)) { + result.append(firstpart + "\n"); + currentHeader = firstpart; + result.append("-->" + line.substring(line.indexOf("|") + 1) + "\n"); + } else { + result.append("-->" + StringUtils.replace(line, firstpart + "|", "") + "\n"); + } + } + } + + } + return result; + } + + private void check_sql(String pos) throws SQLException, DBServletException { + if (sxJob.check_sql != null) { + SuperX_el el = ServletUtils.execute_el("check_sql " + pos + " Durchführung von Ladejob " + sxJob.getCaption(), sxJob.check_sql, false, mandantenID); + SxResultSet rs = el.getResultSet(); + for (Iterator it = rs.iterator(); it.hasNext();) { + SxResultRow row = (SxResultRow) it.next(); + Object erg = row.get(0); + if (erg != null) { + resultMessages.append("Prüfselektion " + pos + " Durchführung von Ladejob " + sxJob.getCaption()); + resultMessages.append("\n" + erg.toString() + "\n"); + } + } + } + + } + + + private void initSxJob() throws SQLException, DBServletException { + SxResultSet rs = ServletUtils.execute("Einlesen von SxJob)", "select caption,filepath,params,check_sql from sx_jobs where tid=" + jobParams.get("Job"), mandantenID); + sxJob = new SxJob(); + for (Iterator it = rs.iterator(); it.hasNext();) { + SxResultRow row = (SxResultRow) it.next(); + sxJob.setCaption(row.get(0).toString()); + sxJob.setFilepath("file://" + SuperXManager.getModuleDir() + File.separator + row.get(1).toString()); + sxJob.setParams((String) row.get(2)); + sxJob.setCheck_sql((String) row.get(3)); + } + } + + public static void main(String args[]) { + String usage = "usage: -mandantenID:default -MODULE_PFAD:/home/superx/db/module -WEB_INF_PFAD:/home/superx/webserver/tomcat/webapps/superx/WEB-INF -job_uniquename:abc -path_to_uploadfile:/home/superx (optional)"; + GetOpts.setOpts(args); + String isdrin = GetOpts.isAllRequiredOptionsPresent("-mandantenID,-WEB_INF_PFAD,-MODULE_PFAD,-job_uniquename"); + if (isdrin != null) { + + System.err.println(usage); + System.exit(1); + } + + String mandantenID = GetOpts.getValue("-mandantenID"); + String job_uniquename = GetOpts.getValue("-job_uniquename"); + SuperXManager.setWEB_INFPfad(GetOpts.getValue("-WEB_INF_PFAD")); + SuperXManager.setModuleDir(GetOpts.getValue("-MODULE_PFAD")); + String path_to_uploadfile = ""; + if (GetOpts.isPresent("-path_to_uploadfile")) { + path_to_uploadfile = GetOpts.getValue("-path_to_uploadfile"); + if (!new File(path_to_uploadfile).exists()) { + System.out.println("Fehler: Datei " + path_to_uploadfile + " nicht gefunden"); + System.exit(-1); + } + } + try { + //muss vor SxPools init ausgeführt werden, sonst kann kein kettleDatabaseMeta-Objekt erzeugt werden java.lang.RuntimeException: Database type not found! + KettleEnvironment.init(); + + SxPools.init(); + SxPools.get(mandantenID).init(); + //SxPools.get(mandantenID).initLogging(true); + SxPools.resetAllPools(); + } catch (Exception e) { + System.out.println("Fehler beim Datenbankverbindungsaufbau " + e); + e.printStackTrace(); + ; + + System.exit(-1); + } + try { + String jobtid = getJobTid(job_uniquename, mandantenID); + KettleExecutor ke = new KettleExecutor(mandantenID); + Map jobParams = new HashMap(); + jobParams.put("Job", jobtid); + jobParams.put("PATH_TO_UPLOADFILE", path_to_uploadfile); + ke.setParams(jobParams); + + ke.perform(); + System.out.println("Keine Fehler aufgefallen"); + } catch (Exception e) { + + System.out.println("Fehler bei Verarbeitung " + e); + e.printStackTrace(); + System.exit(-1); + + } + } + + private static String getJobTid(String job_uniquename, String mandantenID) throws SQLException, DBServletException { + String tid = ""; + String sql = "select tid from sx_jobs where uniquename='" + job_uniquename + "'"; + SxResultSet rs = ServletUtils.execute("Suche tid für sx_job mit uniquename " + job_uniquename, sql, mandantenID); + if (rs.size() == 0) throw new RuntimeException("Kein sx_job mit uniquename " + job_uniquename + " gefunden"); + if (rs.size() > 1) throw new RuntimeException("Mehrere sx_jobs mit uniquename " + job_uniquename + " gefunden"); + + for (Iterator it = rs.iterator(); it.hasNext();) { + SxResultRow row = (SxResultRow) it.next(); + Object erg = row.get(0); + if (erg != null) tid = erg.toString(); + } + return tid; + } + + private class SxJob { + private String filepath; + + private String params; + + private String check_sql; + + private String caption; + + public String getCaption() { + return caption; + } + + public void setCaption(String caption) { + this.caption = caption; + } + + public String getFilepath() { + return filepath; + } + + public void setFilepath(String filepath) { + this.filepath = filepath; + } + + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params; + } + + public String getCheck_sql() { + return check_sql; + } + + public void setCheck_sql(String check_sql) { + this.check_sql = check_sql; + } + + + + } } diff --git a/superx/WEB-INF/conf/edustore/db/conf/build.xml b/superx/WEB-INF/conf/edustore/db/conf/build.xml index 0b4af69..6a10b85 100644 --- a/superx/WEB-INF/conf/edustore/db/conf/build.xml +++ b/superx/WEB-INF/conf/edustore/db/conf/build.xml @@ -312,7 +312,9 @@ - + + + @@ -1286,13 +1288,21 @@ failonerror="false"> - + + + + + + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm.tab b/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm.tab index ce7a5ca..be5c670 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm.tab +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm.tab @@ -1,10 +1,10 @@ {### organigramm - automatisch generiert #########} create table organigramm( - tid INTEGER not null, + tid SERIAL not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm_bak.tab b/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm_bak.tab index da290cd..9ea1167 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm_bak.tab +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/dbconv/sch.eduetl/organigramm_bak.tab @@ -3,8 +3,8 @@ create table organigramm_bak( tid INTEGER not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_drop_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_drop_ids.xml index d098742..9045909 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_drop_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_drop_ids.xml @@ -1,45 +1,6 @@ -eduetl:drop view user_groups; - - -eduetl:drop view menu_element_fieldmode; - - -eduetl:drop view menu_element_mandatory; - - -eduetl:drop view menu_element_nature; - - -eduetl:drop view menu_element_orgstructure; - - -eduetl:drop view user_inst_org; - - -eduetl:drop view hochschulen; - - -eduetl:drop view dimension_view; - - -eduetl:drop view fact_table; - - -eduetl:drop view dim_staat; - - -eduetl:drop view dim_stg; - - -eduetl:drop view dim_abschluss; - - -eduetl:drop view dim_kost; - - -eduetl:drop view dim_kotr; - + + eduetl:drop procedure sp_user_themen(integer, date, smallint); @@ -112,6 +73,9 @@ eduetl:drop procedure sp_set_organigramm_lehr(); + +eduetl:drop function trim_all_whitespace(varchar); + eduetl:drop table sichtart_rechttabelle; @@ -196,6 +160,9 @@ eduetl:drop table trans_cif; + +eduetl:drop table cifx_customize; + eduetl:drop table felderinfo; @@ -271,6 +238,9 @@ eduetl:drop table sx_mask_style; + +eduetl:drop table sx_stylesheet_param; + eduetl:drop table sx_captions; @@ -403,6 +373,9 @@ eduetl:drop table group_portlet_bez; + +eduetl:drop table kern_cifx_neu; + eduetl:drop table sieve; @@ -418,6 +391,63 @@ eduetl:drop table sx_jobs; + +eduetl:drop table orgunit_mapping; + + +eduetl:drop table implicit_orgunit_rights; + + +eduetl:drop table kern_pruefrout; + + +eduetl:drop table masken_statistik; + + +eduetl:drop table dim_datum; + + +eduetl:drop table hisinone_deleted_entity; + + +eduetl:drop table etl_step; + + +eduetl:drop table etl_step_type; + + +eduetl:drop table etl_step_type_param; + + +eduetl:drop table etl_step_property; + + +eduetl:drop table etl_step_relation; + + +eduetl:drop table etl_job; + + +eduetl:drop table etl_job_param; + + +eduetl:drop table k_astat_studienfach_land; + + +eduetl:drop table k_astat_abschluss3steller_land; + + +eduetl:drop table k_astat_abschluss2steller; + + +eduetl:drop table k_astat_studienbereich; + + +eduetl:drop table k_astat_studienfach; + + +eduetl:drop table colorscheme; + eduetl:drop table sx_mail; @@ -431,4 +461,7 @@ + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_install_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_install_ids.xml index 06e9660..71fd9d5 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_install_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_install_ids.xml @@ -77,199 +77,234 @@ eduetl:delete from sx_repository; +eduetl:delete from k_astat_studienfach_land; + +eduetl:delete from k_astat_abschluss3steller_land; + +eduetl:delete from k_astat_abschluss2steller; + +eduetl:delete from k_astat_studienfach; + +eduetl:delete from k_astat_studienbereich; + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -279,10 +314,10 @@ - + - + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_integrate_ids.sql b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_integrate_ids.sql index 20f1817..966647d 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_integrate_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_integrate_ids.sql @@ -4,14 +4,18 @@ --Integrieren: --- Fülle db_version +select now(),'Fülle db_version' +from xdummy; + delete from db_version where his_system='kern'; -insert into db_version (his_system,version) values('kern','4.9'); +insert into db_version (his_system,version,systeminfo_id) values('kern','5.0',9); + +select now(),'Fülle db_tabellen' +from xdummy; --- Fülle db_tabellen delete from db_tabellen where name='sichtart_rechttabelle'; insert into db_tabellen (name,protokollierung) values('sichtart_rechttabelle',0); delete from db_tabellen where name='group_field_pref'; @@ -68,6 +72,8 @@ delete from db_tabellen where name='trans_cifx'; insert into db_tabellen (name,protokollierung) values('trans_cifx',0); delete from db_tabellen where name='trans_cif'; insert into db_tabellen (name,protokollierung) values('trans_cif',0); +delete from db_tabellen where name='cifx_customize'; +insert into db_tabellen (name,protokollierung) values('cifx_customize',0); delete from db_tabellen where name='felderinfo'; insert into db_tabellen (name,protokollierung) values('felderinfo',0); delete from db_tabellen where name='hochschulinfo'; @@ -118,6 +124,8 @@ delete from db_tabellen where name='sx_stylesheets'; insert into db_tabellen (name,protokollierung) values('sx_stylesheets',0); delete from db_tabellen where name='sx_mask_style'; insert into db_tabellen (name,protokollierung) values('sx_mask_style',0); +delete from db_tabellen where name='sx_stylesheet_param'; +insert into db_tabellen (name,protokollierung) values('sx_stylesheet_param',0); delete from db_tabellen where name='sx_captions'; insert into db_tabellen (name,protokollierung) values('sx_captions',0); delete from db_tabellen where name='fm_templates'; @@ -206,6 +214,8 @@ delete from db_tabellen where name='user_portlet_bez'; insert into db_tabellen (name,protokollierung) values('user_portlet_bez',0); delete from db_tabellen where name='group_portlet_bez'; insert into db_tabellen (name,protokollierung) values('group_portlet_bez',0); +delete from db_tabellen where name='kern_cifx_neu'; +insert into db_tabellen (name,protokollierung) values('kern_cifx_neu',0); delete from db_tabellen where name='sieve'; insert into db_tabellen (name,protokollierung) values('sieve',0); delete from db_tabellen where name='sieve_column_def'; @@ -216,21 +226,63 @@ delete from db_tabellen where name='sieve_field'; insert into db_tabellen (name,protokollierung) values('sieve_field',0); delete from db_tabellen where name='sx_jobs'; insert into db_tabellen (name,protokollierung) values('sx_jobs',0); +delete from db_tabellen where name='orgunit_mapping'; +insert into db_tabellen (name,protokollierung) values('orgunit_mapping',0); +delete from db_tabellen where name='implicit_orgunit_rights'; +insert into db_tabellen (name,protokollierung) values('implicit_orgunit_rights',0); +delete from db_tabellen where name='kern_pruefrout'; +insert into db_tabellen (name,protokollierung) values('kern_pruefrout',0); +delete from db_tabellen where name='masken_statistik'; +insert into db_tabellen (name,protokollierung) values('masken_statistik',0); +delete from db_tabellen where name='dim_datum'; +insert into db_tabellen (name,protokollierung) values('dim_datum',0); +delete from db_tabellen where name='hisinone_deleted_entity'; +insert into db_tabellen (name,protokollierung) values('hisinone_deleted_entity',0); +delete from db_tabellen where name='etl_step'; +insert into db_tabellen (name,protokollierung) values('etl_step',0); +delete from db_tabellen where name='etl_step_type'; +insert into db_tabellen (name,protokollierung) values('etl_step_type',0); +delete from db_tabellen where name='etl_step_type_param'; +insert into db_tabellen (name,protokollierung) values('etl_step_type_param',0); +delete from db_tabellen where name='etl_step_property'; +insert into db_tabellen (name,protokollierung) values('etl_step_property',0); +delete from db_tabellen where name='etl_step_relation'; +insert into db_tabellen (name,protokollierung) values('etl_step_relation',0); +delete from db_tabellen where name='etl_job'; +insert into db_tabellen (name,protokollierung) values('etl_job',0); +delete from db_tabellen where name='etl_job_param'; +insert into db_tabellen (name,protokollierung) values('etl_job_param',0); +delete from db_tabellen where name='k_astat_studienfach_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach_land',0); +delete from db_tabellen where name='k_astat_abschluss3steller_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss3steller_land',0); +delete from db_tabellen where name='k_astat_abschluss2steller'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss2steller',0); +delete from db_tabellen where name='k_astat_studienbereich'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienbereich',0); +delete from db_tabellen where name='k_astat_studienfach'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach',0); +delete from db_tabellen where name='colorscheme'; +insert into db_tabellen (name,protokollierung) values('colorscheme',0); delete from db_tabellen where name='sx_mail'; insert into db_tabellen (name,protokollierung) values('sx_mail',0); --- Fülle sachgebiete, systeminfo und themenbaum +select now(),'Fülle sachgebiete, systeminfo und themenbaum' +from xdummy; + --Das Sachgebiet wird erzeugt, ggf. vorherige Sachgebiete sichern. -delete from sachgebiete where tid=0; -insert into sachgebiete(tid,name) values (0,'Administration'); --- den admins die Rechte geben -delete from group_sachgeb_bez where sachgebiete_id=0; + +insert into sachgebiete(tid,name) select 0,'Administration' +from xdummy +where 0=(select count(*) from sachgebiete S where S.tid=0); insert into group_sachgeb_bez -select G.tid,0 from groupinfo G where G.name='Administratoren' or G.name='superx' ; +select G.tid,0 from groupinfo G +where (G.name='Administratoren' or G.name='superx') +and 0=(select count(*) from group_sachgeb_bez G where G.sachgebiete_id=0); -- his1 rightname fuer Sachgebiete nachtragen @@ -242,12 +294,17 @@ update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_OU]' where update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_USERINFO]' where tid=53; update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_LOAD]' where tid=54; - -- wird auch noch mal als template aufgerufen in sx_tables_fuellen.sql vergl. http://ics/ilias3/goto.php?target=wiki_40_SingleSignOn-Rechteuebernahme&client_id=memtext --Das system wird erzeugt, ggf. vorherige systeme sichern. -delete from systeminfo where tid=9; -insert into systeminfo(tid,name,datum) values (9,'Administration',date('1.1.1900')); + -- wird auch noch mal als template aufgerufen in sx_tables_fuellen.sql --Das system wird erzeugt, ggf. vorherige systeme sichern. + +insert into systeminfo(tid,name,datum) select 9,'Administration',date('1.1.1900') +from xdummy +where 0=(select count(*) from systeminfo S where S.tid=9); + + +select now(),'Das Thema und die Masken in den Themenbaum einfügen' +from xdummy; --- Das Thema und die Masken in den Themenbaum einfügen --Das Thema und die Masken in den Themenbaum einfügen --zunaechst werden die Eintraege in den themenbaum_bak eingefuegt, default ist parent=themenbaum_root @@ -278,7 +335,9 @@ create temp table tmp_themenbaum --- root für das Modul einfügen und in den Themenbaum einhängen: +select now(),'root für das Modul einfügen und in den Themenbaum einhängen:' +from xdummy; + insert into tmp_themenbaum ( tid,name, gueltig_seit,gueltig_bis ) @@ -333,6 +392,18 @@ insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuteru --gibt es das Thema schon? delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Benutzer' or T.name='Administration'); +insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuterung) + values('Entwicklung','Administration','01.01.1900','01.01.3000','Spezielle Funktionen für die Entwicklung'); + +--gibt es das Thema schon? +delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Entwicklung' +or T.name='Administration'); +insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuterung) + values('Stammdaten verwalten','Administration','01.01.1900','01.01.3000','Abfragen zur Stammdatenverwaltung'); + +--gibt es das Thema schon? +delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Stammdaten verwalten' +or T.name='Administration'); --root für das Modul einfügen und in den Themenbaum einhängen --update themenbaum_bak set parent=(select tid from themenbaum where parent is null) @@ -346,7 +417,9 @@ or T.name='Administration'); --Nun die einzelnen Masken --- Nun die einzelnen Masken: +select now(),'Nun die einzelnen Masken:' +from xdummy; + insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, @@ -390,12 +463,6 @@ insert into tmp_themenbaum gueltig_bis) values('Feld suchen','70570','Felder','01.01.1900','01.01.3000'); -insert into tmp_themenbaum -( name ,maskeninfo_id, parentname, - gueltig_seit , - gueltig_bis) -values('User einrichten','70970','Benutzer verwalten','01.01.1900','01.01.3000'); - insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , @@ -448,7 +515,7 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Institution suchen','71080','Administration','01.01.1900','01.01.3000'); +values('Organisationseinheiten suchen','71080','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, @@ -508,7 +575,7 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Entladeparameter suchen','71260','Administration','01.01.1900','01.01.3000'); +values('Entladeparameter bearbeiten','71260','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, @@ -570,12 +637,24 @@ insert into tmp_themenbaum gueltig_bis) values('Bericht Gruppenrahmen','71440','Benutzerinfo verwalten','01.01.1900','01.01.3000'); +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Organigrammquelle bearbeiten','71480','Administration','01.01.1900','01.01.3000'); + insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) values('Konstanten bearbeiten','71500','Administration','01.01.1900','01.01.3000'); +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Datensieb erstellen','71520','Administration','01.01.1900','01.01.3000'); + insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , @@ -592,19 +671,39 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Datenanalyse Würfel entwerfen','71580','Masken verwalten','01.01.1900','01.01.3000'); +values('Stammdatenverwaltung','71620','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Stammdatenverwaltung','71620','Administration','01.01.1900','01.01.3000'); +values('OrgUnitTests','71640','Entwicklung','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Prüfprotokoll Administration','71660','Administration','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Nutzungsstatistik - Berichte','71680','Administration','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Gastzugang einrichten','71770','Administration','01.01.1900','01.01.3000'); --gibt es die Maske schon? delete from tmp_themenbaum where maskeninfo_id in (select T.maskeninfo_id from themenbaum T); --- Die einzelnen Masken sind eingefügt. +select now(),'Die einzelnen Masken sind eingefügt.' +from xdummy; + insert into tmp_themenbaum2 select * from tmp_themenbaum; @@ -629,9 +728,13 @@ update themenbaum set erlaeuterung='Abfragen zur Maskenverwaltung' where name='M update themenbaum set erlaeuterung='Uploads/Downloads verwalten' where name='Uploads/Downloads verwalten'; update themenbaum set erlaeuterung='Abfragen zur Feld-Verwaltung' where name='Felder'; update themenbaum set erlaeuterung='Benutzereinstellungen (Passwort ändern etc.)' where name='Benutzer'; +update themenbaum set erlaeuterung='Spezielle Funktionen für die Entwicklung' where name='Entwicklung'; +update themenbaum set erlaeuterung='Abfragen zur Stammdatenverwaltung' where name='Stammdaten verwalten'; + +select now(),'db_forms einfügen' +from xdummy; --- db_forms einfügen CREATE temp TABLE tmp_db_forms ( tid serial NOT NULL, @@ -642,109 +745,115 @@ CREATE temp TABLE tmp_db_forms ( description character(255) ); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten','In diesem Formular können Sie Sachgebiete verwalten.'); +values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Sachgebiete verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten'::varchar(200),'In diesem Formular können Sie XSL-Stylesheets verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten'::varchar(200),'In diesem Formular können Sie Organisationseinheiten verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten'::varchar(200),'In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten','In diesem Formular können Sie XSL-Stylesheets verwalten.'); +values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten'::varchar(200),'In diesem Formular können Sie Maskendefinitionen verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten','In diesem Formular können Sie Institutionen verwalten.'); +values ('macro_feld_wert_list','macro_feld_wert','/edit/kern/macro_feld_wert_list.jsp','Feld-Vorbelegung von Makro-Masken'::varchar(200),'In diesem Formular können Sie Feld-Vorbelegung von Makro-Masken verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten','In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'); +values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten'::varchar(200),'In diesem Formular können Sie Felder verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten','In diesem Formular können Sie Masken verwalten.'); +values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten'::varchar(200),'In diesem Formular können Sie Quellsysteme verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten','In diesem Formular können Sie Felder verwalten.'); +values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten','In diesem Formular können Sie Quellsysteme verwalten.'); +values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten'::varchar(200),'In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten','In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten','In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'); +values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum'::varchar(200),'In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten'::varchar(200),'In diesem Formular können Sie Sichten auf das Organigramm verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum','In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete'::varchar(200),'In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten','In diesem Formular können Sie Sichten auf das Organigramm verwalten.'); +values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder'::varchar(200),'In diesem Formular können Sie Felder zu Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete','In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'); +values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme'::varchar(200),'In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder','In diesem Formular können Sie Felder zu Masken zuordnen.'); +values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme','In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'); +values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros (Einzelbearbeitung)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten'::varchar(200),'In diesem Formular können Sie Konstanten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros (Liste)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten','In diesem Formular können Sie Konstanten verwalten.'); +values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo'::varchar(200),'In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten',''); +values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete'::varchar(200),'In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo','In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete','In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten','In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen'::varchar(200),'In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten','In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen','In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'); +values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten','In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten','In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads'::varchar(200),'In diesem Formular können Sie Downloads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte'::varchar(200),'In diesem Formular können Sie Stichworte bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads','In diesem Formular können Sie Downloads bearbeiten. '); +values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte','In diesem Formular können Sie Stichworte bearbeiten. '); +values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten','In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '); +values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten','In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '); +values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten',''); +values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads'::varchar(200),'In diesem Formular können Sie Uploads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads','In diesem Formular können Sie Uploads bearbeiten. '); +values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections'::varchar(200),'In diesem Formular können Sie DB Connections bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets'::varchar(200),'In diesem Formular können Sie Portlets bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections','In diesem Formular können Sie DB Connections bearbeiten.'); +values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets','In diesem Formular können Sie Portlets bearbeiten.'); +values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm'::varchar(200),'In diesem Formular können Sie das Organigramm aufrufen'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('sx_stylesheet_param_edit','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_edit.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm','In diesem Formular können Sie das Organigramm aufrufen'); +values ('sx_stylesheet_param_list','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_list.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); create temp table tmp_hilf(tid integer); insert into tmp_hilf select max(tid) from db_forms; diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_upgrade2_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_upgrade2_ids.xml index 06b207a..79e744e 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_upgrade2_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_install/edustore_kern_upgrade2_ids.xml @@ -3,6 +3,9 @@ + + + @@ -11,31 +14,66 @@ -eduetl:create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; +eduetl:create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; eduetl:CREATE TABLE tmp_menu_element ( id integer NOT NULL, element character(255), element_value character(255), description character(255), nature character(255), annotation character(255) ); -eduetl:create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); +eduetl:create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); -eduetl:create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); +eduetl:create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); eduetl:delete from tmp_templates; - + eduetl:delete from tmp_captions; +eduetl:delete from k_astat_studienfach_land; + +eduetl:delete from k_astat_abschluss3steller_land; + +eduetl:delete from k_astat_abschluss2steller; + +eduetl:delete from k_astat_studienfach; + +eduetl:delete from k_astat_studienbereich; + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -85,11 +123,11 @@ eduetl:alter table sx_fields modify (is_primarykey integer default 0); -eduetl:create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); +eduetl:create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); -eduetl:create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; +eduetl:create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; -eduetl:create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; +eduetl:create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; eduetl:delete from tmp_cifx_load; @@ -101,22 +139,22 @@ - + - + - + - + @@ -160,16 +198,27 @@ -eduetl:UPDATE db_version SET version = '4.9' +eduetl:delete from dim_datum; + + + + + + +eduetl:delete from aggre_bland; + + + + + + +eduetl:UPDATE db_version SET version = '5.0' WHERE his_system = 'kern'; - - - diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_load_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_load_ids.xml index 3ded7e7..f6213ca 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_load_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_load_ids.xml @@ -1,333 +1,15 @@ -eduetl:CREATE TABLE tmp_userinfo (tid integer, benutzer char(30), kennwort char(16), name char(50), max_versuch smallint, akt_versuch smallint, email char(255), administration smallint, archiv_recht smallint, passwd_sha char(40), info char(255), extern_account_id varchar(255), extern_person_id varchar(255),sieht_projekte SMALLINT); + + -eduetl:CREATE TABLE tmp_user_group_bez (userinfo_id integer, groupinfo_id integer, external_entry smallint); - -eduetl:CREATE TABLE tmp_user_institution (userid integer, name char(50), ch110_institut char(10), hierarchie smallint, gueltig_seit date, gueltig_bis date, lehre smallint, external_entry smallint, externalid varchar(200)); - -eduetl:CREATE TABLE tmp_user_masken_bez (userinfo_id integer, maskeninfo_id integer, external_entry smallint); - -eduetl:CREATE TABLE tmp_user_pw (userinfo_id integer, pw_gueltig_bis date, last_login datetime year to second, old_sha1 char(40), zeitpunkt1 datetime year to second, old_sha2 char(40), zeitpunkt2 datetime year to second, old_sha3 char(40), zeitpunkt3 datetime year to second, old_sha4 char(40), zeitpunkt4 datetime year to second, old_sha5 char(40), zeitpunkt5 datetime year to second, old_sha6 char(40), zeitpunkt6 datetime year to second, old_sha7 char(40), zeitpunkt7 datetime year to second); - -eduetl:CREATE TABLE tmp_user_sachgeb_bez (userinfo_id integer, sachgebiete_id integer, external_entry smallint); - -eduetl:CREATE TABLE tmp_user_sichtarten (userinfo_id integer, sichtart char(255), external_entry smallint); - -eduetl:CREATE TABLE tmp_user_sichten (userinfo_id integer, sicht_name_intern char(200), external_entry smallint); - -eduetl:CREATE TABLE tmp_group_field_pref (tid integer, groupinfo_id integer, field_id integer, pref varchar(255)); - -eduetl:CREATE TABLE tmp_group_masken_bez (groupinfo_id integer, maskeninfo_id integer); - -eduetl:CREATE TABLE tmp_group_sachgeb_bez (groupinfo_id integer, sachgebiete_id integer); - -eduetl:CREATE TABLE tmp_group_sichtarten (groupinfo_id integer, sichtart char(255)); - -eduetl:CREATE TABLE tmp_group_sichten (groupinfo_id integer, sicht_name_intern char(200)); - -eduetl:CREATE TABLE tmp_groupinfo (tid integer, name char(255)); - -eduetl:CREATE TABLE tmp_fin_user_kam (tid integer, userid integer, buchungsab_fb char(10), projnr_ins char(255), kapitel char(5), dr char(5), titel char(255), untertitel char(5), kostenstellen char(255), ins2 char(10), ins3 char(10), gueltig_von date, gueltig_bis date); - -eduetl:create table tmp_hochschulinfo (name char(100), adresse char(200), hs_nr integer, kapitel char(5), superx_server char(100), kennung char(8), passwd char(16) ); - -eduetl:CREATE TABLE tmp_konstanten (tid integer, apnr integer, beschreibung char(25)); - -eduetl:CREATE TABLE tmp_unload_params (tid integer, param_id varchar(255), param_val varchar(255), default_val varchar(255), description varchar(255), systeminfo_id integer); - -eduetl:CREATE TABLE tmp_sx_repository (tid integer, id char(200), content text, caption char(200), comment text, version smallint, art char(200), art2 char(200), art3 char(200), sachgebiete_id integer, sort1 integer, sort2 integer, sort3 integer, geaendert_am date, aktiv smallint, gueltig_seit date, gueltig_bis date); - -eduetl:CREATE TABLE tmp_themenbaum (tid integer, name varchar(255), maskeninfo_id integer, parent integer, gueltig_seit date, gueltig_bis date, erlaeuterung char(240), sort integer, css_class character varying(255)); - -eduetl:CREATE TABLE tmp_maskeninfo (tid integer, name char(255), select_stmt text, xil_proplist text, chart_xtitel char(50), chart_ytitel char(50), erlaeuterung char(255), cleanup_stmt char(240), default_file char(200), macro smallint, breite integer, hoehe integer, ampel smallint, hilfe smallint, hinweis text); - -eduetl:CREATE TABLE tmp_felderinfo (tid integer, name char(50), nummer integer, x integer, y integer, buttonbreite integer, feldbreite integer, zeilenanzahl integer, typ char(15), laenge integer, obligatorisch integer, art integer, relation text, attribut char(100), defaultwert char(255)); - -eduetl:CREATE TABLE tmp_masken_felder_bez (maskeninfo_id integer, felderinfo_id integer); - -eduetl:CREATE TABLE tmp_maske_system_bez (maskeninfo_id integer, systeminfo_id integer); - -eduetl:CREATE TABLE tmp_sachgeb_maske_bez (sachgebiete_id integer, maskeninfo_id integer); - -eduetl:CREATE TABLE tmp_sx_stylesheets (tid integer, filename char(255), caption char(255), description char(255), relation char(10), useragent char(255), contenttype char(200)); - -eduetl:CREATE TABLE tmp_sx_mask_style (tid integer, maskeninfo_id integer, stylesheet_id integer, ord smallint); - -eduetl:CREATE TABLE tmp_stylesheet_field (tid integer, stylesheet_id integer, tablename varchar(255), fieldname varchar(255)); - -eduetl:CREATE TABLE tmp_macro_masken_bez (maskeninfo_id1 integer, maskeninfo_id2 integer, active integer, sortnr smallint, schleifenrelation char(255), schleifenfeldname char(255), alias char(255), schleifenfstand char(255), schleifenfsicht char(255), aktion char(255)); - -eduetl:CREATE TABLE tmp_macro_feld_wert (macro integer, sortnr integer, feldname char(255), alias char(255), value char(255), value_caption char(255), feldstand char(255), feldsicht char(255), active integer); - -eduetl:CREATE TABLE tmp_sx_captions (tid integer, id char(200), table_name char(200), field_name char(200), record_no integer, locale char(10), contents_short char(255), contents_long text, equalitystatus smallint, sachgebiete_id integer, doku_link varchar(255), export_to_glossar integer); - -eduetl:CREATE TABLE tmp_sichten (tid integer, parent char(255), systeminfoid integer, art char(40), type integer, name_intern char(200), name char(200), beschreibung char(255), sortnr integer, quelle char(255), alt_hier_id char(150), treecfgtable char(255), treecfgid char(150), label smallint, user_rechte smallint, rechtequelle char(255), sesamkey char(100), standbutton smallint, attribut1 char(255), attribut2 char(255), attribut3 integer, attribut4 integer, xmlmaxentries integer, gueltig_seit date, gueltig_bis date, cacheapplet char(255), cachexml char(255), aktiv smallint); - -eduetl:CREATE TABLE tmp_man_catalogue (tid integer NOT NULL, id character varying(100) NOT NULL, shortname character varying(255), name character varying(255), description text, timeunit character varying(3), decimalplaces smallint, sqlchunk text, linksub text, linktimeline text, restrictedgroupids character(255), ismanual smallint, requiredfields character varying(255), calcratio smallint, gueltig_von date, gueltig_bis date, cleanup text, preparation text, techdetails text, moreinfo text, attrib1 integer DEFAULT 0 NOT NULL, fld_semester character varying(255), fld_jahr character varying(255), fld_studiengang character varying(255), fld_institut character varying(255), fld_geschlecht character varying(255), fromclause character varying(255), whereclause text, aggrfunction character varying(255), cacheing integer DEFAULT 0 NOT NULL, linktable character varying(255), linkmask character varying(255)); - -eduetl:CREATE TABLE tmp_man_catalogue_rpt (tid integer, report_id varchar(40), catalogue_id varchar(100), description text, sortnr integer, sortnr2 integer, grouping1 char(40), grouping2 char(40), valid_from date, valid_till date, active smallint); - -eduetl:CREATE TABLE tmp_man_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), stg char(10), bund_fachgebiet char(10), wert numeric(14,2), geschlecht smallint, abschluss char(10), kz_fach char(10) ); - -eduetl:CREATE TABLE tmp_kenn_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), bund_fachgebiet char(10), wert numeric(14,2), titel char(10), wert_str varchar(255), geschlecht SMALLINT , ca12_staat SMALLINT); - - -eduetl:delete from tmp_hochschulinfo; - -eduetl:delete from tmp_userinfo; - -eduetl:delete from tmp_user_group_bez; - -eduetl:delete from tmp_user_institution; - -eduetl:delete from tmp_user_masken_bez; - -eduetl:delete from tmp_user_pw; - -eduetl:delete from tmp_user_sachgeb_bez; - -eduetl:delete from tmp_user_sichtarten; - -eduetl:delete from tmp_user_sichten; - -eduetl:delete from tmp_group_field_pref; - -eduetl:delete from tmp_group_masken_bez; - -eduetl:delete from tmp_group_sachgeb_bez; - -eduetl:delete from tmp_group_sichtarten; - -eduetl:delete from tmp_group_sichten; - -eduetl:delete from tmp_groupinfo; - -eduetl:delete from tmp_fin_user_kam; - -eduetl:delete from tmp_konstanten; - -eduetl:delete from tmp_unload_params; - -eduetl:delete from tmp_sx_repository; - -eduetl:delete from tmp_themenbaum; - -eduetl:delete from tmp_maskeninfo; - -eduetl:delete from tmp_felderinfo; - -eduetl:delete from tmp_masken_felder_bez; - -eduetl:delete from tmp_maske_system_bez; - -eduetl:delete from tmp_sachgeb_maske_bez; - -eduetl:delete from tmp_sx_stylesheets; - -eduetl:delete from tmp_sx_mask_style; - -eduetl:delete from tmp_stylesheet_field; - -eduetl:delete from tmp_macro_masken_bez; - -eduetl:delete from tmp_macro_feld_wert; - -eduetl:delete from tmp_sx_captions; - -eduetl:delete from tmp_sichten; - -eduetl:delete from tmp_man_catalogue; - -eduetl:delete from tmp_man_catalogue_rpt; - -eduetl:delete from tmp_man_zahl_wert; - -eduetl:delete from tmp_kenn_zahl_wert; - - - - - - - - - - - - - - - - - - - - + +eduetl:delete from kern_cifx_neu; - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_system_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_system_ids.xml index a752578..4ff1a87 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_system_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_system_ids.xml @@ -17,6 +17,12 @@ update systeminfo set datum=today() where 2007 > (select distinct year(datum) from tmp_datum) and name='Administration'; + +eduetl:insert into kern_pruefrout(datum,problem,aktion) select today(),'Datei superx.datum steht auf veraltetem Datum. Stellen Sie sicher, dass superx.datum auf den SuperX-Server kopiert wurde','Warnung' + from tmp_datum where year(datum) < 2007 + or datum is null; + + eduetl:drop table tmp_datum; diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_trans_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_trans_ids.xml index 6ca838c..5fd9c71 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_trans_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_trans_ids.xml @@ -1,5 +1,16 @@ - +eduetl:truncate table kern_pruefrout; + + + + + + + + + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_cob_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_cob_ids.xml new file mode 100644 index 0000000..06aaec6 --- /dev/null +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_cob_ids.xml @@ -0,0 +1,128 @@ + + + +--freemarker template +<sqlvars> +<sqlvar name="VERSION"> + +select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> +<sqlvar name="UNLOAD_USERRIGHTS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> +<sqlvar name="UNLOAD_FIN_USER_KAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> +<sqlvar name="UNLOAD_KONSTANTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> +<sqlvar name="UNLOAD_UNLOAD_PARAMS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> +<sqlvar name="UNLOAD_REPOSITORY"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> +<sqlvar name="UNLOAD_HOCHSCHULINFO"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> +<sqlvar name="UNLOAD_THEMENBAUM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> +<sqlvar name="UNLOAD_MASKEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> +<sqlvar name="UNLOAD_STYLESHEETS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> +<sqlvar name="UNLOAD_MAKROS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> +<sqlvar name="UNLOAD_CAPTIONS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> +<sqlvar name="UNLOAD_SICHTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> +<sqlvar name="UNLOAD_MAN_CATALOGUE"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> +<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> +<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> +<sqlvar name="COB_VONBIS_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_VONBIS_INST';</sqlvar> +<sqlvar name="COB_REL_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_REL_INST';</sqlvar> +<sqlvar name="JDBC_PARAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='JDBC_PARAM';</sqlvar> +<sqlvar name="SOURCESYSTEM"> +select param_val from unload_params where systeminfo_id=9 and param_id='SOURCESYSTEM';</sqlvar> +</sqlvars> + +<#if JDBC_PARAM?exists> +${JDBC_PARAM} +</#if> + +--Institut ohne Zeitbezug: +select 110,--key +0, --hs +inst_nr, +kname, +dname, +substring(lname1 from 1 for 100), +land_institut, --astat +uebinst_nr ,--parent +inst_nr,--uniquename +bund_fachgebiet,--bund_apnr +null::date, --key_von, +null::date, --key_bis, +inst_nr ,--sourcesystem_id +null::char(1),--hiskey_id +orgstruktur::char(10), --struktur_c +null::char(1), --lid, +null::char(1) , --parent_lid +null::integer as sortorder +FROM inst +where ( +('${COB_REL_INST}'='1' and cobrel='1') +or ('${COB_REL_INST}'='2' and migrel='1') +or '${COB_REL_INST}'='0') +and '${COB_VONBIS_INST}'='0' +union +--Institut mit Zeitbezug +select 110,--key +0, --hs +inst_nr, +kname, +dname, +substring(lname1 from 1 for 100), +land_institut, --astat +uebinst_nr ,--parent +inst_nr,--uniquename +bund_fachgebiet,--bund_apnr +key_von, +key_bis, +inst_nr ,--sourcesystem_id +null::char(1),--hiskey_id +orgstruktur::char(10), --struktur_c +null::char(1), --lid, +null::char(1) , --parent_lid +null::integer as sortorder +FROM inst +where( +('${COB_REL_INST}'='1' and cobrel='1') +or ('${COB_REL_INST}'='2' and migrel='1') +or '${COB_REL_INST}'='0') +and '${COB_VONBIS_INST}'='1' + + + + + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_eduetl_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_eduetl_ids.xml index 98b320e..e8a7c09 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_eduetl_ids.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_eduetl_ids.xml @@ -1,2630 +1,2 @@ - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select substring(trim(version) from 1 for 1) from db_version where his_system='kern'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -SELECT - name, - adresse, - hs_nr, - kapitel, - superx_server, - kennung, - passwd - FROM hochschulinfo where '${UNLOAD_HOCHSCHULINFO}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -SELECT - tid, - benutzer, - kennwort, - name, - max_versuch, - akt_versuch, - email, - administration, - archiv_recht, - passwd_sha, - info, - extern_account_id, - extern_person_id, - sieht_projekte - FROM userinfo where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - groupinfo_id, - external_entry - from user_group_bez where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userid, - name, - ch110_institut, - hierarchie, - gueltig_seit, - gueltig_bis, - lehre, - external_entry, - externalid - from user_institution where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - maskeninfo_id, - external_entry - from user_masken_bez where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - pw_gueltig_bis, - last_login, - old_sha1, - zeitpunkt1, - old_sha2, - zeitpunkt2, - old_sha3, - zeitpunkt3, - old_sha4, - zeitpunkt4, - old_sha5, - zeitpunkt5, - old_sha6, - zeitpunkt6, - old_sha7, - zeitpunkt7 - from user_pw where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - sachgebiete_id, - external_entry - from user_sachgeb_bez where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - sichtart, - external_entry - from user_sichtarten where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - userinfo_id, - sicht_name_intern, - external_entry - from user_sichten where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - groupinfo_id, - field_id, - pref - from group_field_pref where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - groupinfo_id, - maskeninfo_id - from group_masken_bez where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - groupinfo_id, - sachgebiete_id - from group_sachgeb_bez where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - groupinfo_id, - sichtart - from group_sichtarten where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - groupinfo_id, - sicht_name_intern - from group_sichten where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - name - from groupinfo where '${UNLOAD_USERRIGHTS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - userid, - buchungsab_fb, - projnr_ins, - kapitel, - dr, - titel, - untertitel, - kostenstellen, - ins2, - ins3, - gueltig_von, - gueltig_bis - from fin_user_kam where '${UNLOAD_FIN_USER_KAM}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - apnr, - beschreibung - from konstanten where '${UNLOAD_KONSTANTEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - param_id, - param_val, - default_val, - description, - systeminfo_id - from unload_params where '${UNLOAD_UNLOAD_PARAMS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - id, - content, - caption, - COMMENT, - version, - art, - art2, - art3, - sachgebiete_id, - sort1, - sort2, - sort3, - geaendert_am, - aktiv, - gueltig_seit, - gueltig_bis - from sx_repository where '${UNLOAD_REPOSITORY}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - name, - maskeninfo_id, - parent, - gueltig_seit, - gueltig_bis, - erlaeuterung, - sort, - css_class - from themenbaum where '${UNLOAD_THEMENBAUM}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - name, - select_stmt, - xil_proplist, - chart_xtitel, - chart_ytitel, - erlaeuterung, - cleanup_stmt, - default_file, - macro, - breite, - hoehe, - ampel, - hilfe, - hinweis - from maskeninfo where '${UNLOAD_MASKEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - name, - nummer, - x, - y, - buttonbreite, - feldbreite, - zeilenanzahl, - typ, - laenge, - obligatorisch, - art, - relation, - attribut, - defaultwert - from felderinfo where '${UNLOAD_MASKEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - maskeninfo_id, - felderinfo_id - from masken_felder_bez where '${UNLOAD_MASKEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - maskeninfo_id, - systeminfo_id - from maske_system_bez where '${UNLOAD_MASKEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - sachgebiete_id, - maskeninfo_id - from sachgeb_maske_bez where '${UNLOAD_MASKEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - filename, - caption, - description, - relation, - useragent, - contenttype - from sx_stylesheets where '${UNLOAD_STYLESHEETS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - maskeninfo_id, - stylesheet_id, - ord - from sx_mask_style where '${UNLOAD_STYLESHEETS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - stylesheet_id, - tablename, - fieldname - from stylesheet_field where '${UNLOAD_STYLESHEETS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - maskeninfo_id1, - maskeninfo_id2, - active, - sortnr, - schleifenrelation, - schleifenfeldname, - alias, - schleifenfstand, - schleifenfsicht, - aktion - from macro_masken_bez where '${UNLOAD_MAKROS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - macro, - sortnr, - feldname, - ALIAS, - value, - value_caption, - feldstand, - feldsicht, - active - from macro_feld_wert where '${UNLOAD_MAKROS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - id, - table_name, - field_name, - record_no, - locale, - contents_short, - contents_long, - equalitystatus, - sachgebiete_id, - doku_link, - export_to_glossar - from sx_captions where '${UNLOAD_CAPTIONS}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - parent, - systeminfoid, - art, - type, - name_intern, - name, - beschreibung, - sortnr, - quelle, - alt_hier_id, - treecfgtable, - treecfgid, - label, - user_rechte, - rechtequelle, - sesamkey, - standbutton, - attribut1, - attribut2, - attribut3, - attribut4, - xmlmaxentries, - gueltig_seit, - gueltig_bis, - cacheapplet, - cachexml, - aktiv - from sichten where '${UNLOAD_SICHTEN}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - id, - shortname, - name, - description, - timeunit, - decimalplaces, - sqlchunk, - linksub, - linktimeline, - restrictedgroupids, - ismanual, - requiredfields, - calcratio, - gueltig_von, - gueltig_bis, - cleanup, - preparation, - techdetails, - moreinfo, - attrib1, - fld_semester, - fld_jahr, - fld_studiengang, - fld_institut, - fld_geschlecht, - fromclause, - whereclause, - aggrfunction, - cacheing, - linktable, - linkmask - from man_catalogue where '${UNLOAD_MAN_CATALOGUE}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - report_id, - catalogue_id, - description, - sortnr, - sortnr2, - grouping1, - grouping2, - valid_from, - valid_till, - active - from man_catalogue_rpt where '${UNLOAD_MAN_CATALOGUE}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - hs_nr, - kenn_zahl, - jahr, - sem, - ch110_institut, - stugkey, - stg, - bund_fachgebiet, - wert, - geschlecht - from man_zahl_wert where '${UNLOAD_MAN_ZAHL_WERT}'='true'; - - - - - - - - ---freemarker template -<sqlvars> -<sqlvar name="VERSION"> - -select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> -<sqlvar name="UNLOAD_USERRIGHTS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> -<sqlvar name="UNLOAD_FIN_USER_KAM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> -<sqlvar name="UNLOAD_KONSTANTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> -<sqlvar name="UNLOAD_UNLOAD_PARAMS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> -<sqlvar name="UNLOAD_REPOSITORY"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> -<sqlvar name="UNLOAD_HOCHSCHULINFO"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> -<sqlvar name="UNLOAD_THEMENBAUM"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> -<sqlvar name="UNLOAD_MASKEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> -<sqlvar name="UNLOAD_STYLESHEETS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> -<sqlvar name="UNLOAD_MAKROS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> -<sqlvar name="UNLOAD_CAPTIONS"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> -<sqlvar name="UNLOAD_SICHTEN"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> -<sqlvar name="UNLOAD_MAN_CATALOGUE"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> -<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> -<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> - -select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> -</sqlvars> - - -select - tid, - hs_nr, - kenn_zahl, - jahr, - sem, - ch110_institut, - stugkey, - bund_fachgebiet, - wert, - titel, - wert_str - from kenn_zahl_wert where '${UNLOAD_KENN_ZAHL_WERT}'='true'; - - - - - - + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_hisinone_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_hisinone_ids.xml new file mode 100644 index 0000000..a85685a --- /dev/null +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_hisinone_ids.xml @@ -0,0 +1,412 @@ + + + +--freemarker template +<sqlvars> +<sqlvar name="VERSION"> + +select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> +<sqlvar name="UNLOAD_USERRIGHTS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> +<sqlvar name="UNLOAD_FIN_USER_KAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> +<sqlvar name="UNLOAD_KONSTANTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> +<sqlvar name="UNLOAD_UNLOAD_PARAMS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> +<sqlvar name="UNLOAD_REPOSITORY"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> +<sqlvar name="UNLOAD_HOCHSCHULINFO"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> +<sqlvar name="UNLOAD_THEMENBAUM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> +<sqlvar name="UNLOAD_MASKEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> +<sqlvar name="UNLOAD_STYLESHEETS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> +<sqlvar name="UNLOAD_MAKROS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> +<sqlvar name="UNLOAD_CAPTIONS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> +<sqlvar name="UNLOAD_SICHTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> +<sqlvar name="UNLOAD_MAN_CATALOGUE"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> +<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> +<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> +<sqlvar name="COB_VONBIS_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_VONBIS_INST';</sqlvar> +<sqlvar name="COB_REL_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_REL_INST';</sqlvar> +<sqlvar name="JDBC_PARAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='JDBC_PARAM';</sqlvar> +<sqlvar name="SOURCESYSTEM"> +select param_val from unload_params where systeminfo_id=9 and param_id='SOURCESYSTEM';</sqlvar> +</sqlvars> + +<#if JDBC_PARAM?exists> +${JDBC_PARAM} +</#if> + + + + DROP TABLE IF EXISTS tmp_orgunit; + + CREATE TABLE tmp_orgunit ( + id integer NOT NULL, + lid integer NOT NULL, + k_orgunittype_id integer, + valid_from date, + valid_to date, + astat character varying, + companynumber character varying, + description text, + shorttext character varying, + defaulttext character varying NOT NULL, + longtext character varying, + sortorder integer, + k_language_id integer NOT NULL, + parent_lid integer, + uniquename character varying, + obj_guid character varying, + lock_version integer, + parent_id integer, + cost_center_id integer, + subject_area_k_subject_area_id integer, + k_astat_orgunit_category_id integer +); +insert into tmp_orgunit(id, + lid, + k_orgunittype_id, + valid_from, + valid_to, + astat, + companynumber, + description, + shorttext, + defaulttext, + longtext, + sortorder, + k_language_id, + parent_lid, + uniquename, + subject_area_k_subject_area_id , + k_astat_orgunit_category_id , + obj_guid, + lock_version + ) + select + o.id, + o.lid, + o.k_orgunittype_id, + o.valid_from, + o.valid_to, + o.astat, + o.companynumber, + o.description, + o.shorttext, + o.defaulttext, + o.longtext, + o.sortorder, + o.k_language_id, + o.parent_lid, + o.uniquename, + osa.k_subject_area_id , + o.k_astat_orgunit_category_id , + o.obj_guid, + o.lock_version + from orgunit o left join orgunit_subject_area osa + on o.lid = osa.orgunit_lid; + +update tmp_orgunit set parent_id=(select min(O.id) from orgunit O +where tmp_orgunit.parent_lid=O.lid + and (tmp_orgunit.valid_from >=O.valid_from + or (tmp_orgunit.valid_from is null and O.valid_from is null)) + and (tmp_orgunit.valid_to <=O.valid_to + or (tmp_orgunit.valid_to is null and O.valid_to is null)) + ); +update tmp_orgunit set cost_center_id=(select min(C.id) from cost_center C +where tmp_orgunit.lid=C.orgunit_lid); + + + + + + + + + + + + +--freemarker template +<sqlvars> +<sqlvar name="VERSION"> + +select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> +<sqlvar name="UNLOAD_USERRIGHTS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> +<sqlvar name="UNLOAD_FIN_USER_KAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> +<sqlvar name="UNLOAD_KONSTANTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> +<sqlvar name="UNLOAD_UNLOAD_PARAMS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> +<sqlvar name="UNLOAD_REPOSITORY"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> +<sqlvar name="UNLOAD_HOCHSCHULINFO"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> +<sqlvar name="UNLOAD_THEMENBAUM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> +<sqlvar name="UNLOAD_MASKEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> +<sqlvar name="UNLOAD_STYLESHEETS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> +<sqlvar name="UNLOAD_MAKROS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> +<sqlvar name="UNLOAD_CAPTIONS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> +<sqlvar name="UNLOAD_SICHTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> +<sqlvar name="UNLOAD_MAN_CATALOGUE"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> +<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> +<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> +<sqlvar name="COB_VONBIS_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_VONBIS_INST';</sqlvar> +<sqlvar name="COB_REL_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_REL_INST';</sqlvar> +<sqlvar name="JDBC_PARAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='JDBC_PARAM';</sqlvar> +<sqlvar name="SOURCESYSTEM"> +select param_val from unload_params where systeminfo_id=9 and param_id='SOURCESYSTEM';</sqlvar> +</sqlvars> + +<#if JDBC_PARAM?exists> +${JDBC_PARAM} +</#if> + +--Merkmal Institution: zuerst FBs, dann LE, dann Institut,dann alle anderen +--Fachbereiche +SELECT + 110 , + 0,--hs + '' || O.id, + substring(O.shorttext from 1 for 10), + substring(O.defaulttext from 1 for 100), + substring(O.longtext from 1 for 150), +substring(O.astat from 1 for 10), +O.parent_id, +replace(O.uniquename,',',''), --uniquename +'' || O.subject_area_k_subject_area_id,--bund_apnr +valid_from, +valid_to, +O.id, --sourcesystem_id +'' || O.k_astat_orgunit_category_id,--hiskey_id +20::char(5), --orgstruktur , struktur_c +lid::char(255), +parent_lid::char(255), +null::integer as sortorder +FROM k_orgunittype T,tmp_orgunit O + where + O.k_orgunittype_id=T.id + and T.hiskey_id=4 --Fachbereich + union + --Lehreinheiten +SELECT + 110 , + 0,--hs + '' || O.id, + substring(O.shorttext from 1 for 10), + substring(O.defaulttext from 1 for 100), + substring(O.longtext from 1 for 150), +substring(O.astat from 1 for 10), +O.parent_id, +replace(O.uniquename,',',''), --uniquename +'' || O.subject_area_k_subject_area_id,--bund_apnr +valid_from, +valid_to, +O.id, --sourcesystem_id +'' || O.k_astat_orgunit_category_id,--hiskey_id +30::char(5), --orgstruktur , struktur_c +lid::char(255), +parent_lid::char(255), +null::integer as sortorder + FROM k_orgunittype T,tmp_orgunit O + where + O.k_orgunittype_id=T.id + + and T.hiskey_id=7 --Lehreinheit + union + --Institut +SELECT + 110 , + 0,--hs + '' || O.id, + substring(O.shorttext from 1 for 10), + substring(O.defaulttext from 1 for 100), + substring(O.longtext from 1 for 150), +substring(O.astat from 1 for 10), +O.parent_id, +replace(O.uniquename,',',''), --uniquename +'' || O.subject_area_k_subject_area_id,--bund_apnr +valid_from, +valid_to, +O.id, --sourcesystem_id +'' || O.k_astat_orgunit_category_id,--hiskey_id +40::char(5), --orgstruktur , struktur_c +lid::char(255), +parent_lid::char(255), +null::integer as sortorder + FROM k_orgunittype T,tmp_orgunit O + where + O.k_orgunittype_id=T.id + and T.hiskey_id=5 --Institut + union + --alle anderen Inst.-Typen +SELECT + + 110 , + 0,--hs + '' || O.id, + substring(O.shorttext from 1 for 10), + substring(O.defaulttext from 1 for 100), + substring(O.longtext from 1 for 150), +substring(O.astat from 1 for 10), +O.parent_id, +replace(O.uniquename,',','') , --uniquename +'' || O.subject_area_k_subject_area_id,--bund_apnr +valid_from, +valid_to, +O.id, --sourcesystem_id +'' || O.k_astat_orgunit_category_id,--hiskey_id +null::char(50), --orgstruktur , struktur_c +lid::char(255), +parent_lid::char(255), +null::integer as sortorder + FROM tmp_orgunit O left outer join k_orgunittype T + on(O.k_orgunittype_id=T.id) + where (T.hiskey_id is null or T.hiskey_id not in (4,7,5)) --Fachbereich, LE, Inst. + + + + + + + + +--freemarker template +<sqlvars> +<sqlvar name="VERSION"> + +select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> +<sqlvar name="UNLOAD_USERRIGHTS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> +<sqlvar name="UNLOAD_FIN_USER_KAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> +<sqlvar name="UNLOAD_KONSTANTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> +<sqlvar name="UNLOAD_UNLOAD_PARAMS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> +<sqlvar name="UNLOAD_REPOSITORY"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> +<sqlvar name="UNLOAD_HOCHSCHULINFO"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> +<sqlvar name="UNLOAD_THEMENBAUM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> +<sqlvar name="UNLOAD_MASKEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> +<sqlvar name="UNLOAD_STYLESHEETS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> +<sqlvar name="UNLOAD_MAKROS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> +<sqlvar name="UNLOAD_CAPTIONS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> +<sqlvar name="UNLOAD_SICHTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> +<sqlvar name="UNLOAD_MAN_CATALOGUE"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> +<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> +<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> +<sqlvar name="COB_VONBIS_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_VONBIS_INST';</sqlvar> +<sqlvar name="COB_REL_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_REL_INST';</sqlvar> +<sqlvar name="JDBC_PARAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='JDBC_PARAM';</sqlvar> +<sqlvar name="SOURCESYSTEM"> +select param_val from unload_params where systeminfo_id=9 and param_id='SOURCESYSTEM';</sqlvar> +</sqlvars> + +<#if JDBC_PARAM?exists> +${JDBC_PARAM} +</#if> + + +drop table tmp_orgunit; + + + + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_mbs_ids.xml b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_mbs_ids.xml new file mode 100644 index 0000000..0dffbcf --- /dev/null +++ b/superx/WEB-INF/conf/edustore/db/install/conf/his1/edustore_update/edustore_kern_unload_mbs_ids.xml @@ -0,0 +1,95 @@ + + + +--freemarker template +<sqlvars> +<sqlvar name="VERSION"> + +select param_val from unload_params where systeminfo_id=9 and param_id='VERSION';</sqlvar> +<sqlvar name="UNLOAD_USERRIGHTS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_USERRIGHTS';</sqlvar> +<sqlvar name="UNLOAD_FIN_USER_KAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_FIN_USER_KAM';</sqlvar> +<sqlvar name="UNLOAD_KONSTANTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KONSTANTEN';</sqlvar> +<sqlvar name="UNLOAD_UNLOAD_PARAMS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_UNLOAD_PARAMS';</sqlvar> +<sqlvar name="UNLOAD_REPOSITORY"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_REPOSITORY';</sqlvar> +<sqlvar name="UNLOAD_HOCHSCHULINFO"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_HOCHSCHULINFO';</sqlvar> +<sqlvar name="UNLOAD_THEMENBAUM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_THEMENBAUM';</sqlvar> +<sqlvar name="UNLOAD_MASKEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MASKEN';</sqlvar> +<sqlvar name="UNLOAD_STYLESHEETS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_STYLESHEETS';</sqlvar> +<sqlvar name="UNLOAD_MAKROS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAKROS';</sqlvar> +<sqlvar name="UNLOAD_CAPTIONS"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_CAPTIONS';</sqlvar> +<sqlvar name="UNLOAD_SICHTEN"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_SICHTEN';</sqlvar> +<sqlvar name="UNLOAD_MAN_CATALOGUE"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_CATALOGUE';</sqlvar> +<sqlvar name="UNLOAD_MAN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_MAN_ZAHL_WERT';</sqlvar> +<sqlvar name="UNLOAD_KENN_ZAHL_WERT"> + +select param_val from unload_params where systeminfo_id=9 and param_id='UNLOAD_KENN_ZAHL_WERT';</sqlvar> +<sqlvar name="COB_VONBIS_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_VONBIS_INST';</sqlvar> +<sqlvar name="COB_REL_INST"> + +select param_val from unload_params where systeminfo_id=9 and param_id='COB_REL_INST';</sqlvar> +<sqlvar name="JDBC_PARAM"> + +select param_val from unload_params where systeminfo_id=9 and param_id='JDBC_PARAM';</sqlvar> +<sqlvar name="SOURCESYSTEM"> +select param_val from unload_params where systeminfo_id=9 and param_id='SOURCESYSTEM';</sqlvar> +</sqlvars> + +<#if JDBC_PARAM?exists> +${JDBC_PARAM} +</#if> + + SELECT 110 ,0, + inst_nr, +kname, + dname, +substring(lname1 from 1 for 100), +null::char(1), --land_institut, --astat +uebinst_nr, +inst_nr,--uniquename +bund_fachgebiet, + key_von, + key_bis, +inst_nr, --sourcesystem_id +null::char(1),--hiskey_id +orgstruktur::char(10), --struktur_c +null::char(1), --lid, +null::char(1) , --parent_lid +null::integer as sortorder +FROM inst +where mbsrel='1' + + + + + + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/kern.html b/superx/WEB-INF/conf/edustore/db/install/conf/kern.html index 7188903..e405bad 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/kern.html +++ b/superx/WEB-INF/conf/edustore/db/install/conf/kern.html @@ -4338,7 +4338,7 @@ frontend
FeldnameFeldtypGrößeDefaultNot NullBeschreibungKommentarFremdschlüssel -tidINTEGER4trueTupelidentifier +tidSERIAL4trueTupelidentifier key_apnrCHAR10falseSchlüssel @@ -4349,10 +4349,10 @@ frontend
-drucktextCHAR50falseDrucktext +drucktextVARCHAR255falseDrucktext -nameCHAR150falseName +nameVARCHAR255falseName ebeneINTEGER4falseEbene im Baum @@ -4422,10 +4422,10 @@ gueltig_bis ); parentCHAR10falseÜbergeordneter Knoten im Baum -drucktextCHAR50falseDrucktext +drucktextVARCHAR255falseDrucktext -nameCHAR150falseName +nameVARCHAR255falseName ebeneINTEGER4falseEbene im Baum diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/kern.xml b/superx/WEB-INF/conf/edustore/db/install/conf/kern.xml index 21d2980..c2b8656 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/kern.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/kern.xml @@ -1946,15 +1946,15 @@ - - - @@ -2023,9 +2023,9 @@ notnull="false" description="Schlüssel" /> - - @@ -10657,23 +10657,25 @@ mode="full"> gotoHt="" helpfile="" maxRows="1" -mode="full"> +mode="full" +javascriptFieldsArray="true"> In diesem Formular können Sie Organisationseinheiten verwalten. name tid - + - - - - - - + + + + + + + - + diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/kern_cubes.xml b/superx/WEB-INF/conf/edustore/db/install/conf/kern_cubes.xml index 7a3b9ea..5ae11c8 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/kern_cubes.xml +++ b/superx/WEB-INF/conf/edustore/db/install/conf/kern_cubes.xml @@ -1,5 +1,5 @@ - diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/module_grant.x b/superx/WEB-INF/conf/edustore/db/install/conf/module_grant.x index 980eb66..ac058d8 100755 --- a/superx/WEB-INF/conf/edustore/db/install/conf/module_grant.x +++ b/superx/WEB-INF/conf/edustore/db/install/conf/module_grant.x @@ -101,6 +101,12 @@ DOQUERY "grant $RIGHT on nachricht to $GRANTEE;" DOQUERY "grant $RIGHT on menu_element to $GRANTEE;" DOQUERY "grant $RIGHT on dbconnections to $GRANTEE;" DOQUERY "grant $RIGHT on organigramm to $GRANTEE;" + +if [ "$DATABASE" == "POSTGRES" -a "$RIGHT" != "select" ] + then +DOQUERY "grant update on organigramm_tid_seq to $GRANTEE;" +fi + DOQUERY "grant $RIGHT on organigramm_bak to $GRANTEE;" DOQUERY "grant $RIGHT on user_institution to $GRANTEE;" DOQUERY "grant $RIGHT on kostentraeger to $GRANTEE;" diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/module_revoke.x b/superx/WEB-INF/conf/edustore/db/install/conf/module_revoke.x index 123325b..7c4a8ae 100755 --- a/superx/WEB-INF/conf/edustore/db/install/conf/module_revoke.x +++ b/superx/WEB-INF/conf/edustore/db/install/conf/module_revoke.x @@ -101,6 +101,12 @@ DOQUERY "revoke $RIGHT on nachricht from $GRANTEE;" DOQUERY "revoke $RIGHT on menu_element from $GRANTEE;" DOQUERY "revoke $RIGHT on dbconnections from $GRANTEE;" DOQUERY "revoke $RIGHT on organigramm from $GRANTEE;" + +if [ "$DATABASE" == "POSTGRES" -a "$RIGHT" != "select" ] + then +DOQUERY "revoke update on organigramm_tid_seq from $GRANTEE;" +fi + DOQUERY "revoke $RIGHT on organigramm_bak from $GRANTEE;" DOQUERY "revoke $RIGHT on user_institution from $GRANTEE;" DOQUERY "revoke $RIGHT on kostentraeger from $GRANTEE;" diff --git a/superx/WEB-INF/conf/edustore/db/install/conf/sx_fields_fuellen.sql b/superx/WEB-INF/conf/edustore/db/install/conf/sx_fields_fuellen.sql index acd079f..37c977b 100644 --- a/superx/WEB-INF/conf/edustore/db/install/conf/sx_fields_fuellen.sql +++ b/superx/WEB-INF/conf/edustore/db/install/conf/sx_fields_fuellen.sql @@ -10550,7 +10550,7 @@ values('organigramm', 'tid', 'Tupelidentifier', '', -'INTEGER', +'SERIAL', '4', 1, 1, @@ -10622,8 +10622,8 @@ values('organigramm', 'drucktext', 'Drucktext', '', -'CHAR', -'50', +'VARCHAR', +'255', 0, 1, 0, @@ -10644,8 +10644,8 @@ values('organigramm', 'name', 'Name', '', -'CHAR', -'150', +'VARCHAR', +'255', 0, 1, 0, @@ -11002,8 +11002,8 @@ values('organigramm_bak', 'drucktext', 'Drucktext', '', -'CHAR', -'50', +'VARCHAR', +'255', 0, 1, 0, @@ -11024,8 +11024,8 @@ values('organigramm_bak', 'name', 'Name', '', -'CHAR', -'150', +'VARCHAR', +'255', 0, 1, 0, diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_drop_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_drop_ids.sql index 40cd681..ab4c7f9 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_drop_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_drop_ids.sql @@ -1,27 +1,14 @@ -- XML-generiertes SQL-Script fuer dbaccess-- von module_drop.xsl -! echo "Dropping views" -! echo `date` +select now(),'Dropping views' +from xdummy; -drop view user_groups; - drop view menu_element_fieldmode; - drop view menu_element_mandatory; - drop view menu_element_nature; - drop view menu_element_orgstructure; - drop view user_inst_org; - drop view hochschulen; - drop view dimension_view; - drop view fact_table; - drop view dim_staat; - drop view dim_stg; - drop view dim_abschluss; - drop view dim_kost; - drop view dim_kotr; - +! DOSQL $SUPERX_DIR/db/install/conf/module_drop_views.sql -! echo "Dropping functions" -! echo `date` + +select now(),'Dropping functions' +from xdummy; drop procedure sp_user_themen(integer, date, smallint); drop procedure sp_user_orga(integer, date, smallint); @@ -47,118 +34,141 @@ drop procedure sp_user_themen(integer, date, smallint); drop function sp_get_dbform_right(char, integer); drop procedure sp_set_organigramm_eb(); drop procedure sp_set_organigramm_lehr(); + drop function trim_all_whitespace(varchar); -! echo "Dropping tables" -! echo `date` +select now(),'Dropping tables' +from xdummy; -drop table sichtart_rechttabelle; -drop table group_field_pref; -drop table stylesheet_field; -drop table db_tabellen; -drop table db_forms; -drop table db_version; -drop table aggregierung; -drop table sichten; -drop table lehr_orga_bez; -drop table masken_felder_bez; -drop table sachgebiete; -drop table sachgeb_maske_bez; -drop table sachgeb_dbform_bez; -drop table user_masken_bez; -drop table user_sachgeb_bez; -drop table xdummy; -drop table macro_masken_bez; -drop table graphicformat; -drop table macro_feld_wert; -drop table groupinfo; -drop table user_group_bez; -drop table group_sachgeb_bez; -drop table group_masken_bez; -drop table aggre_bland; -drop table cif; -drop table cifx; -drop table trans_cifx; -drop table trans_cif; -drop table felderinfo; -drop table hochschulinfo; -drop table maske_system_bez; -drop table maskeninfo; -drop table proto_funktion; -drop table systeminfo; -drop table user_einstellungen; -drop table userinfo; -drop table themenbaum; -drop table themenbaum_bak; -drop table nachricht; -drop table menu_element; -drop table dbconnections; -drop table organigramm; -drop table organigramm_bak; -drop table user_institution; -drop table kostentraeger; -drop table user_kostentraeger; -drop table kotr_to_inst; -drop table protokoll; -drop table trans_inst; -drop table konstanten; -drop table lehreinheit_inst; -drop table sx_stylesheets; -drop table sx_mask_style; -drop table sx_captions; -drop table fm_templates; -drop table user_sichten; -drop table user_sichtarten; -drop table group_sichten; -drop table group_sichtarten; -drop table sachgeb_sichten; -drop table sachgeb_sichtarten; -drop table sx_repository; -drop table user_pw; -drop table sx_downloads; -drop table download_group_bez; -drop table download_user_bez; -drop table download_keyw_bez; -drop table sx_keywords; -drop table user_startpage; -drop table user_startfields; -drop table user_dialog; -drop table user_dialog_accept; -drop table user_hinweis; -drop table group_hinweis; -drop table unload_params; -drop table sx_tables; -drop table sx_fields; -drop table dimension_bp; -drop table dimension; -drop table dim_bp_apnr; -drop table dim_bp_altsicht_apnr; -drop table dim_closure; -drop table mondrian_schema; -drop table trans_dim_bp_apnr; -drop table masken_protokoll; -drop table masken_prot_feld; -drop table data_upload; -drop table update_prot; -drop table update_prot_neu; -drop table personattribute_neu; -drop table personattribute; -drop table personattributetype; -drop table personattribute_value_list; -drop table user_preset_values; -drop table sx_portlet; -drop table user_portlet_bez; -drop table group_portlet_bez; -drop table sieve; -drop table sieve_column_def; -drop table sieve_column; -drop table sieve_field; -drop table sx_jobs; -drop table sx_mail; +drop table sichtart_rechttabelle cascade; +drop table group_field_pref cascade; +drop table stylesheet_field cascade; +drop table db_tabellen cascade; +drop table db_forms cascade; +drop table db_version cascade; +drop table aggregierung cascade; +drop table sichten cascade; +drop table lehr_orga_bez cascade; +drop table masken_felder_bez cascade; +drop table sachgebiete cascade; +drop table sachgeb_maske_bez cascade; +drop table sachgeb_dbform_bez cascade; +drop table user_masken_bez cascade; +drop table user_sachgeb_bez cascade; +drop table xdummy cascade; +drop table macro_masken_bez cascade; +drop table graphicformat cascade; +drop table macro_feld_wert cascade; +drop table groupinfo cascade; +drop table user_group_bez cascade; +drop table group_sachgeb_bez cascade; +drop table group_masken_bez cascade; +drop table aggre_bland cascade; +drop table cif cascade; +drop table cifx cascade; +drop table trans_cifx cascade; +drop table trans_cif cascade; +drop table cifx_customize cascade; +drop table felderinfo cascade; +drop table hochschulinfo cascade; +drop table maske_system_bez cascade; +drop table maskeninfo cascade; +drop table proto_funktion cascade; +drop table systeminfo cascade; +drop table user_einstellungen cascade; +drop table userinfo cascade; +drop table themenbaum cascade; +drop table themenbaum_bak cascade; +drop table nachricht cascade; +drop table menu_element cascade; +drop table dbconnections cascade; +drop table organigramm cascade; +drop table organigramm_bak cascade; +drop table user_institution cascade; +drop table kostentraeger cascade; +drop table user_kostentraeger cascade; +drop table kotr_to_inst cascade; +drop table protokoll cascade; +drop table trans_inst cascade; +drop table konstanten cascade; +drop table lehreinheit_inst cascade; +drop table sx_stylesheets cascade; +drop table sx_mask_style cascade; +drop table sx_stylesheet_param cascade; +drop table sx_captions cascade; +drop table fm_templates cascade; +drop table user_sichten cascade; +drop table user_sichtarten cascade; +drop table group_sichten cascade; +drop table group_sichtarten cascade; +drop table sachgeb_sichten cascade; +drop table sachgeb_sichtarten cascade; +drop table sx_repository cascade; +drop table user_pw cascade; +drop table sx_downloads cascade; +drop table download_group_bez cascade; +drop table download_user_bez cascade; +drop table download_keyw_bez cascade; +drop table sx_keywords cascade; +drop table user_startpage cascade; +drop table user_startfields cascade; +drop table user_dialog cascade; +drop table user_dialog_accept cascade; +drop table user_hinweis cascade; +drop table group_hinweis cascade; +drop table unload_params cascade; +drop table sx_tables cascade; +drop table sx_fields cascade; +drop table dimension_bp cascade; +drop table dimension cascade; +drop table dim_bp_apnr cascade; +drop table dim_bp_altsicht_apnr cascade; +drop table dim_closure cascade; +drop table mondrian_schema cascade; +drop table trans_dim_bp_apnr cascade; +drop table masken_protokoll cascade; +drop table masken_prot_feld cascade; +drop table data_upload cascade; +drop table update_prot cascade; +drop table update_prot_neu cascade; +drop table personattribute_neu cascade; +drop table personattribute cascade; +drop table personattributetype cascade; +drop table personattribute_value_list cascade; +drop table user_preset_values cascade; +drop table sx_portlet cascade; +drop table user_portlet_bez cascade; +drop table group_portlet_bez cascade; +drop table kern_cifx_neu cascade; +drop table sieve cascade; +drop table sieve_column_def cascade; +drop table sieve_column cascade; +drop table sieve_field cascade; +drop table sx_jobs cascade; +drop table orgunit_mapping cascade; +drop table implicit_orgunit_rights cascade; +drop table kern_pruefrout cascade; +drop table masken_statistik cascade; +drop table dim_datum cascade; +drop table hisinone_deleted_entity cascade; +drop table etl_step cascade; +drop table etl_step_type cascade; +drop table etl_step_type_param cascade; +drop table etl_step_property cascade; +drop table etl_step_relation cascade; +drop table etl_job cascade; +drop table etl_job_param cascade; +drop table k_astat_studienfach_land cascade; +drop table k_astat_abschluss3steller_land cascade; +drop table k_astat_abschluss2steller cascade; +drop table k_astat_studienbereich cascade; +drop table k_astat_studienfach cascade; +drop table colorscheme cascade; +drop table sx_mail cascade; -! echo "Uninstall-Actions" -! echo `date` +select now(),'Uninstall-Actions' +from xdummy; --Aktionen: \ No newline at end of file diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_indexes_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_indexes_ids.sql index 407f48f..ebfbacd 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_indexes_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_indexes_ids.sql @@ -1,278 +1,308 @@ -- XML-generiertes SQL-Script fuer dbaccess-- -! echo "Creating indexes for tables" -! echo `date` +select now(),'Creating indexes for tables' +from xdummy; -! echo "Erzeuge Index ix_group_felder2" -! echo `date` +select now(),'Erzeuge Index ix_group_felder2' +from xdummy; create index ix_group_felder2 on group_field_pref (groupinfo_id ); -! echo "Erzeuge Index ix_style_feld2" -! echo `date` +select now(),'Erzeuge Index ix_style_feld2' +from xdummy; create index ix_style_feld2 on stylesheet_field (stylesheet_id ); -! echo "Erzeuge Index uxdb_tabellen_name" -! echo `date` +select now(),'Erzeuge Index uxdb_tabellen_name' +from xdummy; create unique index uxdb_tabellen_name on db_tabellen (name ); -! echo "Erzeuge Index xdb_tabellen_efm" -! echo `date` +select now(),'Erzeuge Index xdb_tabellen_efm' +from xdummy; create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); -! echo "Erzeuge Index xdb_version_efm" -! echo `date` +select now(),'Erzeuge Index uxdb_version' +from xdummy; + +create unique index uxdb_version on db_version (his_system ); + + +select now(),'Erzeuge Index xdb_version_efm' +from xdummy; create index xdb_version_efm on db_version (db_einfuegemarke ); -! echo "Erzeuge Index ix_name_intern" -! echo `date` +select now(),'Erzeuge Index ix_name_intern' +from xdummy; create unique index ix_name_intern on sichten (name_intern ); -! echo "Erzeuge Index cif_ind" -! echo `date` +select now(),'Erzeuge Index cif_ind' +from xdummy; create unique index cif_ind on cif (hs, key, apnr ); -! echo "Erzeuge Index cifx_ind" -! echo `date` +select now(),'Erzeuge Index cifx_ind' +from xdummy; create unique index cifx_ind on cifx (hs, key, apnr ); -! echo "Erzeuge Index cifx_ind2" -! echo `date` +select now(),'Erzeuge Index cifx_ind2' +from xdummy; create index cifx_ind2 on cifx (uniquename ); -! echo "Erzeuge Index trans_cifx_ind" -! echo `date` +select now(),'Erzeuge Index trans_cifx_ind' +from xdummy; create index trans_cifx_ind on trans_cifx (sourcesystem_id ); -! echo "Erzeuge Index trans_cif_ind" -! echo `date` +select now(),'Erzeuge Index trans_cif_ind' +from xdummy; create index trans_cif_ind on trans_cif (sourcesystem_id ); -! echo "Erzeuge Index i_userinfo" -! echo `date` +select now(),'Erzeuge Index i_userinfo' +from xdummy; create unique index i_userinfo on userinfo (benutzer ); -! echo "Erzeuge Index i_orga" -! echo `date` +select now(),'Erzeuge Index i_orga' +from xdummy; create unique index i_orga on organigramm (key_apnr, gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index ix130_3" -! echo `date` +select now(),'Erzeuge Index ix130_3' +from xdummy; create index ix130_3 on organigramm (parent ); -! echo "Erzeuge Index i_orga_bak" -! echo `date` +select now(),'Erzeuge Index i_orga_bak' +from xdummy; create unique index i_orga_bak on organigramm_bak (key_apnr, gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index ix_user_inst1" -! echo `date` +select now(),'Erzeuge Index ix_user_inst1' +from xdummy; create index ix_user_inst1 on user_institution (ch110_institut ); -! echo "Erzeuge Index ix_user_inst2" -! echo `date` +select now(),'Erzeuge Index ix_user_inst2' +from xdummy; create index ix_user_inst2 on user_institution (userid ); -! echo "Erzeuge Index ix_user_inst3" -! echo `date` +select now(),'Erzeuge Index ix_user_inst3' +from xdummy; create index ix_user_inst3 on user_institution (gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index kostentr_ixktr" -! echo `date` +select now(),'Erzeuge Index kostentr_ixktr' +from xdummy; create index kostentr_ixktr on kostentraeger (key_apnr ); -! echo "Erzeuge Index ix_user_ktr" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr' +from xdummy; create index ix_user_ktr on user_kostentraeger (key_apnr ); -! echo "Erzeuge Index ix_user_ktr2" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr2' +from xdummy; create index ix_user_ktr2 on user_kostentraeger (userid ); -! echo "Erzeuge Index ix_kotr_to_inst1" -! echo `date` +select now(),'Erzeuge Index ix_kotr_to_inst1' +from xdummy; create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); -! echo "Erzeuge Index ix_sx_captions" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions' +from xdummy; create index ix_sx_captions on sx_captions (field_name ); -! echo "Erzeuge Index ix_sx_captions2" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions2' +from xdummy; create index ix_sx_captions2 on sx_captions (table_name ); -! echo "Erzeuge Index ix_sx_captions3" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions3' +from xdummy; create index ix_sx_captions3 on sx_captions (record_no ); -! echo "Erzeuge Index ix_sx_captions4" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions4' +from xdummy; create index ix_sx_captions4 on sx_captions (locale ); -! echo "Erzeuge Index ix_fm_templates_tid" -! echo `date` +select now(),'Erzeuge Index ix_fm_templates_tid' +from xdummy; create unique index ix_fm_templates_tid on fm_templates (id ); -! echo "Erzeuge Index ix_sx_down_inst" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_inst' +from xdummy; create index ix_sx_down_inst on sx_downloads (ch110_institut ); -! echo "Erzeuge Index ix_sx_down_dbat" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_dbat' +from xdummy; create index ix_sx_down_dbat on sx_downloads (bezugsdatum, gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index ix_ussp" -! echo `date` +select now(),'Erzeuge Index ix_ussp' +from xdummy; create index ix_ussp on user_startpage (userid ); -! echo "Erzeuge Index ix_ussf" -! echo `date` +select now(),'Erzeuge Index ix_ussf' +from xdummy; create index ix_ussf on user_startfields (userid ); -! echo "Erzeuge Index ix_sx_tables" -! echo `date` +select now(),'Erzeuge Index ix_sx_tables' +from xdummy; create unique index ix_sx_tables on sx_tables (name ); -! echo "Erzeuge Index ix_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr' +from xdummy; create unique index ix_dim_bp_apnr on dim_bp_apnr (dimension_bp_id, apnr ); -! echo "Erzeuge Index ix_dim_bp_apnr2" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr2' +from xdummy; create index ix_dim_bp_apnr2 on dim_bp_apnr (systeminfo_id ); -! echo "Erzeuge Index ix_level1_int1" -! echo `date` +select now(),'Erzeuge Index ix_level1_int1' +from xdummy; create index ix_level1_int1 on dim_bp_apnr (level1_int, level1_char ); -! echo "Erzeuge Index ix_level1_int2" -! echo `date` +select now(),'Erzeuge Index ix_level1_int2' +from xdummy; create index ix_level1_int2 on dim_bp_apnr (level2_int, level2_char ); -! echo "Erzeuge Index ix_level3_int1" -! echo `date` +select now(),'Erzeuge Index ix_level3_int1' +from xdummy; create index ix_level3_int1 on dim_bp_apnr (level3_int, level3_char ); -! echo "Erzeuge Index ix_dim_bp_alts1" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_alts1' +from xdummy; create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); -! echo "Erzeuge Index ix_dim_c1" -! echo `date` +select now(),'Erzeuge Index ix_dim_c1' +from xdummy; create index ix_dim_c1 on dim_closure (hierarchie_id, key ); -! echo "Erzeuge Index ix_dim_c2" -! echo `date` +select now(),'Erzeuge Index ix_dim_c2' +from xdummy; create index ix_dim_c2 on dim_closure (hierarchie_id, parent, key ); -! echo "Erzeuge Index ix_tr_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_tr_dim_bp_apnr' +from xdummy; create index ix_tr_dim_bp_apnr on trans_dim_bp_apnr (dimension_bp_id, sourcesystem_id, systeminfo_id ); -! echo "Erzeuge Index ix_sx_jobs_un" -! echo `date` +select now(),'Erzeuge Index ix_sieve_column_defm' +from xdummy; + +create unique index ix_sieve_column_defm on sieve_column_def (m_id ); + + +select now(),'Erzeuge Index ix_sx_jobs_un' +from xdummy; create unique index ix_sx_jobs_un on sx_jobs (uniquename ); + + +select now(),'Erzeuge Index ix_implicit_orgrights1' +from xdummy; + +create index ix_implicit_orgrights1 on implicit_orgunit_rights (userinfo_id ); + + +select now(),'Erzeuge Index ix_dim_datum_day_date' +from xdummy; + +create index ix_dim_datum_day_date on dim_datum (day_date ); + + +select now(),'Erzeuge Index ix_etl_job1' +from xdummy; + +create unique index ix_etl_job1 on etl_job (uniquename ); diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_install_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_install_ids.sql index dc4eb66..328f27b 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_install_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_install_ids.sql @@ -1,13 +1,13 @@ -- XML-generiertes SQL-Script für dbaccess-- -! echo "Creating tables" -! echo `date` +select now(),'Creating tables' +from xdummy; -! echo "Erzeuge Tabelle sichtart_rechttabelle" -! echo `date` +select now(),'Erzeuge Tabelle sichtart_rechttabelle' +from xdummy; create table sichtart_rechttabelle( tid serial , @@ -24,13 +24,13 @@ fallback_user_inst char(1) default '0' , -! echo "Tabelle sichtart_rechttabelle erzeugt" -! echo `date` +select now(),'Tabelle sichtart_rechttabelle erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_field_pref" -! echo `date` +select now(),'Erzeuge Tabelle group_field_pref' +from xdummy; create table group_field_pref( tid serial , @@ -45,19 +45,19 @@ pref NVARCHAR(255) , -! echo "Erzeuge Index ix_group_felder2" -! echo `date` +select now(),'Erzeuge Index ix_group_felder2' +from xdummy; create index ix_group_felder2 on group_field_pref (groupinfo_id ); -! echo "Tabelle group_field_pref erzeugt" -! echo `date` +select now(),'Tabelle group_field_pref erzeugt' +from xdummy; -! echo "Erzeuge Tabelle stylesheet_field" -! echo `date` +select now(),'Erzeuge Tabelle stylesheet_field' +from xdummy; create table stylesheet_field( tid serial , @@ -72,19 +72,19 @@ fieldname NVARCHAR(255) , -! echo "Erzeuge Index ix_style_feld2" -! echo `date` +select now(),'Erzeuge Index ix_style_feld2' +from xdummy; create index ix_style_feld2 on stylesheet_field (stylesheet_id ); -! echo "Tabelle stylesheet_field erzeugt" -! echo `date` +select now(),'Tabelle stylesheet_field erzeugt' +from xdummy; -! echo "Erzeuge Tabelle db_tabellen" -! echo `date` +select now(),'Erzeuge Tabelle db_tabellen' +from xdummy; create table db_tabellen( db_einfuegemarke CHAR(6) , @@ -99,25 +99,25 @@ protokollierung SMALLINT , -! echo "Erzeuge Index uxdb_tabellen_name" -! echo `date` +select now(),'Erzeuge Index uxdb_tabellen_name' +from xdummy; create unique index uxdb_tabellen_name on db_tabellen (name ); -! echo "Erzeuge Index xdb_tabellen_efm" -! echo `date` +select now(),'Erzeuge Index xdb_tabellen_efm' +from xdummy; create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); -! echo "Tabelle db_tabellen erzeugt" -! echo `date` +select now(),'Tabelle db_tabellen erzeugt' +from xdummy; -! echo "Erzeuge Tabelle db_forms" -! echo `date` +select now(),'Erzeuge Tabelle db_forms' +from xdummy; create table db_forms( tid INTEGER not null, @@ -134,17 +134,17 @@ description NCHAR(255) , -! echo "Tabelle db_forms erzeugt" -! echo `date` +select now(),'Tabelle db_forms erzeugt' +from xdummy; -! echo "Erzeuge Tabelle db_version" -! echo `date` +select now(),'Erzeuge Tabelle db_version' +from xdummy; create table db_version( - db_einfuegemarke CHAR(6) , -his_system CHAR(20) , + db_einfuegemarke NVARCHAR(255) , +his_system NVARCHAR(255) , version CHAR(8) , kern_system CHAR(1) , version_hash VARCHAR(32) , @@ -157,19 +157,25 @@ systeminfo_id INTEGER , -! echo "Erzeuge Index xdb_version_efm" -! echo `date` +select now(),'Erzeuge Index uxdb_version' +from xdummy; + +create unique index uxdb_version on db_version (his_system ); + + +select now(),'Erzeuge Index xdb_version_efm' +from xdummy; create index xdb_version_efm on db_version (db_einfuegemarke ); -! echo "Tabelle db_version erzeugt" -! echo `date` +select now(),'Tabelle db_version erzeugt' +from xdummy; -! echo "Erzeuge Tabelle aggregierung" -! echo `date` +select now(),'Erzeuge Tabelle aggregierung' +from xdummy; create table aggregierung( tid INTEGER not null, @@ -185,13 +191,13 @@ wert NCHAR(255) , -! echo "Tabelle aggregierung erzeugt" -! echo `date` +select now(),'Tabelle aggregierung erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sichten" -! echo `date` +select now(),'Erzeuge Tabelle sichten' +from xdummy; create table sichten( tid SERIAL not null, @@ -230,19 +236,19 @@ aktiv SMALLINT default 1 , -! echo "Erzeuge Index ix_name_intern" -! echo `date` +select now(),'Erzeuge Index ix_name_intern' +from xdummy; create unique index ix_name_intern on sichten (name_intern ); -! echo "Tabelle sichten erzeugt" -! echo `date` +select now(),'Tabelle sichten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle lehr_orga_bez" -! echo `date` +select now(),'Erzeuge Tabelle lehr_orga_bez' +from xdummy; create table lehr_orga_bez( lehr_id CHAR(10) , @@ -256,13 +262,13 @@ gueltig_bis DATE -! echo "Tabelle lehr_orga_bez erzeugt" -! echo `date` +select now(),'Tabelle lehr_orga_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle masken_felder_bez" -! echo `date` +select now(),'Erzeuge Tabelle masken_felder_bez' +from xdummy; create table masken_felder_bez( maskeninfo_id INTEGER , @@ -275,13 +281,13 @@ felderinfo_id INTEGER , -! echo "Tabelle masken_felder_bez erzeugt" -! echo `date` +select now(),'Tabelle masken_felder_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sachgebiete" -! echo `date` +select now(),'Erzeuge Tabelle sachgebiete' +from xdummy; create table sachgebiete( tid INTEGER , @@ -295,13 +301,13 @@ rightname NVARCHAR(255) , -! echo "Tabelle sachgebiete erzeugt" -! echo `date` +select now(),'Tabelle sachgebiete erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sachgeb_maske_bez" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_maske_bez' +from xdummy; create table sachgeb_maske_bez( sachgebiete_id INTEGER , @@ -314,13 +320,13 @@ maskeninfo_id INTEGER , -! echo "Tabelle sachgeb_maske_bez erzeugt" -! echo `date` +select now(),'Tabelle sachgeb_maske_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sachgeb_dbform_bez" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_dbform_bez' +from xdummy; create table sachgeb_dbform_bez( sachgebiete_id INTEGER , @@ -333,13 +339,13 @@ dbform_id INTEGER , -! echo "Tabelle sachgeb_dbform_bez erzeugt" -! echo `date` +select now(),'Tabelle sachgeb_dbform_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_masken_bez' +from xdummy; create table user_masken_bez( userinfo_id INTEGER , @@ -353,13 +359,13 @@ external_entry smallint default 0 , -! echo "Tabelle user_masken_bez erzeugt" -! echo `date` +select now(),'Tabelle user_masken_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_sachgeb_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_sachgeb_bez' +from xdummy; create table user_sachgeb_bez( userinfo_id INTEGER , @@ -373,13 +379,13 @@ external_entry smallint default 0 , -! echo "Tabelle user_sachgeb_bez erzeugt" -! echo `date` +select now(),'Tabelle user_sachgeb_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle xdummy" -! echo `date` +select now(),'Erzeuge Tabelle xdummy' +from xdummy; create table xdummy( c CHAR(1) @@ -389,13 +395,13 @@ create table xdummy( -! echo "Tabelle xdummy erzeugt" -! echo `date` +select now(),'Tabelle xdummy erzeugt' +from xdummy; -! echo "Erzeuge Tabelle macro_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle macro_masken_bez' +from xdummy; create table macro_masken_bez( maskeninfo_id1 INTEGER not null, @@ -416,13 +422,13 @@ aktion NCHAR(255) , -! echo "Tabelle macro_masken_bez erzeugt" -! echo `date` +select now(),'Tabelle macro_masken_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle graphicformat" -! echo `date` +select now(),'Erzeuge Tabelle graphicformat' +from xdummy; create table graphicformat( id NCHAR(100) not null, @@ -444,13 +450,13 @@ moreattribs TEXT , -! echo "Tabelle graphicformat erzeugt" -! echo `date` +select now(),'Tabelle graphicformat erzeugt' +from xdummy; -! echo "Erzeuge Tabelle macro_feld_wert" -! echo `date` +select now(),'Erzeuge Tabelle macro_feld_wert' +from xdummy; create table macro_feld_wert( macro INTEGER not null, @@ -468,13 +474,13 @@ active INTEGER default 1 not null -! echo "Tabelle macro_feld_wert erzeugt" -! echo `date` +select now(),'Tabelle macro_feld_wert erzeugt' +from xdummy; -! echo "Erzeuge Tabelle groupinfo" -! echo `date` +select now(),'Erzeuge Tabelle groupinfo' +from xdummy; create table groupinfo( tid INTEGER , @@ -487,13 +493,13 @@ name NCHAR(255) , -! echo "Tabelle groupinfo erzeugt" -! echo `date` +select now(),'Tabelle groupinfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_group_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_group_bez' +from xdummy; create table user_group_bez( userinfo_id INTEGER , @@ -507,13 +513,13 @@ external_entry SMALLINT default 0 , -! echo "Tabelle user_group_bez erzeugt" -! echo `date` +select now(),'Tabelle user_group_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_sachgeb_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_sachgeb_bez' +from xdummy; create table group_sachgeb_bez( groupinfo_id INTEGER , @@ -526,13 +532,13 @@ sachgebiete_id INTEGER , -! echo "Tabelle group_sachgeb_bez erzeugt" -! echo `date` +select now(),'Tabelle group_sachgeb_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_masken_bez' +from xdummy; create table group_masken_bez( groupinfo_id INTEGER , @@ -545,13 +551,13 @@ maskeninfo_id INTEGER , -! echo "Tabelle group_masken_bez erzeugt" -! echo `date` +select now(),'Tabelle group_masken_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle aggre_bland" -! echo `date` +select now(),'Erzeuge Tabelle aggre_bland' +from xdummy; create table aggre_bland( tid INTEGER , @@ -565,13 +571,13 @@ text CHAR(40) not null, -! echo "Tabelle aggre_bland erzeugt" -! echo `date` +select now(),'Tabelle aggre_bland erzeugt' +from xdummy; -! echo "Erzeuge Tabelle cif" -! echo `date` +select now(),'Erzeuge Tabelle cif' +from xdummy; create table cif( tid INTEGER not null, @@ -585,7 +591,8 @@ druck NCHAR(100) , lang_1 NCHAR(100) , lang_2 NCHAR(150) , lang_3 NCHAR(250) , -sort1 INTEGER , +sort1 INTEGER , +uniquename NVARCHAR(255) , primary key (tid) constraint c_cif ) @@ -594,21 +601,21 @@ sort1 INTEGER , -! echo "Erzeuge Index cif_ind" -! echo `date` +select now(),'Erzeuge Index cif_ind' +from xdummy; create unique index cif_ind on cif (hs, key, apnr ); -! echo "Tabelle cif erzeugt" -! echo `date` +select now(),'Tabelle cif erzeugt' +from xdummy; -! echo "Erzeuge Tabelle cifx" -! echo `date` +select now(),'Erzeuge Tabelle cifx' +from xdummy; create table cifx( tid INTEGER not null, @@ -654,27 +661,27 @@ parent_lid NVARCHAR(255) , -! echo "Erzeuge Index cifx_ind" -! echo `date` +select now(),'Erzeuge Index cifx_ind' +from xdummy; create unique index cifx_ind on cifx (hs, key, apnr ); -! echo "Erzeuge Index cifx_ind2" -! echo `date` +select now(),'Erzeuge Index cifx_ind2' +from xdummy; create index cifx_ind2 on cifx (uniquename ); -! echo "Tabelle cifx erzeugt" -! echo `date` +select now(),'Tabelle cifx erzeugt' +from xdummy; -! echo "Erzeuge Tabelle trans_cifx" -! echo `date` +select now(),'Erzeuge Tabelle trans_cifx' +from xdummy; create table trans_cifx( key SMALLINT not null, @@ -689,19 +696,19 @@ systeminfo_id INTEGER -! echo "Erzeuge Index trans_cifx_ind" -! echo `date` +select now(),'Erzeuge Index trans_cifx_ind' +from xdummy; create index trans_cifx_ind on trans_cifx (sourcesystem_id ); -! echo "Tabelle trans_cifx erzeugt" -! echo `date` +select now(),'Tabelle trans_cifx erzeugt' +from xdummy; -! echo "Erzeuge Tabelle trans_cif" -! echo `date` +select now(),'Erzeuge Tabelle trans_cif' +from xdummy; create table trans_cif( key SMALLINT not null, @@ -716,19 +723,44 @@ systeminfo_id INTEGER -! echo "Erzeuge Index trans_cif_ind" -! echo `date` +select now(),'Erzeuge Index trans_cif_ind' +from xdummy; create index trans_cif_ind on trans_cif (sourcesystem_id ); -! echo "Tabelle trans_cif erzeugt" -! echo `date` +select now(),'Tabelle trans_cif erzeugt' +from xdummy; -! echo "Erzeuge Tabelle felderinfo" -! echo `date` +select now(),'Erzeuge Tabelle cifx_customize' +from xdummy; + +create table cifx_customize( + tid SERIAL not null, +cifx_table NVARCHAR(255) not null, +key SMALLINT not null, +apnr CHAR(10) not null, +kurz NVARCHAR(255) , +druck NVARCHAR(255) default 'Drucktext' , +lang_1 NVARCHAR(255) , +uniquename NVARCHAR(255) , + primary key (tid) + constraint c_cifx_customize +) +; + + + + +select now(),'Tabelle cifx_customize erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle felderinfo' +from xdummy; create table felderinfo( tid INTEGER not null, @@ -754,13 +786,13 @@ defaultwert NCHAR(255) , -! echo "Tabelle felderinfo erzeugt" -! echo `date` +select now(),'Tabelle felderinfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle hochschulinfo" -! echo `date` +select now(),'Erzeuge Tabelle hochschulinfo' +from xdummy; create table hochschulinfo( name NCHAR(100) not null, @@ -778,13 +810,13 @@ passwd CHAR(16) , -! echo "Tabelle hochschulinfo erzeugt" -! echo `date` +select now(),'Tabelle hochschulinfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle maske_system_bez" -! echo `date` +select now(),'Erzeuge Tabelle maske_system_bez' +from xdummy; create table maske_system_bez( maskeninfo_id INTEGER not null, @@ -797,13 +829,13 @@ systeminfo_id INTEGER not null, -! echo "Tabelle maske_system_bez erzeugt" -! echo `date` +select now(),'Tabelle maske_system_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle maskeninfo" -! echo `date` +select now(),'Erzeuge Tabelle maskeninfo' +from xdummy; create table maskeninfo( tid INTEGER not null, @@ -829,13 +861,13 @@ hinweis text , -! echo "Tabelle maskeninfo erzeugt" -! echo `date` +select now(),'Tabelle maskeninfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle proto_funktion" -! echo `date` +select now(),'Erzeuge Tabelle proto_funktion' +from xdummy; create table proto_funktion( proto_fkt_id SMALLINT not null, @@ -848,18 +880,18 @@ proto_fkt CHAR(20) not null, -! echo "Tabelle proto_funktion erzeugt" -! echo `date` +select now(),'Tabelle proto_funktion erzeugt' +from xdummy; -! echo "Erzeuge Tabelle systeminfo" -! echo `date` +select now(),'Erzeuge Tabelle systeminfo' +from xdummy; create table systeminfo( tid INTEGER not null, name CHAR(50) not null, -datum DATE , +datum datetime year to second , primary key (tid) constraint c_systeminfo ) @@ -868,13 +900,13 @@ datum DATE , -! echo "Tabelle systeminfo erzeugt" -! echo `date` +select now(),'Tabelle systeminfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_einstellungen" -! echo `date` +select now(),'Erzeuge Tabelle user_einstellungen' +from xdummy; create table user_einstellungen( tid INTEGER not null, @@ -887,13 +919,13 @@ arbeitsverzeichnis NCHAR(255) , -! echo "Tabelle user_einstellungen erzeugt" -! echo `date` +select now(),'Tabelle user_einstellungen erzeugt' +from xdummy; -! echo "Erzeuge Tabelle userinfo" -! echo `date` +select now(),'Erzeuge Tabelle userinfo' +from xdummy; create table userinfo( tid INTEGER not null, @@ -909,7 +941,8 @@ passwd_sha NCHAR(255) , info NCHAR(255) , extern_account_id NVARCHAR(255) , extern_person_id NVARCHAR(255) , -sieht_projekte SMALLINT default 0 , +sieht_projekte SMALLINT default 0 , +extern_role_id INTEGER , primary key (tid) constraint c_userinfo ) @@ -918,19 +951,19 @@ sieht_projekte SMALLINT default 0 , -! echo "Erzeuge Index i_userinfo" -! echo `date` +select now(),'Erzeuge Index i_userinfo' +from xdummy; create unique index i_userinfo on userinfo (benutzer ); -! echo "Tabelle userinfo erzeugt" -! echo `date` +select now(),'Tabelle userinfo erzeugt' +from xdummy; -! echo "Erzeuge Tabelle themenbaum" -! echo `date` +select now(),'Erzeuge Tabelle themenbaum' +from xdummy; create table themenbaum( tid SERIAL , @@ -950,13 +983,13 @@ css_class NVARCHAR(255) , -! echo "Tabelle themenbaum erzeugt" -! echo `date` +select now(),'Tabelle themenbaum erzeugt' +from xdummy; -! echo "Erzeuge Tabelle themenbaum_bak" -! echo `date` +select now(),'Erzeuge Tabelle themenbaum_bak' +from xdummy; create table themenbaum_bak( tid INTEGER , @@ -972,13 +1005,13 @@ erlaeuterung NCHAR(240) -! echo "Tabelle themenbaum_bak erzeugt" -! echo `date` +select now(),'Tabelle themenbaum_bak erzeugt' +from xdummy; -! echo "Erzeuge Tabelle nachricht" -! echo `date` +select now(),'Erzeuge Tabelle nachricht' +from xdummy; create table nachricht( aktuell NCHAR(255) @@ -988,13 +1021,13 @@ create table nachricht( -! echo "Tabelle nachricht erzeugt" -! echo `date` +select now(),'Tabelle nachricht erzeugt' +from xdummy; -! echo "Erzeuge Tabelle menu_element" -! echo `date` +select now(),'Erzeuge Tabelle menu_element' +from xdummy; create table menu_element( id INTEGER not null, @@ -1011,13 +1044,13 @@ annotation NVARCHAR(255) , -! echo "Tabelle menu_element erzeugt" -! echo `date` +select now(),'Tabelle menu_element erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dbconnections" -! echo `date` +select now(),'Erzeuge Tabelle dbconnections' +from xdummy; create table dbconnections( id NVARCHAR(255) not null, @@ -1038,20 +1071,20 @@ testsql NVARCHAR(255) , -! echo "Tabelle dbconnections erzeugt" -! echo `date` +select now(),'Tabelle dbconnections erzeugt' +from xdummy; -! echo "Erzeuge Tabelle organigramm" -! echo `date` +select now(),'Erzeuge Tabelle organigramm' +from xdummy; create table organigramm( - tid INTEGER not null, + tid SERIAL not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, @@ -1070,60 +1103,67 @@ nodeattrib SMALLINT -! echo "Erzeuge Index i_orga" -! echo `date` +select now(),'Erzeuge Index i_orga' +from xdummy; create unique index i_orga on organigramm (key_apnr, gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index ix130_3" -! echo `date` +select now(),'Erzeuge Index ix130_3' +from xdummy; create index ix130_3 on organigramm (parent ); -! echo "Tabelle organigramm erzeugt" -! echo `date` +select now(),'Tabelle organigramm erzeugt' +from xdummy; -! echo "Erzeuge Tabelle organigramm_bak" -! echo `date` +select now(),'Erzeuge Tabelle organigramm_bak' +from xdummy; create table organigramm_bak( tid INTEGER not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , -lehre SMALLINT , +lehre SMALLINT not null, gueltig_seit DATE not null, gueltig_bis DATE not null, -orgstruktur INTEGER +orgstruktur INTEGER , +lid NVARCHAR(255) , +parent_lid NVARCHAR(255) , +uniquename NVARCHAR(255) , +sourcesystem INTEGER , +sourcesystem_id NVARCHAR(255) , +systeminfo_id INTEGER , +nodeattrib SMALLINT ) ; -! echo "Erzeuge Index i_orga_bak" -! echo `date` +select now(),'Erzeuge Index i_orga_bak' +from xdummy; create unique index i_orga_bak on organigramm_bak (key_apnr, gueltig_seit, gueltig_bis ); -! echo "Tabelle organigramm_bak erzeugt" -! echo `date` +select now(),'Tabelle organigramm_bak erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_institution" -! echo `date` +select now(),'Erzeuge Tabelle user_institution' +from xdummy; create table user_institution( userid INTEGER not null, @@ -1143,32 +1183,32 @@ externalid NVARCHAR(200) , -! echo "Erzeuge Index ix_user_inst1" -! echo `date` +select now(),'Erzeuge Index ix_user_inst1' +from xdummy; create index ix_user_inst1 on user_institution (ch110_institut ); -! echo "Erzeuge Index ix_user_inst2" -! echo `date` +select now(),'Erzeuge Index ix_user_inst2' +from xdummy; create index ix_user_inst2 on user_institution (userid ); -! echo "Erzeuge Index ix_user_inst3" -! echo `date` +select now(),'Erzeuge Index ix_user_inst3' +from xdummy; create index ix_user_inst3 on user_institution (gueltig_seit, gueltig_bis ); -! echo "Tabelle user_institution erzeugt" -! echo `date` +select now(),'Tabelle user_institution erzeugt' +from xdummy; -! echo "Erzeuge Tabelle kostentraeger" -! echo `date` +select now(),'Erzeuge Tabelle kostentraeger' +from xdummy; create table kostentraeger( key_apnr CHAR(50) , @@ -1189,19 +1229,19 @@ info NVARCHAR(215) -! echo "Erzeuge Index kostentr_ixktr" -! echo `date` +select now(),'Erzeuge Index kostentr_ixktr' +from xdummy; create index kostentr_ixktr on kostentraeger (key_apnr ); -! echo "Tabelle kostentraeger erzeugt" -! echo `date` +select now(),'Tabelle kostentraeger erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_kostentraeger" -! echo `date` +select now(),'Erzeuge Tabelle user_kostentraeger' +from xdummy; create table user_kostentraeger( userid INTEGER not null, @@ -1219,25 +1259,25 @@ externalid NVARCHAR(200) , -! echo "Erzeuge Index ix_user_ktr" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr' +from xdummy; create index ix_user_ktr on user_kostentraeger (key_apnr ); -! echo "Erzeuge Index ix_user_ktr2" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr2' +from xdummy; create index ix_user_ktr2 on user_kostentraeger (userid ); -! echo "Tabelle user_kostentraeger erzeugt" -! echo `date` +select now(),'Tabelle user_kostentraeger erzeugt' +from xdummy; -! echo "Erzeuge Tabelle kotr_to_inst" -! echo `date` +select now(),'Erzeuge Tabelle kotr_to_inst' +from xdummy; create table kotr_to_inst( projnr CHAR(24) , @@ -1249,19 +1289,19 @@ haupt_kst_kz CHAR(1) -! echo "Erzeuge Index ix_kotr_to_inst1" -! echo `date` +select now(),'Erzeuge Index ix_kotr_to_inst1' +from xdummy; create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); -! echo "Tabelle kotr_to_inst erzeugt" -! echo `date` +select now(),'Tabelle kotr_to_inst erzeugt' +from xdummy; -! echo "Erzeuge Tabelle protokoll" -! echo `date` +select now(),'Erzeuge Tabelle protokoll' +from xdummy; create table protokoll( protokoll_id SERIAL not null, @@ -1279,13 +1319,13 @@ kommentar NVARCHAR(255) , -! echo "Tabelle protokoll erzeugt" -! echo `date` +select now(),'Tabelle protokoll erzeugt' +from xdummy; -! echo "Erzeuge Tabelle trans_inst" -! echo `date` +select now(),'Erzeuge Tabelle trans_inst' +from xdummy; create table trans_inst( tid SERIAL not null, @@ -1303,16 +1343,16 @@ systeminfo_id INTEGER , -! echo "Tabelle trans_inst erzeugt" -! echo `date` +select now(),'Tabelle trans_inst erzeugt' +from xdummy; -! echo "Erzeuge Tabelle konstanten" -! echo `date` +select now(),'Erzeuge Tabelle konstanten' +from xdummy; create table konstanten( - tid INTEGER not null, + tid serial not null, apnr INTEGER , beschreibung NVARCHAR(255) , defaultvalue INTEGER , @@ -1323,7 +1363,9 @@ doku_link NVARCHAR(255) , read_only INTEGER , wertebereich NVARCHAR(255) , ab_version VARCHAR(20) , -gruppe NVARCHAR(100) , +gruppe NVARCHAR(100) , +priority INTEGER , +sourcesystem INTEGER , primary key (tid) constraint co_konstanten ) @@ -1332,13 +1374,13 @@ gruppe NVARCHAR(100) , -! echo "Tabelle konstanten erzeugt" -! echo `date` +select now(),'Tabelle konstanten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle lehreinheit_inst" -! echo `date` +select now(),'Erzeuge Tabelle lehreinheit_inst' +from xdummy; create table lehreinheit_inst( key_apnr CHAR(10) , @@ -1353,13 +1395,13 @@ gueltig_bis DATE -! echo "Tabelle lehreinheit_inst erzeugt" -! echo `date` +select now(),'Tabelle lehreinheit_inst erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_stylesheets" -! echo `date` +select now(),'Erzeuge Tabelle sx_stylesheets' +from xdummy; create table sx_stylesheets( tid SERIAL not null, @@ -1369,7 +1411,11 @@ description NCHAR(255) , relation CHAR(10) , useragent NCHAR(255) , contenttype NCHAR(200) , -is_generic SMALLINT default 0 , +is_generic SMALLINT default 0 , +toolbar_icon_filepath NVARCHAR(255) , +usage_resultset_data CHAR(10) default 'T' , +stylesheet_type CHAR(10) default 'XSL' , +jr_datasource CHAR(10) , primary key (tid) constraint c_stylesheets ) @@ -1378,13 +1424,13 @@ is_generic SMALLINT default 0 , -! echo "Tabelle sx_stylesheets erzeugt" -! echo `date` +select now(),'Tabelle sx_stylesheets erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_mask_style" -! echo `date` +select now(),'Erzeuge Tabelle sx_mask_style' +from xdummy; create table sx_mask_style( tid SERIAL not null, @@ -1399,13 +1445,36 @@ ord SMALLINT , -! echo "Tabelle sx_mask_style erzeugt" -! echo `date` +select now(),'Tabelle sx_mask_style erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle sx_stylesheet_param' +from xdummy; + +create table sx_stylesheet_param( + tid SERIAL not null, +stylesheet_id INTEGER not null, +param_name NVARCHAR(255) not null, +default_val NVARCHAR(255) , +description NVARCHAR(255) , +wertebereich NVARCHAR(255) , + primary key (tid) + constraint c_stylesheet_param +) +; + + + + +select now(),'Tabelle sx_stylesheet_param erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_captions" -! echo `date` +select now(),'Erzeuge Tabelle sx_captions' +from xdummy; create table sx_captions( tid SERIAL not null, @@ -1428,37 +1497,37 @@ export_to_glossar INTEGER , -! echo "Erzeuge Index ix_sx_captions" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions' +from xdummy; create index ix_sx_captions on sx_captions (field_name ); -! echo "Erzeuge Index ix_sx_captions2" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions2' +from xdummy; create index ix_sx_captions2 on sx_captions (table_name ); -! echo "Erzeuge Index ix_sx_captions3" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions3' +from xdummy; create index ix_sx_captions3 on sx_captions (record_no ); -! echo "Erzeuge Index ix_sx_captions4" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions4' +from xdummy; create index ix_sx_captions4 on sx_captions (locale ); -! echo "Tabelle sx_captions erzeugt" -! echo `date` +select now(),'Tabelle sx_captions erzeugt' +from xdummy; -! echo "Erzeuge Tabelle fm_templates" -! echo `date` +select now(),'Erzeuge Tabelle fm_templates' +from xdummy; create table fm_templates( tid SERIAL not null, @@ -1475,19 +1544,19 @@ version integer default 1 , -! echo "Erzeuge Index ix_fm_templates_tid" -! echo `date` +select now(),'Erzeuge Index ix_fm_templates_tid' +from xdummy; create unique index ix_fm_templates_tid on fm_templates (id ); -! echo "Tabelle fm_templates erzeugt" -! echo `date` +select now(),'Tabelle fm_templates erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_sichten" -! echo `date` +select now(),'Erzeuge Tabelle user_sichten' +from xdummy; create table user_sichten( userinfo_id INTEGER not null, @@ -1501,13 +1570,13 @@ external_entry smallint default 0 , -! echo "Tabelle user_sichten erzeugt" -! echo `date` +select now(),'Tabelle user_sichten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle user_sichtarten' +from xdummy; create table user_sichtarten( userinfo_id INTEGER not null, @@ -1521,13 +1590,13 @@ external_entry smallint default 0 , -! echo "Tabelle user_sichtarten erzeugt" -! echo `date` +select now(),'Tabelle user_sichtarten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_sichten" -! echo `date` +select now(),'Erzeuge Tabelle group_sichten' +from xdummy; create table group_sichten( groupinfo_id INTEGER , @@ -1540,13 +1609,13 @@ sicht_name_intern NCHAR(200) , -! echo "Tabelle group_sichten erzeugt" -! echo `date` +select now(),'Tabelle group_sichten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle group_sichtarten' +from xdummy; create table group_sichtarten( groupinfo_id INTEGER , @@ -1559,13 +1628,13 @@ sichtart NCHAR(255) , -! echo "Tabelle group_sichtarten erzeugt" -! echo `date` +select now(),'Tabelle group_sichtarten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sachgeb_sichten" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_sichten' +from xdummy; create table sachgeb_sichten( sachgebiete_id INTEGER , @@ -1578,13 +1647,13 @@ sicht_name_intern NCHAR(200) , -! echo "Tabelle sachgeb_sichten erzeugt" -! echo `date` +select now(),'Tabelle sachgeb_sichten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sachgeb_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_sichtarten' +from xdummy; create table sachgeb_sichtarten( sachgebiete_id INTEGER , @@ -1597,13 +1666,13 @@ sichtart NCHAR(255) , -! echo "Tabelle sachgeb_sichtarten erzeugt" -! echo `date` +select now(),'Tabelle sachgeb_sichtarten erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_repository" -! echo `date` +select now(),'Erzeuge Tabelle sx_repository' +from xdummy; create table sx_repository( tid SERIAL not null, @@ -1631,13 +1700,13 @@ gueltig_bis DATE default '01.01.3000' not null, -! echo "Tabelle sx_repository erzeugt" -! echo `date` +select now(),'Tabelle sx_repository erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_pw" -! echo `date` +select now(),'Erzeuge Tabelle user_pw' +from xdummy; create table user_pw( userinfo_id INTEGER not null, @@ -1665,13 +1734,13 @@ zeitpunkt7 datetime year to second , -! echo "Tabelle user_pw erzeugt" -! echo `date` +select now(),'Tabelle user_pw erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_downloads" -! echo `date` +select now(),'Erzeuge Tabelle sx_downloads' +from xdummy; create table sx_downloads( tid SERIAL not null, @@ -1693,27 +1762,27 @@ gueltig_bis DATE default '01.01.3000' not null, -! echo "Erzeuge Index ix_sx_down_inst" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_inst' +from xdummy; create index ix_sx_down_inst on sx_downloads (ch110_institut ); -! echo "Erzeuge Index ix_sx_down_dbat" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_dbat' +from xdummy; create index ix_sx_down_dbat on sx_downloads (bezugsdatum, gueltig_seit, gueltig_bis ); -! echo "Tabelle sx_downloads erzeugt" -! echo `date` +select now(),'Tabelle sx_downloads erzeugt' +from xdummy; -! echo "Erzeuge Tabelle download_group_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_group_bez' +from xdummy; create table download_group_bez( groupinfo_id INTEGER , @@ -1726,13 +1795,13 @@ download_id INTEGER , -! echo "Tabelle download_group_bez erzeugt" -! echo `date` +select now(),'Tabelle download_group_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle download_user_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_user_bez' +from xdummy; create table download_user_bez( userinfo_id INTEGER , @@ -1745,13 +1814,13 @@ download_id INTEGER , -! echo "Tabelle download_user_bez erzeugt" -! echo `date` +select now(),'Tabelle download_user_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle download_keyw_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_keyw_bez' +from xdummy; create table download_keyw_bez( keyword_id INTEGER , @@ -1764,13 +1833,13 @@ download_id INTEGER , -! echo "Tabelle download_keyw_bez erzeugt" -! echo `date` +select now(),'Tabelle download_keyw_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_keywords" -! echo `date` +select now(),'Erzeuge Tabelle sx_keywords' +from xdummy; create table sx_keywords( tid SERIAL , @@ -1784,13 +1853,13 @@ parent INTEGER , -! echo "Tabelle sx_keywords erzeugt" -! echo `date` +select now(),'Tabelle sx_keywords erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_startpage" -! echo `date` +select now(),'Erzeuge Tabelle user_startpage' +from xdummy; create table user_startpage( tid serial not null, @@ -1814,19 +1883,19 @@ active integer not null, -! echo "Erzeuge Index ix_ussp" -! echo `date` +select now(),'Erzeuge Index ix_ussp' +from xdummy; create index ix_ussp on user_startpage (userid ); -! echo "Tabelle user_startpage erzeugt" -! echo `date` +select now(),'Tabelle user_startpage erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_startfields" -! echo `date` +select now(),'Erzeuge Tabelle user_startfields' +from xdummy; create table user_startfields( tid serial not null, @@ -1842,19 +1911,19 @@ active integer not null, -! echo "Erzeuge Index ix_ussf" -! echo `date` +select now(),'Erzeuge Index ix_ussf' +from xdummy; create index ix_ussf on user_startfields (userid ); -! echo "Tabelle user_startfields erzeugt" -! echo `date` +select now(),'Tabelle user_startfields erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_dialog" -! echo `date` +select now(),'Erzeuge Tabelle user_dialog' +from xdummy; create table user_dialog( id SERIAL not null, @@ -1881,13 +1950,13 @@ attrib3 NVARCHAR(255) , -! echo "Tabelle user_dialog erzeugt" -! echo `date` +select now(),'Tabelle user_dialog erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_dialog_accept" -! echo `date` +select now(),'Erzeuge Tabelle user_dialog_accept' +from xdummy; create table user_dialog_accept( id SERIAL not null, @@ -1904,13 +1973,13 @@ timestamp datetime year to second not null, -! echo "Tabelle user_dialog_accept erzeugt" -! echo `date` +select now(),'Tabelle user_dialog_accept erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_hinweis" -! echo `date` +select now(),'Erzeuge Tabelle user_hinweis' +from xdummy; create table user_hinweis( userinfo_id INTEGER not null, @@ -1923,13 +1992,13 @@ hinweise_id integer not null, -! echo "Tabelle user_hinweis erzeugt" -! echo `date` +select now(),'Tabelle user_hinweis erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_hinweis" -! echo `date` +select now(),'Erzeuge Tabelle group_hinweis' +from xdummy; create table group_hinweis( groupinfo_id INTEGER not null, @@ -1942,13 +2011,13 @@ hinweise_id integer not null, -! echo "Tabelle group_hinweis erzeugt" -! echo `date` +select now(),'Tabelle group_hinweis erzeugt' +from xdummy; -! echo "Erzeuge Tabelle unload_params" -! echo `date` +select now(),'Erzeuge Tabelle unload_params' +from xdummy; create table unload_params( tid SERIAL not null, @@ -1956,7 +2025,12 @@ param_id NVARCHAR(255) not null, param_val NVARCHAR(255) , default_val NVARCHAR(255) , description NVARCHAR(255) , -systeminfo_id INTEGER , +systeminfo_id INTEGER , +priority INTEGER , +sourcesystem INTEGER , +wertebereich NVARCHAR(255) , +ab_version VARCHAR(20) , +gruppe NVARCHAR(100) , primary key (tid) constraint c_unload_params ) @@ -1965,13 +2039,13 @@ systeminfo_id INTEGER , -! echo "Tabelle unload_params erzeugt" -! echo `date` +select now(),'Tabelle unload_params erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_tables" -! echo `date` +select now(),'Erzeuge Tabelle sx_tables' +from xdummy; create table sx_tables( tid SERIAL not null, @@ -1991,19 +2065,19 @@ sachgebiete_id NVARCHAR(255) , -! echo "Erzeuge Index ix_sx_tables" -! echo `date` +select now(),'Erzeuge Index ix_sx_tables' +from xdummy; create unique index ix_sx_tables on sx_tables (name ); -! echo "Tabelle sx_tables erzeugt" -! echo `date` +select now(),'Tabelle sx_tables erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_fields" -! echo `date` +select now(),'Erzeuge Tabelle sx_fields' +from xdummy; create table sx_fields( tid SERIAL not null, @@ -2033,13 +2107,13 @@ foreignkey_uniquename NVARCHAR(255) , -! echo "Tabelle sx_fields erzeugt" -! echo `date` +select now(),'Tabelle sx_fields erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dimension_bp" -! echo `date` +select now(),'Erzeuge Tabelle dimension_bp' +from xdummy; create table dimension_bp( tid SERIAL not null, @@ -2067,13 +2141,13 @@ system_key NVARCHAR(255) , -! echo "Tabelle dimension_bp erzeugt" -! echo `date` +select now(),'Tabelle dimension_bp erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dimension" -! echo `date` +select now(),'Erzeuge Tabelle dimension' +from xdummy; create table dimension( tid SERIAL not null, @@ -2096,13 +2170,13 @@ system_key NVARCHAR(255) , -! echo "Tabelle dimension erzeugt" -! echo `date` +select now(),'Tabelle dimension erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Tabelle dim_bp_apnr' +from xdummy; create table dim_bp_apnr( dimension_bp_id INTEGER not null, @@ -2129,47 +2203,47 @@ sortorder INTEGER -! echo "Erzeuge Index ix_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr' +from xdummy; create unique index ix_dim_bp_apnr on dim_bp_apnr (dimension_bp_id, apnr ); -! echo "Erzeuge Index ix_dim_bp_apnr2" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr2' +from xdummy; create index ix_dim_bp_apnr2 on dim_bp_apnr (systeminfo_id ); -! echo "Erzeuge Index ix_level1_int1" -! echo `date` +select now(),'Erzeuge Index ix_level1_int1' +from xdummy; create index ix_level1_int1 on dim_bp_apnr (level1_int, level1_char ); -! echo "Erzeuge Index ix_level1_int2" -! echo `date` +select now(),'Erzeuge Index ix_level1_int2' +from xdummy; create index ix_level1_int2 on dim_bp_apnr (level2_int, level2_char ); -! echo "Erzeuge Index ix_level3_int1" -! echo `date` +select now(),'Erzeuge Index ix_level3_int1' +from xdummy; create index ix_level3_int1 on dim_bp_apnr (level3_int, level3_char ); -! echo "Tabelle dim_bp_apnr erzeugt" -! echo `date` +select now(),'Tabelle dim_bp_apnr erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dim_bp_altsicht_apnr" -! echo `date` +select now(),'Erzeuge Tabelle dim_bp_altsicht_apnr' +from xdummy; create table dim_bp_altsicht_apnr( hierarchie_id NVARCHAR(200) not null, @@ -2185,19 +2259,19 @@ systeminfo_id INTEGER -! echo "Erzeuge Index ix_dim_bp_alts1" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_alts1' +from xdummy; create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); -! echo "Tabelle dim_bp_altsicht_apnr erzeugt" -! echo `date` +select now(),'Tabelle dim_bp_altsicht_apnr erzeugt' +from xdummy; -! echo "Erzeuge Tabelle dim_closure" -! echo `date` +select now(),'Erzeuge Tabelle dim_closure' +from xdummy; create table dim_closure( dimension_bp_id INTEGER , @@ -2211,28 +2285,28 @@ distance INTEGER -! echo "Erzeuge Index ix_dim_c1" -! echo `date` +select now(),'Erzeuge Index ix_dim_c1' +from xdummy; create index ix_dim_c1 on dim_closure (hierarchie_id, key ); -! echo "Erzeuge Index ix_dim_c2" -! echo `date` +select now(),'Erzeuge Index ix_dim_c2' +from xdummy; create index ix_dim_c2 on dim_closure (hierarchie_id, parent, key ); -! echo "Tabelle dim_closure erzeugt" -! echo `date` +select now(),'Tabelle dim_closure erzeugt' +from xdummy; -! echo "Erzeuge Tabelle mondrian_schema" -! echo `date` +select now(),'Erzeuge Tabelle mondrian_schema' +from xdummy; create table mondrian_schema( id SERIAL , @@ -2249,13 +2323,13 @@ node NVARCHAR(255) , -! echo "Tabelle mondrian_schema erzeugt" -! echo `date` +select now(),'Tabelle mondrian_schema erzeugt' +from xdummy; -! echo "Erzeuge Tabelle trans_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Tabelle trans_dim_bp_apnr' +from xdummy; create table trans_dim_bp_apnr( dimension_bp_id INTEGER not null, @@ -2268,21 +2342,21 @@ systeminfo_id INTEGER -! echo "Erzeuge Index ix_tr_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_tr_dim_bp_apnr' +from xdummy; create index ix_tr_dim_bp_apnr on trans_dim_bp_apnr (dimension_bp_id, sourcesystem_id, systeminfo_id ); -! echo "Tabelle trans_dim_bp_apnr erzeugt" -! echo `date` +select now(),'Tabelle trans_dim_bp_apnr erzeugt' +from xdummy; -! echo "Erzeuge Tabelle masken_protokoll" -! echo `date` +select now(),'Erzeuge Tabelle masken_protokoll' +from xdummy; create table masken_protokoll( tid SERIAL not null, @@ -2296,13 +2370,13 @@ kommentar NVARCHAR(255) -! echo "Tabelle masken_protokoll erzeugt" -! echo `date` +select now(),'Tabelle masken_protokoll erzeugt' +from xdummy; -! echo "Erzeuge Tabelle masken_prot_feld" -! echo `date` +select now(),'Erzeuge Tabelle masken_prot_feld' +from xdummy; create table masken_prot_feld( tid SERIAL not null, @@ -2317,13 +2391,13 @@ caption NVARCHAR(255) -! echo "Tabelle masken_prot_feld erzeugt" -! echo `date` +select now(),'Tabelle masken_prot_feld erzeugt' +from xdummy; -! echo "Erzeuge Tabelle data_upload" -! echo `date` +select now(),'Erzeuge Tabelle data_upload' +from xdummy; create table data_upload( tid SERIAL not null, @@ -2355,13 +2429,13 @@ processed_noted SMALLINT default 0 , -! echo "Tabelle data_upload erzeugt" -! echo `date` +select now(),'Tabelle data_upload erzeugt' +from xdummy; -! echo "Erzeuge Tabelle update_prot" -! echo `date` +select now(),'Erzeuge Tabelle update_prot' +from xdummy; create table update_prot( tid SERIAL not null, @@ -2378,13 +2452,13 @@ update_time datetime year to second , -! echo "Tabelle update_prot erzeugt" -! echo `date` +select now(),'Tabelle update_prot erzeugt' +from xdummy; -! echo "Erzeuge Tabelle update_prot_neu" -! echo `date` +select now(),'Erzeuge Tabelle update_prot_neu' +from xdummy; create table update_prot_neu( systeminfo_id INTEGER default 0 not null, @@ -2397,13 +2471,13 @@ updated_at datetime year to second -! echo "Tabelle update_prot_neu erzeugt" -! echo `date` +select now(),'Tabelle update_prot_neu erzeugt' +from xdummy; -! echo "Erzeuge Tabelle personattribute_neu" -! echo `date` +select now(),'Erzeuge Tabelle personattribute_neu' +from xdummy; create table personattribute_neu( id INTEGER not null, @@ -2422,13 +2496,13 @@ semester_bis INTEGER -! echo "Tabelle personattribute_neu erzeugt" -! echo `date` +select now(),'Tabelle personattribute_neu erzeugt' +from xdummy; -! echo "Erzeuge Tabelle personattribute" -! echo `date` +select now(),'Erzeuge Tabelle personattribute' +from xdummy; create table personattribute( person_id INTEGER not null, @@ -2446,13 +2520,13 @@ semester_bis INTEGER -! echo "Tabelle personattribute erzeugt" -! echo `date` +select now(),'Tabelle personattribute erzeugt' +from xdummy; -! echo "Erzeuge Tabelle personattributetype" -! echo `date` +select now(),'Erzeuge Tabelle personattributetype' +from xdummy; create table personattributetype( personattributetype_id INTEGER not null, @@ -2463,13 +2537,13 @@ attributevalue NVARCHAR(255) -! echo "Tabelle personattributetype erzeugt" -! echo `date` +select now(),'Tabelle personattributetype erzeugt' +from xdummy; -! echo "Erzeuge Tabelle personattribute_value_list" -! echo `date` +select now(),'Erzeuge Tabelle personattribute_value_list' +from xdummy; create table personattribute_value_list( personattributetype_id INTEGER not null, @@ -2483,13 +2557,13 @@ longtext NVARCHAR(255) -! echo "Tabelle personattribute_value_list erzeugt" -! echo `date` +select now(),'Tabelle personattribute_value_list erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_preset_values" -! echo `date` +select now(),'Erzeuge Tabelle user_preset_values' +from xdummy; create table user_preset_values( userinfo_id INTEGER , @@ -2503,13 +2577,13 @@ field_value NVARCHAR(255) , -! echo "Tabelle user_preset_values erzeugt" -! echo `date` +select now(),'Tabelle user_preset_values erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_portlet" -! echo `date` +select now(),'Erzeuge Tabelle sx_portlet' +from xdummy; create table sx_portlet( tid SERIAL not null, @@ -2530,13 +2604,13 @@ gueltig_bis DATE default '01.01.3000' not null, -! echo "Tabelle sx_portlet erzeugt" -! echo `date` +select now(),'Tabelle sx_portlet erzeugt' +from xdummy; -! echo "Erzeuge Tabelle user_portlet_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_portlet_bez' +from xdummy; create table user_portlet_bez( userinfo_id INTEGER , @@ -2549,13 +2623,13 @@ portlet_id INTEGER , -! echo "Tabelle user_portlet_bez erzeugt" -! echo `date` +select now(),'Tabelle user_portlet_bez erzeugt' +from xdummy; -! echo "Erzeuge Tabelle group_portlet_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_portlet_bez' +from xdummy; create table group_portlet_bez( groupinfo_id INTEGER , @@ -2568,13 +2642,46 @@ portlet_id INTEGER , -! echo "Tabelle group_portlet_bez erzeugt" -! echo `date` +select now(),'Tabelle group_portlet_bez erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle kern_cifx_neu' +from xdummy; + +create table kern_cifx_neu( + key SMALLINT not null, +hs INTEGER not null, +apnr NVARCHAR(255) , +kurz CHAR(10) , +druck NVARCHAR(200) , +lang_1 NCHAR(255) , +astat CHAR(50) , +parent NVARCHAR(255) , +uniquename NVARCHAR(255) , +bund_apnr CHAR(10) , +d_akt_von DATE , +d_akt_bis DATE , +sourcesystem_id NVARCHAR(255) , +hiskey_id NVARCHAR(255) , +struktur_c CHAR(50) , +lid NVARCHAR(255) , +parent_lid NVARCHAR(255) , +sortorder INTEGER +) +; + + + + +select now(),'Tabelle kern_cifx_neu erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sieve" -! echo `date` +select now(),'Erzeuge Tabelle sieve' +from xdummy; create table sieve( tid SERIAL not null, @@ -2583,6 +2690,9 @@ main_table VARCHAR(50) not null, order_by NVARCHAR(255) , sachgebiete_id INTEGER not null, systeminfo_id INTEGER not null, +post_processing TEXT , +post_insert TEXT , +finalize TEXT , active SMALLINT default 1 , hsnr SMALLINT , primary key (tid) @@ -2593,13 +2703,13 @@ hsnr SMALLINT , -! echo "Tabelle sieve erzeugt" -! echo `date` +select now(),'Tabelle sieve erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sieve_column_def" -! echo `date` +select now(),'Erzeuge Tabelle sieve_column_def' +from xdummy; create table sieve_column_def( tid SERIAL not null, @@ -2614,7 +2724,7 @@ lookup_tab NVARCHAR(255) , lookup_joinsource NVARCHAR(255) , lookup_jointarget NVARCHAR(255) , lookup_target NVARCHAR(255) , -lookup_cond TEXT , +lookup_cond NVARCHAR(255) , lookup_func NVARCHAR(255) , hinweis NVARCHAR(255) , primary key (tid) @@ -2625,13 +2735,19 @@ hinweis NVARCHAR(255) , -! echo "Tabelle sieve_column_def erzeugt" -! echo `date` +select now(),'Erzeuge Index ix_sieve_column_defm' +from xdummy; +create unique index ix_sieve_column_defm on sieve_column_def (m_id ); -! echo "Erzeuge Tabelle sieve_column" -! echo `date` +select now(),'Tabelle sieve_column_def erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle sieve_column' +from xdummy; create table sieve_column( tid SERIAL not null, @@ -2648,13 +2764,13 @@ active SMALLINT default 1 , -! echo "Tabelle sieve_column erzeugt" -! echo `date` +select now(),'Tabelle sieve_column erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sieve_field" -! echo `date` +select now(),'Erzeuge Tabelle sieve_field' +from xdummy; create table sieve_field( tid SERIAL not null, @@ -2673,13 +2789,13 @@ active SMALLINT default 1 , -! echo "Tabelle sieve_field erzeugt" -! echo `date` +select now(),'Tabelle sieve_field erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_jobs" -! echo `date` +select now(),'Erzeuge Tabelle sx_jobs' +from xdummy; create table sx_jobs( tid SERIAL not null, @@ -2700,19 +2816,454 @@ check_sql TEXT , -! echo "Erzeuge Index ix_sx_jobs_un" -! echo `date` +select now(),'Erzeuge Index ix_sx_jobs_un' +from xdummy; create unique index ix_sx_jobs_un on sx_jobs (uniquename ); -! echo "Tabelle sx_jobs erzeugt" -! echo `date` +select now(),'Tabelle sx_jobs erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle orgunit_mapping' +from xdummy; + +create table orgunit_mapping( + apnr NVARCHAR(255) , +mapped_id NVARCHAR(255) , +uniquename NVARCHAR(255) not null, +lid NVARCHAR(255) +) +; + + + + +select now(),'Tabelle orgunit_mapping erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle implicit_orgunit_rights' +from xdummy; + +create table implicit_orgunit_rights( + userinfo_id INTEGER , +apnr NVARCHAR(255) , +uniquename NVARCHAR(255) not null, +lid NVARCHAR(255) +) +; + + + + +select now(),'Erzeuge Index ix_implicit_orgrights1' +from xdummy; + +create index ix_implicit_orgrights1 on implicit_orgunit_rights (userinfo_id ); + + +select now(),'Tabelle implicit_orgunit_rights erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle kern_pruefrout' +from xdummy; + +create table kern_pruefrout( + tid SERIAL , +datum DATE , +gueltig_von DATE , +gueltig_bis DATE , +tabelle_quelle CHAR(18) , +tabelle CHAR(18) , +problem NCHAR(255) , +aktion NCHAR(255) , + primary key (tid) + constraint ix_kern_pruef_tid +) +; + + + + +select now(),'Tabelle kern_pruefrout erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle masken_statistik' +from xdummy; + +create table masken_statistik( + id SERIAL not null, +tid INTEGER not null, +counter INTEGER , +first_call DATE , +last_call DATE , + primary key (id) + constraint masken_statistik_id +) +; + + + + +select now(),'Tabelle masken_statistik erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle dim_datum' +from xdummy; + +create table dim_datum( + id INTEGER not null, +year INTEGER , +month INTEGER , +day_of_month INTEGER , +day_of_week INTEGER , +day_of_year INTEGER , +week_of_year INTEGER , +day_name VARCHAR(25) , +month_name VARCHAR(25) , +quarter INTEGER , +weekend_ind CHAR(1) , +days_in_month INTEGER , +day_desc VARCHAR(25) , +day_date DATE , +semester VARCHAR(25) , +semester_key INTEGER , + primary key (id) + constraint dim_datum_id +) +; + + + + +select now(),'Erzeuge Index ix_dim_datum_day_date' +from xdummy; + +create index ix_dim_datum_day_date on dim_datum (day_date ); + + +select now(),'Tabelle dim_datum erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle hisinone_deleted_entity' +from xdummy; + +create table hisinone_deleted_entity( + person_id INTEGER , +matrikel_nr INTEGER , +entity NVARCHAR(255) , +deleted_in_hisinone datetime year to second , +deleted_in_bi datetime year to second , +job NVARCHAR(255) +) +; + + + + +select now(),'Tabelle hisinone_deleted_entity erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_step' +from xdummy; + +create table etl_step( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +systeminfo_id INTEGER not null, +step_type_id INTEGER not null, +logfile NVARCHAR(255) , +custom_step SMALLINT default 1 , + primary key (tid) + constraint etl_step_pk +) +; + + + + +select now(),'Tabelle etl_step erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_step_type' +from xdummy; + +create table etl_step_type( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +handler NVARCHAR(255) , + primary key (tid) + constraint etl_step_type_pk +) +; + + + + +select now(),'Tabelle etl_step_type erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_step_type_param' +from xdummy; + +create table etl_step_type_param( + tid SERIAL not null, +etl_step_type_id INTEGER not null, +uniquename NVARCHAR(255) not null, +name NVARCHAR(255) , +param_default NVARCHAR(255) , + primary key (tid) + constraint etl_step_type_param_pk +) +; + + +select now(),'Tabelle etl_step_type_param erzeugt' +from xdummy; -! echo "Erzeuge Tabelle sx_mail" -! echo `date` + + +select now(),'Erzeuge Tabelle etl_step_property' +from xdummy; + +create table etl_step_property( + tid SERIAL not null, +etl_step_id INTEGER not null, +prop_name NVARCHAR(255) , +prop_value TEXT , + primary key (tid) + constraint etl_step_property_pk +) +; + + + + +select now(),'Tabelle etl_step_property erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_step_relation' +from xdummy; + +create table etl_step_relation( + tid SERIAL not null, +step_id INTEGER not null, +parent_step_id INTEGER , +job_id INTEGER not null, +force_continue SMALLINT default 1 , +step_active SMALLINT default 1 , +sortnr INTEGER default 1 , +custom_step SMALLINT default 1 , + primary key (tid) + constraint etl_step_relation_pk +) +; + + + + +select now(),'Tabelle etl_step_relation erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_job' +from xdummy; + +create table etl_job( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +systeminfo_id INTEGER not null, +logfile NVARCHAR(255) , +custom_job SMALLINT default 1 , + primary key (tid) + constraint etl_job_pk +) +; + + + + +select now(),'Erzeuge Index ix_etl_job1' +from xdummy; + +create unique index ix_etl_job1 on etl_job (uniquename ); + + +select now(),'Tabelle etl_job erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle etl_job_param' +from xdummy; + +create table etl_job_param( + tid SERIAL not null, +etl_job_id INTEGER not null, +uniquename NVARCHAR(255) not null, +name NVARCHAR(255) , +param_default NVARCHAR(255) , + primary key (tid) + constraint etl_job_param_pk +) +; + + + + +select now(),'Tabelle etl_job_param erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle k_astat_studienfach_land' +from xdummy; + +create table k_astat_studienfach_land( + schluessel NVARCHAR(255) , +gueltig_ab INTEGER , +land INTEGER , +version INTEGER , +sortkey INTEGER , +gueltig_bis INTEGER , +name NVARCHAR(255) , +isced NVARCHAR(255) , +keybund NVARCHAR(255) +) +; + + + + +select now(),'Tabelle k_astat_studienfach_land erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle k_astat_abschluss3steller_land' +from xdummy; + +create table k_astat_abschluss3steller_land( + schluessel NVARCHAR(255) not null, +gueltig_ab INTEGER , +land INTEGER , +version INTEGER , +sortkey INTEGER , +gueltig_bis INTEGER , +name NVARCHAR(255) , +sig2steller NVARCHAR(255) , +keybund NVARCHAR(255) +) +; + + + + +select now(),'Tabelle k_astat_abschluss3steller_land erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle k_astat_abschluss2steller' +from xdummy; + +create table k_astat_abschluss2steller( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) +) +; + + + + +select now(),'Tabelle k_astat_abschluss2steller erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle k_astat_studienbereich' +from xdummy; + +create table k_astat_studienbereich( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) , +fgr NVARCHAR(255) +) +; + + + + +select now(),'Tabelle k_astat_studienbereich erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle k_astat_studienfach' +from xdummy; + +create table k_astat_studienfach( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) , +sb NVARCHAR(255) +) +; + + + + +select now(),'Tabelle k_astat_studienfach erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle colorscheme' +from xdummy; + +create table colorscheme( + id SERIAL not null, +caption NVARCHAR(255) , +sortorder INTEGER , +colors NVARCHAR(255) +) +; + + + + +select now(),'Tabelle colorscheme erzeugt' +from xdummy; + + + +select now(),'Erzeuge Tabelle sx_mail' +from xdummy; create table sx_mail( tid SERIAL not null, @@ -2740,13 +3291,13 @@ daemon3_interval INTEGER -! echo "Tabelle sx_mail erzeugt" -! echo `date` +select now(),'Tabelle sx_mail erzeugt' +from xdummy; -! echo "Erzeuge View user_groups" -! echo `date` +select now(),'Erzeuge View user_groups' +from xdummy; create view user_groups( userinfo_id, @@ -2759,8 +3310,8 @@ and G.tid=B.groupinfo_id and U.akt_versuch <= U.max_versuch ; -! echo "Erzeuge View menu_element_fieldmode" -! echo `date` +select now(),'Erzeuge View menu_element_fieldmode' +from xdummy; create view menu_element_fieldmode( id, @@ -2780,8 +3331,8 @@ annotation) as ; -! echo "Erzeuge View menu_element_mandatory" -! echo `date` +select now(),'Erzeuge View menu_element_mandatory' +from xdummy; create view menu_element_mandatory( id, @@ -2802,8 +3353,8 @@ annotation) as ; -! echo "Erzeuge View menu_element_nature" -! echo `date` +select now(),'Erzeuge View menu_element_nature' +from xdummy; create view menu_element_nature( id, @@ -2824,22 +3375,22 @@ annotation) as ; -! echo "Erzeuge View menu_element_orgstructure" -! echo `date` +select now(),'Erzeuge View menu_element_orgstructure' +from xdummy; create view menu_element_orgstructure( orgstruktur, description) as - select element as orgstruktur, description - from menu_element + select element as orgstruktur, description + from menu_element where element='orgstruktur' ; -! echo "Erzeuge View user_inst_org" -! echo `date` +select now(),'Erzeuge View user_inst_org' +from xdummy; create view user_inst_org( userid, @@ -2864,8 +3415,8 @@ where O.key_apnr=U.ch110_institut ; -! echo "Erzeuge View hochschulen" -! echo `date` +select now(),'Erzeuge View hochschulen' +from xdummy; create view hochschulen( hs_nr, @@ -2888,8 +3439,8 @@ or trim(substring(apnr from 4 for 1)) ='') ; -! echo "Erzeuge View dimension_view" -! echo `date` +select now(),'Erzeuge View dimension_view' +from xdummy; create view dimension_view( id, @@ -2924,10 +3475,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version' || ' from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T' - || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' + || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id' )::lvarchar as sourcesql, @@ -2952,10 +3503,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version ' || 'from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T ' - || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' + || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id ' )::lvarchar as sourcesql, @@ -2984,7 +3535,7 @@ SELECT distinct T.tid+1000000 as id, null::VARCHAR(255) as obj_guid , null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) - + union SELECT distinct T.tid+2000000 as id, D.dimension_bp_id, @@ -3005,12 +3556,12 @@ SELECT distinct T.tid+2000000 as id, null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) where D.fact_table='sva_pers_cube' - and D.name='ca108_amtsbez' + and D.name='ca108_amtsbez' ; -! echo "Erzeuge View fact_table" -! echo `date` +select now(),'Erzeuge View fact_table' +from xdummy; create view fact_table( id, @@ -3037,8 +3588,8 @@ where T.name in (select distinct fact_table from dimension) ; -! echo "Erzeuge View dim_staat" -! echo `date` +select now(),'Erzeuge View dim_staat' +from xdummy; create view dim_staat( apnr, @@ -3048,7 +3599,7 @@ kontinent, inl_ausl_kurz, inl_ausl_lang) as -SELECT +SELECT apnr, druck, uniquename::integer as astat, @@ -3063,8 +3614,8 @@ and apnr !=0 --nur für Abwärtskompatibilität zu FLEDA ; -! echo "Erzeuge View dim_stg" -! echo `date` +select now(),'Erzeuge View dim_stg' +from xdummy; create view dim_stg( apnr, @@ -3075,7 +3626,7 @@ stg_ltxt, stg_astgrp, stg_astgrp_str) as -SELECT +SELECT apnr, druck, uniquename as stg, @@ -3091,8 +3642,8 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_stg' ; -! echo "Erzeuge View dim_abschluss" -! echo `date` +select now(),'Erzeuge View dim_abschluss' +from xdummy; create view dim_abschluss( apnr, @@ -3107,7 +3658,7 @@ abschlussart_str, abschluss_grp, abschluss_grp_str) as -SELECT +SELECT apnr, druck, uniquename as abschluss, @@ -3127,8 +3678,8 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_absc ; -! echo "Erzeuge View dim_kost" -! echo `date` +select now(),'Erzeuge View dim_kost' +from xdummy; create view dim_kost( apnr, @@ -3141,78 +3692,92 @@ key) as ); -! echo "Erzeuge View dim_kotr" -! echo `date` +select now(),'Erzeuge View dim_kotr' +from xdummy; create view dim_kotr( apnr, druck, key) as - SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key + SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key FROM dim_bp_apnr WHERE dim_bp_apnr.dimension_bp_id = ( SELECT d.tid FROM dimension_bp d WHERE d.apnr = 'bluep_kotr'); + + +select now(),'Erzeuge View dim_kreis' +from xdummy; + +create view dim_kreis( + apnr, +astat, +druck, +kfz, +bland_druck, +bland_kurz, +bland_astat) as + ; --Funktion / Prozedur sp_user_themen -! echo "Erzeuge Funktion sp_user_themen" -! echo `date` +select now(),'Erzeuge Funktion sp_user_themen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_themen_ids.sql --Funktion / Prozedur sp_user_orga -! echo "Erzeuge Funktion sp_user_orga" -! echo `date` +select now(),'Erzeuge Funktion sp_user_orga' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_orga_ids.sql --Funktion / Prozedur sp_user_orga_child -! echo "Erzeuge Funktion sp_user_orga_child" -! echo `date` +select now(),'Erzeuge Funktion sp_user_orga_child' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_orga_child_ids.sql --Funktion / Prozedur day -! echo "Erzeuge Funktion day" -! echo `date` +select now(),'Erzeuge Funktion day' +from xdummy; --Funktion / Prozedur day -! echo "Erzeuge Funktion day" -! echo `date` +select now(),'Erzeuge Funktion day' +from xdummy; --Funktion / Prozedur month -! echo "Erzeuge Funktion month" -! echo `date` +select now(),'Erzeuge Funktion month' +from xdummy; --Funktion / Prozedur month -! echo "Erzeuge Funktion month" -! echo `date` +select now(),'Erzeuge Funktion month' +from xdummy; --Funktion / Prozedur year -! echo "Erzeuge Funktion year" -! echo `date` +select now(),'Erzeuge Funktion year' +from xdummy; --Funktion / Prozedur year -! echo "Erzeuge Funktion year" -! echo `date` +select now(),'Erzeuge Funktion year' +from xdummy; --Funktion / Prozedur week -! echo "Erzeuge Funktion week" -! echo `date` +select now(),'Erzeuge Funktion week' +from xdummy; CREATE FUNCTION week(dt date) @@ -3232,86 +3797,86 @@ END FUNCTION; --Funktion / Prozedur week -! echo "Erzeuge Funktion week" -! echo `date` +select now(),'Erzeuge Funktion week' +from xdummy; --Funktion / Prozedur second -! echo "Erzeuge Funktion second" -! echo `date` +select now(),'Erzeuge Funktion second' +from xdummy; --Funktion / Prozedur second -! echo "Erzeuge Funktion second" -! echo `date` +select now(),'Erzeuge Funktion second' +from xdummy; --Funktion / Prozedur minute -! echo "Erzeuge Funktion minute" -! echo `date` +select now(),'Erzeuge Funktion minute' +from xdummy; --Funktion / Prozedur minute -! echo "Erzeuge Funktion minute" -! echo `date` +select now(),'Erzeuge Funktion minute' +from xdummy; --Funktion / Prozedur hour -! echo "Erzeuge Funktion hour" -! echo `date` +select now(),'Erzeuge Funktion hour' +from xdummy; --Funktion / Prozedur hour -! echo "Erzeuge Funktion hour" -! echo `date` +select now(),'Erzeuge Funktion hour' +from xdummy; --Funktion / Prozedur current -! echo "Erzeuge Funktion current" -! echo `date` +select now(),'Erzeuge Funktion current' +from xdummy; --Funktion / Prozedur today -! echo "Erzeuge Funktion today" -! echo `date` +select now(),'Erzeuge Funktion today' +from xdummy; --Funktion / Prozedur suchen_ersetzen -! echo "Erzeuge Funktion suchen_ersetzen" -! echo `date` +select now(),'Erzeuge Funktion suchen_ersetzen' +from xdummy; --Funktion / Prozedur weekday -! echo "Erzeuge Funktion weekday" -! echo `date` +select now(),'Erzeuge Funktion weekday' +from xdummy; --Funktion / Prozedur weekday -! echo "Erzeuge Funktion weekday" -! echo `date` +select now(),'Erzeuge Funktion weekday' +from xdummy; --Funktion / Prozedur time_stamp -! echo "Erzeuge Funktion time_stamp" -! echo `date` +select now(),'Erzeuge Funktion time_stamp' +from xdummy; --Funktion / Prozedur date_val -! echo "Erzeuge Funktion date_val" -! echo `date` +select now(),'Erzeuge Funktion date_val' +from xdummy; create procedure date_val(datstr char(100)) returning date; @@ -3323,50 +3888,50 @@ END FUNCTION; --Funktion / Prozedur date -! echo "Erzeuge Funktion date" -! echo `date` +select now(),'Erzeuge Funktion date' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur now -! echo "Erzeuge Funktion now" -! echo `date` +select now(),'Erzeuge Funktion now' +from xdummy; create procedure now() returning datetime year to second; @@ -3376,14 +3941,14 @@ end procedure; --Funktion / Prozedur timestamp_to_date -! echo "Erzeuge Funktion timestamp_to_date" -! echo `date` +select now(),'Erzeuge Funktion timestamp_to_date' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; create procedure string_not_null(p_str char(255)) returning char(255); @@ -3393,32 +3958,32 @@ end procedure; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur timestamp_str -! echo "Erzeuge Funktion timestamp_str" -! echo `date` +select now(),'Erzeuge Funktion timestamp_str' +from xdummy; --Funktion / Prozedur date_str -! echo "Erzeuge Funktion date_str" -! echo `date` +select now(),'Erzeuge Funktion date_str' +from xdummy; CREATE procedure date_str(datum date) RETURNING varchar(255); return '' || datum; @@ -3426,14 +3991,14 @@ end procedure; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; create procedure val(p_str char(255)) @@ -3445,26 +4010,26 @@ end procedure; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; create procedure decval(p_str varchar(255)) @@ -3475,14 +4040,14 @@ end procedure; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; create procedure decval(p_str char(255)) @@ -3493,399 +4058,442 @@ end procedure; --Funktion / Prozedur sp_filter_orga -! echo "Erzeuge Funktion sp_filter_orga" -! echo `date` +select now(),'Erzeuge Funktion sp_filter_orga' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_filter_orga_ids.sql --Funktion / Prozedur sp_update_sequence -! echo "Erzeuge Funktion sp_update_sequence" -! echo `date` +select now(),'Erzeuge Funktion sp_update_sequence' +from xdummy; --Funktion / Prozedur sp_bool_to_smallint -! echo "Erzeuge Funktion sp_bool_to_smallint" -! echo `date` +select now(),'Erzeuge Funktion sp_bool_to_smallint' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur sp_get_subquery_str -! echo "Erzeuge Funktion sp_get_subquery_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_subquery_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_subquery_str_ids.sql --Funktion / Prozedur sp_get_keylist_str -! echo "Erzeuge Funktion sp_get_keylist_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_keylist_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_keylist_str_ids.sql --Funktion / Prozedur sp_get_keylist_str -! echo "Erzeuge Funktion sp_get_keylist_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_keylist_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_keylist_str_short_ids.sql --Funktion / Prozedur sp_get_benutzer -! echo "Erzeuge Funktion sp_get_benutzer" -! echo `date` +select now(),'Erzeuge Funktion sp_get_benutzer' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_benutzer_ids.sql --Funktion / Prozedur sp_trunc_string -! echo "Erzeuge Funktion sp_trunc_string" -! echo `date` +select now(),'Erzeuge Funktion sp_trunc_string' +from xdummy; --Funktion / Prozedur sp_trunc_string -! echo "Erzeuge Funktion sp_trunc_string" -! echo `date` +select now(),'Erzeuge Funktion sp_trunc_string' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_trunc_string_ids.sql --Funktion / Prozedur sp_table_exists -! echo "Erzeuge Funktion sp_table_exists" -! echo `date` +select now(),'Erzeuge Funktion sp_table_exists' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_table_exists_ids.sql --Funktion / Prozedur sp_view_exists -! echo "Erzeuge Funktion sp_view_exists" -! echo `date` +select now(),'Erzeuge Funktion sp_view_exists' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_view_exists_ids.sql --Funktion / Prozedur today -! echo "Erzeuge Funktion today" -! echo `date` +select now(),'Erzeuge Funktion today' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_today_ids.sql --Funktion / Prozedur to_number -! echo "Erzeuge Funktion to_number" -! echo `date` +select now(),'Erzeuge Funktion to_number' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_to_number_ids.sql --Funktion / Prozedur sp_get_dbform_right -! echo "Erzeuge Funktion sp_get_dbform_right" -! echo `date` +select now(),'Erzeuge Funktion sp_get_dbform_right' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_dbform_right_ids.sql - --Funktion / Prozedur sp_set_organigramm_eb + --Funktion / Prozedur add_sem -! echo "Erzeuge Funktion sp_set_organigramm_eb" -! echo `date` +select now(),'Erzeuge Funktion add_sem' +from xdummy; + +--Funktion / Prozedur sp_set_organigramm_eb + + +select now(),'Erzeuge Funktion sp_set_organigramm_eb' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_set_organigramm_eb_ids.sql --Funktion / Prozedur sp_set_organigramm_lehr -! echo "Erzeuge Funktion sp_set_organigramm_lehr" -! echo `date` +select now(),'Erzeuge Funktion sp_set_organigramm_lehr' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_set_organigramm_lehr_ids.sql + --Funktion / Prozedur trim_all_whitespace + + +select now(),'Erzeuge Funktion trim_all_whitespace' +from xdummy; + +! DOSQL $SUPERX_DIR/db/install/prozeduren/trim_all_whitespace_ids.sql --Install-Schritt: Füllen der Kernmodul-Tabellen -! echo "Lade Tabelle aggregierung" -! echo `date` +select now(),'Lade Tabelle aggregierung' +from xdummy; !sx_auto_upload_table.x aggregierung $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/aggregierung.unl -! echo "Lade Tabelle masken_felder_bez" -! echo `date` +select now(),'Lade Tabelle masken_felder_bez' +from xdummy; !sx_auto_upload_table.x masken_felder_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/masken_felder_bez.unl -! echo "Lade Tabelle sachgebiete" -! echo `date` +select now(),'Lade Tabelle sachgebiete' +from xdummy; !sx_auto_upload_table.x sachgebiete $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sachgebiete.unl -! echo "Lade Tabelle sachgeb_maske_bez" -! echo `date` +select now(),'Lade Tabelle sachgeb_maske_bez' +from xdummy; !sx_auto_upload_table.x sachgeb_maske_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sachgeb_maske_bez.unl -! echo "Lade Tabelle user_masken_bez" -! echo `date` +select now(),'Lade Tabelle user_masken_bez' +from xdummy; !sx_auto_upload_table.x user_masken_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/user_masken_bez.unl -! echo "Lade Tabelle user_sachgeb_bez" -! echo `date` +select now(),'Lade Tabelle user_sachgeb_bez' +from xdummy; !sx_auto_upload_table.x user_sachgeb_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/user_sachgeb_bez.unl -! echo "Lade Tabelle xdummy" -! echo `date` +select now(),'Lade Tabelle xdummy' +from xdummy; !sx_auto_upload_table.x xdummy $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/xdummy.unl -! echo "Lade Tabelle groupinfo" -! echo `date` +select now(),'Lade Tabelle groupinfo' +from xdummy; !sx_auto_upload_table.x groupinfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/groupinfo.unl -! echo "Lade Tabelle user_group_bez" -! echo `date` +select now(),'Lade Tabelle user_group_bez' +from xdummy; !sx_auto_upload_table.x user_group_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/user_group_bez.unl -! echo "Lade Tabelle group_sachgeb_bez" -! echo `date` +select now(),'Lade Tabelle group_sachgeb_bez' +from xdummy; !sx_auto_upload_table.x group_sachgeb_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/group_sachgeb_bez.unl -! echo "Lade Tabelle group_masken_bez" -! echo `date` +select now(),'Lade Tabelle group_masken_bez' +from xdummy; !sx_auto_upload_table.x group_masken_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/group_masken_bez.unl -! echo "Lade Tabelle aggre_bland" -! echo `date` +select now(),'Lade Tabelle aggre_bland' +from xdummy; !sx_auto_upload_table.x aggre_bland $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/aggre_bland.unl -! echo "Lade Tabelle cif" -! echo `date` +select now(),'Lade Tabelle cif' +from xdummy; !sx_auto_upload_table.x cif $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/cif.unl -! echo "Lade Tabelle cifx" -! echo `date` +select now(),'Lade Tabelle cifx' +from xdummy; !sx_auto_upload_table.x cifx $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/cifx.unl -! echo "Lade Tabelle felderinfo" -! echo `date` +select now(),'Lade Tabelle felderinfo' +from xdummy; !sx_auto_upload_table.x felderinfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/felderinfo.unl -! echo "Lade Tabelle hochschulinfo" -! echo `date` +select now(),'Lade Tabelle hochschulinfo' +from xdummy; !sx_auto_upload_table.x hochschulinfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/hochschulinfo.unl -! echo "Lade Tabelle maske_system_bez" -! echo `date` +select now(),'Lade Tabelle maske_system_bez' +from xdummy; !sx_auto_upload_table.x maske_system_bez $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/maske_system_bez.unl -! echo "Lade Tabelle maskeninfo" -! echo `date` +select now(),'Lade Tabelle maskeninfo' +from xdummy; !sx_auto_upload_table.x maskeninfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/maskeninfo.unl -! echo "Lade Tabelle proto_funktion" -! echo `date` +select now(),'Lade Tabelle proto_funktion' +from xdummy; !sx_auto_upload_table.x proto_funktion $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/proto_funktion.unl -! echo "Lade Tabelle systeminfo" -! echo `date` +select now(),'Lade Tabelle systeminfo' +from xdummy; !sx_auto_upload_table.x systeminfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/systeminfo.unl -! echo "Lade Tabelle user_einstellungen" -! echo `date` +select now(),'Lade Tabelle user_einstellungen' +from xdummy; !sx_auto_upload_table.x user_einstellungen $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/user_einstellungen.unl -! echo "Lade Tabelle userinfo" -! echo `date` +select now(),'Lade Tabelle userinfo' +from xdummy; !sx_auto_upload_table.x userinfo $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/userinfo.unl -! echo "Lade Tabelle themenbaum" -! echo `date` +select now(),'Lade Tabelle themenbaum' +from xdummy; !sx_auto_upload_table.x themenbaum $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/themenbaum.unl -! echo "Lade Tabelle themenbaum_bak" -! echo `date` +select now(),'Lade Tabelle themenbaum_bak' +from xdummy; !sx_auto_upload_table.x themenbaum_bak $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/themenbaum_bak.unl -! echo "Lade Tabelle nachricht" -! echo `date` +select now(),'Lade Tabelle nachricht' +from xdummy; !sx_auto_upload_table.x nachricht $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/nachricht.unl -! echo "Lade Tabelle menu_element" -! echo `date` +select now(),'Lade Tabelle menu_element' +from xdummy; !sx_auto_upload_table.x menu_element $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/menu_element.unl -! echo "Lade Tabelle organigramm" -! echo `date` +select now(),'Lade Tabelle organigramm' +from xdummy; !sx_auto_upload_table.x organigramm $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/organigramm.unl -! echo "Lade Tabelle organigramm_bak" -! echo `date` +select now(),'Lade Tabelle organigramm_bak' +from xdummy; !sx_auto_upload_table.x organigramm_bak $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/organigramm_bak.unl -! echo "Lade Tabelle user_institution" -! echo `date` +select now(),'Lade Tabelle user_institution' +from xdummy; !sx_auto_upload_table.x user_institution $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/user_institution.unl -! echo "Lade Tabelle protokoll" -! echo `date` +select now(),'Lade Tabelle protokoll' +from xdummy; !sx_auto_upload_table.x protokoll $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/protokoll.unl -! echo "Lade Tabelle trans_inst" -! echo `date` +select now(),'Lade Tabelle trans_inst' +from xdummy; !sx_auto_upload_table.x trans_inst $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/trans_inst.unl -! echo "Lade Tabelle konstanten" -! echo `date` +select now(),'Lade Tabelle konstanten' +from xdummy; !sx_auto_upload_table.x konstanten $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/konstanten.unl -! echo "Lade Tabelle lehreinheit_inst" -! echo `date` +select now(),'Lade Tabelle lehreinheit_inst' +from xdummy; !sx_auto_upload_table.x lehreinheit_inst $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/lehreinheit_inst.unl -! echo "Lade Tabelle sx_mask_style" -! echo `date` +select now(),'Lade Tabelle sx_mask_style' +from xdummy; !sx_auto_upload_table.x sx_mask_style $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_mask_style.unl -! echo "Lade Tabelle sichten" -! echo `date` +select now(),'Lade Tabelle sichten' +from xdummy; !sx_auto_upload_table.x sichten $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sichten.unl -! echo "Lade Tabelle fm_templates" -! echo `date` +select now(),'Lade Tabelle fm_templates' +from xdummy; !sx_auto_upload_table.x fm_templates $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/fm_templates.unl -! echo "Lade Tabelle sx_captions" -! echo `date` +select now(),'Lade Tabelle sx_captions' +from xdummy; !sx_auto_upload_table.x sx_captions $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_captions.unl -! echo "Lade Tabelle sx_portlet" -! echo `date` +select now(),'Lade Tabelle sx_portlet' +from xdummy; !sx_auto_upload_table.x sx_portlet $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_portlet.unl -! echo "Lade Tabelle sx_repository" -! echo `date` +select now(),'Lade Tabelle sx_repository' +from xdummy; !sx_auto_upload_table.x sx_repository $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_repository.unl -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql ausführen" -! echo `date` +select now(),'Lade Tabelle k_astat_studienfach_land' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienfach_land $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach_land.unl + + +select now(),'Lade Tabelle k_astat_abschluss3steller_land' +from xdummy; + +!sx_auto_upload_table.x k_astat_abschluss3steller_land $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss3steller_land.unl + + +select now(),'Lade Tabelle k_astat_abschluss2steller' +from xdummy; + +!sx_auto_upload_table.x k_astat_abschluss2steller $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss2steller.unl + + +select now(),'Lade Tabelle k_astat_studienfach' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienfach $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach.unl + + +select now(),'Lade Tabelle k_astat_studienbereich' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienbereich $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienbereich.unl + + +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen_init.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen_init.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen_init.sql --Integrieren: -! echo "Fülle db_version" -! echo `date` +select now(),'Fülle db_version' +from xdummy; delete from db_version where his_system='kern'; -insert into db_version (his_system,version) values('kern','4.9'); +insert into db_version (his_system,version,systeminfo_id) values('kern','5.0',9); -! echo "Fülle db_tabellen" -! echo `date` +select now(),'Fülle db_tabellen' +from xdummy; delete from db_tabellen where name='sichtart_rechttabelle'; insert into db_tabellen (name,protokollierung) values('sichtart_rechttabelle',0); @@ -3943,6 +4551,8 @@ delete from db_tabellen where name='trans_cifx'; insert into db_tabellen (name,protokollierung) values('trans_cifx',0); delete from db_tabellen where name='trans_cif'; insert into db_tabellen (name,protokollierung) values('trans_cif',0); +delete from db_tabellen where name='cifx_customize'; +insert into db_tabellen (name,protokollierung) values('cifx_customize',0); delete from db_tabellen where name='felderinfo'; insert into db_tabellen (name,protokollierung) values('felderinfo',0); delete from db_tabellen where name='hochschulinfo'; @@ -3993,6 +4603,8 @@ delete from db_tabellen where name='sx_stylesheets'; insert into db_tabellen (name,protokollierung) values('sx_stylesheets',0); delete from db_tabellen where name='sx_mask_style'; insert into db_tabellen (name,protokollierung) values('sx_mask_style',0); +delete from db_tabellen where name='sx_stylesheet_param'; +insert into db_tabellen (name,protokollierung) values('sx_stylesheet_param',0); delete from db_tabellen where name='sx_captions'; insert into db_tabellen (name,protokollierung) values('sx_captions',0); delete from db_tabellen where name='fm_templates'; @@ -4081,6 +4693,8 @@ delete from db_tabellen where name='user_portlet_bez'; insert into db_tabellen (name,protokollierung) values('user_portlet_bez',0); delete from db_tabellen where name='group_portlet_bez'; insert into db_tabellen (name,protokollierung) values('group_portlet_bez',0); +delete from db_tabellen where name='kern_cifx_neu'; +insert into db_tabellen (name,protokollierung) values('kern_cifx_neu',0); delete from db_tabellen where name='sieve'; insert into db_tabellen (name,protokollierung) values('sieve',0); delete from db_tabellen where name='sieve_column_def'; @@ -4091,23 +4705,63 @@ delete from db_tabellen where name='sieve_field'; insert into db_tabellen (name,protokollierung) values('sieve_field',0); delete from db_tabellen where name='sx_jobs'; insert into db_tabellen (name,protokollierung) values('sx_jobs',0); +delete from db_tabellen where name='orgunit_mapping'; +insert into db_tabellen (name,protokollierung) values('orgunit_mapping',0); +delete from db_tabellen where name='implicit_orgunit_rights'; +insert into db_tabellen (name,protokollierung) values('implicit_orgunit_rights',0); +delete from db_tabellen where name='kern_pruefrout'; +insert into db_tabellen (name,protokollierung) values('kern_pruefrout',0); +delete from db_tabellen where name='masken_statistik'; +insert into db_tabellen (name,protokollierung) values('masken_statistik',0); +delete from db_tabellen where name='dim_datum'; +insert into db_tabellen (name,protokollierung) values('dim_datum',0); +delete from db_tabellen where name='hisinone_deleted_entity'; +insert into db_tabellen (name,protokollierung) values('hisinone_deleted_entity',0); +delete from db_tabellen where name='etl_step'; +insert into db_tabellen (name,protokollierung) values('etl_step',0); +delete from db_tabellen where name='etl_step_type'; +insert into db_tabellen (name,protokollierung) values('etl_step_type',0); +delete from db_tabellen where name='etl_step_type_param'; +insert into db_tabellen (name,protokollierung) values('etl_step_type_param',0); +delete from db_tabellen where name='etl_step_property'; +insert into db_tabellen (name,protokollierung) values('etl_step_property',0); +delete from db_tabellen where name='etl_step_relation'; +insert into db_tabellen (name,protokollierung) values('etl_step_relation',0); +delete from db_tabellen where name='etl_job'; +insert into db_tabellen (name,protokollierung) values('etl_job',0); +delete from db_tabellen where name='etl_job_param'; +insert into db_tabellen (name,protokollierung) values('etl_job_param',0); +delete from db_tabellen where name='k_astat_studienfach_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach_land',0); +delete from db_tabellen where name='k_astat_abschluss3steller_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss3steller_land',0); +delete from db_tabellen where name='k_astat_abschluss2steller'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss2steller',0); +delete from db_tabellen where name='k_astat_studienbereich'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienbereich',0); +delete from db_tabellen where name='k_astat_studienfach'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach',0); +delete from db_tabellen where name='colorscheme'; +insert into db_tabellen (name,protokollierung) values('colorscheme',0); delete from db_tabellen where name='sx_mail'; insert into db_tabellen (name,protokollierung) values('sx_mail',0); -! echo "Fülle sachgebiete, systeminfo und themenbaum" -! echo `date` +select now(),'Fülle sachgebiete, systeminfo und themenbaum' +from xdummy; --Das Sachgebiet wird erzeugt, ggf. vorherige Sachgebiete sichern. -delete from sachgebiete where tid=0; -insert into sachgebiete(tid,name) values (0,'Administration'); --- den admins die Rechte geben -delete from group_sachgeb_bez where sachgebiete_id=0; + +insert into sachgebiete(tid,name) select 0,'Administration' +from xdummy +where 0=(select count(*) from sachgebiete S where S.tid=0); insert into group_sachgeb_bez -select G.tid,0 from groupinfo G where G.name='Administratoren' or G.name='superx' ; +select G.tid,0 from groupinfo G +where (G.name='Administratoren' or G.name='superx') +and 0=(select count(*) from group_sachgeb_bez G where G.sachgebiete_id=0); -- his1 rightname fuer Sachgebiete nachtragen @@ -4119,13 +4773,16 @@ update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_OU]' where update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_USERINFO]' where tid=53; update sachgebiete set rightname='CS_BIA_ADMINISTRATE_TOPIC_AREA[CORE_LOAD]' where tid=54; - -- wird auch noch mal als template aufgerufen in sx_tables_fuellen.sql vergl. http://ics/ilias3/goto.php?target=wiki_40_SingleSignOn-Rechteuebernahme&client_id=memtext --Das system wird erzeugt, ggf. vorherige systeme sichern. -delete from systeminfo where tid=9; -insert into systeminfo(tid,name,datum) values (9,'Administration',date('1.1.1900')); + -- wird auch noch mal als template aufgerufen in sx_tables_fuellen.sql --Das system wird erzeugt, ggf. vorherige systeme sichern. +insert into systeminfo(tid,name,datum) select 9,'Administration',date('1.1.1900') +from xdummy +where 0=(select count(*) from systeminfo S where S.tid=9); -! echo "Das Thema und die Masken in den Themenbaum einfügen" -! echo `date` + + +select now(),'Das Thema und die Masken in den Themenbaum einfügen' +from xdummy; --Das Thema und die Masken in den Themenbaum einfügen @@ -4157,8 +4814,8 @@ create temp table tmp_themenbaum -! echo "root für das Modul einfügen und in den Themenbaum einhängen:" -! echo `date` +select now(),'root für das Modul einfügen und in den Themenbaum einhängen:' +from xdummy; insert into tmp_themenbaum @@ -4214,6 +4871,18 @@ insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuteru --gibt es das Thema schon? delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Benutzer' or T.name='Administration'); +insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuterung) + values('Entwicklung','Administration','01.01.1900','01.01.3000','Spezielle Funktionen für die Entwicklung'); + +--gibt es das Thema schon? +delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Entwicklung' +or T.name='Administration'); +insert into tmp_themenbaum(name, parentname, gueltig_seit,gueltig_bis,erlaeuterung) + values('Stammdaten verwalten','Administration','01.01.1900','01.01.3000','Abfragen zur Stammdatenverwaltung'); + +--gibt es das Thema schon? +delete from tmp_themenbaum where name in (select T.name from themenbaum T where T.name='Stammdaten verwalten' +or T.name='Administration'); --root für das Modul einfügen und in den Themenbaum einhängen --update themenbaum_bak set parent=(select tid from themenbaum where parent is null) @@ -4227,8 +4896,8 @@ or T.name='Administration'); --Nun die einzelnen Masken -! echo "Nun die einzelnen Masken:" -! echo `date` +select now(),'Nun die einzelnen Masken:' +from xdummy; insert into tmp_themenbaum @@ -4273,12 +4942,6 @@ insert into tmp_themenbaum gueltig_bis) values('Feld suchen','70570','Felder','01.01.1900','01.01.3000'); -insert into tmp_themenbaum -( name ,maskeninfo_id, parentname, - gueltig_seit , - gueltig_bis) -values('User einrichten','70970','Benutzer verwalten','01.01.1900','01.01.3000'); - insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , @@ -4331,7 +4994,7 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Institution suchen','71080','Administration','01.01.1900','01.01.3000'); +values('Organisationseinheiten suchen','71080','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, @@ -4391,7 +5054,7 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Entladeparameter suchen','71260','Administration','01.01.1900','01.01.3000'); +values('Entladeparameter bearbeiten','71260','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, @@ -4453,12 +5116,24 @@ insert into tmp_themenbaum gueltig_bis) values('Bericht Gruppenrahmen','71440','Benutzerinfo verwalten','01.01.1900','01.01.3000'); +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Organigrammquelle bearbeiten','71480','Administration','01.01.1900','01.01.3000'); + insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) values('Konstanten bearbeiten','71500','Administration','01.01.1900','01.01.3000'); +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Datensieb erstellen','71520','Administration','01.01.1900','01.01.3000'); + insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , @@ -4475,20 +5150,38 @@ insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Datenanalyse Würfel entwerfen','71580','Masken verwalten','01.01.1900','01.01.3000'); +values('Stammdatenverwaltung','71620','Administration','01.01.1900','01.01.3000'); insert into tmp_themenbaum ( name ,maskeninfo_id, parentname, gueltig_seit , gueltig_bis) -values('Stammdatenverwaltung','71620','Administration','01.01.1900','01.01.3000'); +values('OrgUnitTests','71640','Entwicklung','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Prüfprotokoll Administration','71660','Administration','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Nutzungsstatistik - Berichte','71680','Administration','01.01.1900','01.01.3000'); + +insert into tmp_themenbaum +( name ,maskeninfo_id, parentname, + gueltig_seit , + gueltig_bis) +values('Gastzugang einrichten','71770','Administration','01.01.1900','01.01.3000'); --gibt es die Maske schon? delete from tmp_themenbaum where maskeninfo_id in (select T.maskeninfo_id from themenbaum T); -! echo "Die einzelnen Masken sind eingefügt." -! echo `date` +select now(),'Die einzelnen Masken sind eingefügt.' +from xdummy; @@ -4514,10 +5207,12 @@ update themenbaum set erlaeuterung='Abfragen zur Maskenverwaltung' where name='M update themenbaum set erlaeuterung='Uploads/Downloads verwalten' where name='Uploads/Downloads verwalten'; update themenbaum set erlaeuterung='Abfragen zur Feld-Verwaltung' where name='Felder'; update themenbaum set erlaeuterung='Benutzereinstellungen (Passwort ändern etc.)' where name='Benutzer'; +update themenbaum set erlaeuterung='Spezielle Funktionen für die Entwicklung' where name='Entwicklung'; +update themenbaum set erlaeuterung='Abfragen zur Stammdatenverwaltung' where name='Stammdaten verwalten'; -! echo "db_forms einfügen" -! echo `date` +select now(),'db_forms einfügen' +from xdummy; CREATE temp TABLE tmp_db_forms ( @@ -4529,109 +5224,115 @@ CREATE temp TABLE tmp_db_forms ( description character(255) ); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten','In diesem Formular können Sie Sachgebiete verwalten.'); +values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Sachgebiete verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten'::varchar(200),'In diesem Formular können Sie XSL-Stylesheets verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten'::varchar(200),'In diesem Formular können Sie Organisationseinheiten verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten'::varchar(200),'In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten','In diesem Formular können Sie XSL-Stylesheets verwalten.'); +values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten'::varchar(200),'In diesem Formular können Sie Maskendefinitionen verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten','In diesem Formular können Sie Institutionen verwalten.'); +values ('macro_feld_wert_list','macro_feld_wert','/edit/kern/macro_feld_wert_list.jsp','Feld-Vorbelegung von Makro-Masken'::varchar(200),'In diesem Formular können Sie Feld-Vorbelegung von Makro-Masken verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten','In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'); +values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten'::varchar(200),'In diesem Formular können Sie Felder verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten','In diesem Formular können Sie Masken verwalten.'); +values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten'::varchar(200),'In diesem Formular können Sie Quellsysteme verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten','In diesem Formular können Sie Felder verwalten.'); +values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten','In diesem Formular können Sie Quellsysteme verwalten.'); +values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten'::varchar(200),'In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten','In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten','In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'); +values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum'::varchar(200),'In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten'::varchar(200),'In diesem Formular können Sie Sichten auf das Organigramm verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum','In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete'::varchar(200),'In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten','In diesem Formular können Sie Sichten auf das Organigramm verwalten.'); +values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder'::varchar(200),'In diesem Formular können Sie Felder zu Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete','In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'); +values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme'::varchar(200),'In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder','In diesem Formular können Sie Felder zu Masken zuordnen.'); +values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme','In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'); +values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros (Einzelbearbeitung)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten'::varchar(200),'In diesem Formular können Sie Konstanten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros (Liste)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten','In diesem Formular können Sie Konstanten verwalten.'); +values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo'::varchar(200),'In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten',''); +values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete'::varchar(200),'In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo','In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete','In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten','In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen'::varchar(200),'In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten','In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen','In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'); +values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten','In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten','In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads'::varchar(200),'In diesem Formular können Sie Downloads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte'::varchar(200),'In diesem Formular können Sie Stichworte bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads','In diesem Formular können Sie Downloads bearbeiten. '); +values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte','In diesem Formular können Sie Stichworte bearbeiten. '); +values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten','In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '); +values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten','In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '); +values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten',''); +values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads'::varchar(200),'In diesem Formular können Sie Uploads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads','In diesem Formular können Sie Uploads bearbeiten. '); +values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections'::varchar(200),'In diesem Formular können Sie DB Connections bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets'::varchar(200),'In diesem Formular können Sie Portlets bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections','In diesem Formular können Sie DB Connections bearbeiten.'); +values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets','In diesem Formular können Sie Portlets bearbeiten.'); +values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm'::varchar(200),'In diesem Formular können Sie das Organigramm aufrufen'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('sx_stylesheet_param_edit','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_edit.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm','In diesem Formular können Sie das Organigramm aufrufen'); +values ('sx_stylesheet_param_list','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_list.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); create temp table tmp_hilf(tid integer); insert into tmp_hilf select max(tid) from db_forms; @@ -4647,12 +5348,11 @@ drop table tmp_hilf; drop table tmp_db_forms; -! echo "Fülle sx_tables, sx_fields und unload_params" -! echo `date` +select now(),'Fülle sx_tables, sx_fields und unload_params' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/conf/sx_tables_fuellen.sql -! DOSQL $SUPERX_DIR/db/install/conf/sx_fields_fuellen.sql ! DOSQL $SUPERX_DIR/db/install/conf/unload_params_fuellen.sql ! DOSQL $SUPERX_DIR/db/install/kern_install_custom.sql diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_install_pg.sql b/superx/WEB-INF/conf/edustore/db/install/kern_install_pg.sql index e00f60a..ec95d96 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_install_pg.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_install_pg.sql @@ -1266,11 +1266,11 @@ select now(),'Erzeuge Tabelle organigramm' from xdummy; create table organigramm( - tid INTEGER not null, + tid SERIAL not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name CHAR(150) , +drucktext VARCHAR(255) , +name VARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, @@ -1349,8 +1349,8 @@ create table organigramm_bak( tid INTEGER not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name CHAR(150) , +drucktext VARCHAR(255) , +name VARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_load_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_load_ids.sql index 15f03f3..d224034 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_load_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_load_ids.sql @@ -1,443 +1,17 @@ -- XML-generiertes SQL-Script fuer dbaccess--von module_etl.xsl ---ETL-Schritt load: Upload der KERN-Rohdaten +--ETL-Schritt load: -! echo "SQL-Ausdruck CREATE TABLE tmp_userinfo (tid integer, benutzer char(30), kennwort char(16), name char(50), max_versuch smallint, akt_versuch smallint, email char(255), administration smallint, archiv_recht smallint, passwd_sha char(40), info char(255), extern_account_id varchar(255), extern_person_id varchar(255),sieht_projekte SMALLINT); ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/organigrammquelle_pruefen.sql ausführen' +from xdummy; -CREATE TABLE tmp_userinfo (tid integer, benutzer char(30), kennwort char(16), name char(50), max_versuch smallint, akt_versuch smallint, email char(255), administration smallint, archiv_recht smallint, passwd_sha char(40), info char(255), extern_account_id varchar(255), extern_person_id varchar(255),sieht_projekte SMALLINT); - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_group_bez (userinfo_id integer, groupinfo_id integer, external_entry smallint); ausführen" -! echo `date` +! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/organigrammquelle_pruefen.sql -CREATE TABLE tmp_user_group_bez (userinfo_id integer, groupinfo_id integer, external_entry smallint); - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_institution (userid integer, name char(50), ch110_institut char(10), hierarchie smallint, gueltig_seit date, gueltig_bis date, lehre smallint, external_entry smallint, externalid varchar(200)); ausführen" -! echo `date` +select now(),'Lade Tabelle kern_cifx_neu' +from xdummy; -CREATE TABLE tmp_user_institution (userid integer, name char(50), ch110_institut char(10), hierarchie smallint, gueltig_seit date, gueltig_bis date, lehre smallint, external_entry smallint, externalid varchar(200)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_masken_bez (userinfo_id integer, maskeninfo_id integer, external_entry smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_user_masken_bez (userinfo_id integer, maskeninfo_id integer, external_entry smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_pw (userinfo_id integer, pw_gueltig_bis date, last_login datetime year to second, old_sha1 char(40), zeitpunkt1 datetime year to second, old_sha2 char(40), zeitpunkt2 datetime year to second, old_sha3 char(40), zeitpunkt3 datetime year to second, old_sha4 char(40), zeitpunkt4 datetime year to second, old_sha5 char(40), zeitpunkt5 datetime year to second, old_sha6 char(40), zeitpunkt6 datetime year to second, old_sha7 char(40), zeitpunkt7 datetime year to second); ausführen" -! echo `date` - -CREATE TABLE tmp_user_pw (userinfo_id integer, pw_gueltig_bis date, last_login datetime year to second, old_sha1 char(40), zeitpunkt1 datetime year to second, old_sha2 char(40), zeitpunkt2 datetime year to second, old_sha3 char(40), zeitpunkt3 datetime year to second, old_sha4 char(40), zeitpunkt4 datetime year to second, old_sha5 char(40), zeitpunkt5 datetime year to second, old_sha6 char(40), zeitpunkt6 datetime year to second, old_sha7 char(40), zeitpunkt7 datetime year to second); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_sachgeb_bez (userinfo_id integer, sachgebiete_id integer, external_entry smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_user_sachgeb_bez (userinfo_id integer, sachgebiete_id integer, external_entry smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_sichtarten (userinfo_id integer, sichtart char(255), external_entry smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_user_sichtarten (userinfo_id integer, sichtart char(255), external_entry smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_user_sichten (userinfo_id integer, sicht_name_intern char(200), external_entry smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_user_sichten (userinfo_id integer, sicht_name_intern char(200), external_entry smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_group_field_pref (tid integer, groupinfo_id integer, field_id integer, pref varchar(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_group_field_pref (tid integer, groupinfo_id integer, field_id integer, pref varchar(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_group_masken_bez (groupinfo_id integer, maskeninfo_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_group_masken_bez (groupinfo_id integer, maskeninfo_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_group_sachgeb_bez (groupinfo_id integer, sachgebiete_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_group_sachgeb_bez (groupinfo_id integer, sachgebiete_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_group_sichtarten (groupinfo_id integer, sichtart char(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_group_sichtarten (groupinfo_id integer, sichtart char(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_group_sichten (groupinfo_id integer, sicht_name_intern char(200)); ausführen" -! echo `date` - -CREATE TABLE tmp_group_sichten (groupinfo_id integer, sicht_name_intern char(200)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_groupinfo (tid integer, name char(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_groupinfo (tid integer, name char(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_fin_user_kam (tid integer, userid integer, buchungsab_fb char(10), projnr_ins char(255), kapitel char(5), dr char(5), titel char(255), untertitel char(5), kostenstellen char(255), ins2 char(10), ins3 char(10), gueltig_von date, gueltig_bis date); ausführen" -! echo `date` - -CREATE TABLE tmp_fin_user_kam (tid integer, userid integer, buchungsab_fb char(10), projnr_ins char(255), kapitel char(5), dr char(5), titel char(255), untertitel char(5), kostenstellen char(255), ins2 char(10), ins3 char(10), gueltig_von date, gueltig_bis date); - - -! echo "SQL-Ausdruck create table tmp_hochschulinfo (name char(100), adresse char(200), hs_nr integer, kapitel char(5), superx_server char(100), kennung char(8), passwd char(16) ); ausführen" -! echo `date` - -create table tmp_hochschulinfo (name char(100), adresse char(200), hs_nr integer, kapitel char(5), superx_server char(100), kennung char(8), passwd char(16) ); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_konstanten (tid integer, apnr integer, beschreibung char(25)); ausführen" -! echo `date` - -CREATE TABLE tmp_konstanten (tid integer, apnr integer, beschreibung char(25)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_unload_params (tid integer, param_id varchar(255), param_val varchar(255), default_val varchar(255), description varchar(255), systeminfo_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_unload_params (tid integer, param_id varchar(255), param_val varchar(255), default_val varchar(255), description varchar(255), systeminfo_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sx_repository (tid integer, id char(200), content text, caption char(200), comment text, version smallint, art char(200), art2 char(200), art3 char(200), sachgebiete_id integer, sort1 integer, sort2 integer, sort3 integer, geaendert_am date, aktiv smallint, gueltig_seit date, gueltig_bis date); ausführen" -! echo `date` - -CREATE TABLE tmp_sx_repository (tid integer, id char(200), content text, caption char(200), comment text, version smallint, art char(200), art2 char(200), art3 char(200), sachgebiete_id integer, sort1 integer, sort2 integer, sort3 integer, geaendert_am date, aktiv smallint, gueltig_seit date, gueltig_bis date); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_themenbaum (tid integer, name varchar(255), maskeninfo_id integer, parent integer, gueltig_seit date, gueltig_bis date, erlaeuterung char(240), sort integer, css_class character varying(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_themenbaum (tid integer, name varchar(255), maskeninfo_id integer, parent integer, gueltig_seit date, gueltig_bis date, erlaeuterung char(240), sort integer, css_class character varying(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_maskeninfo (tid integer, name char(255), select_stmt text, xil_proplist text, chart_xtitel char(50), chart_ytitel char(50), erlaeuterung char(255), cleanup_stmt char(240), default_file char(200), macro smallint, breite integer, hoehe integer, ampel smallint, hilfe smallint, hinweis text); ausführen" -! echo `date` - -CREATE TABLE tmp_maskeninfo (tid integer, name char(255), select_stmt text, xil_proplist text, chart_xtitel char(50), chart_ytitel char(50), erlaeuterung char(255), cleanup_stmt char(240), default_file char(200), macro smallint, breite integer, hoehe integer, ampel smallint, hilfe smallint, hinweis text); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_felderinfo (tid integer, name char(50), nummer integer, x integer, y integer, buttonbreite integer, feldbreite integer, zeilenanzahl integer, typ char(15), laenge integer, obligatorisch integer, art integer, relation text, attribut char(100), defaultwert char(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_felderinfo (tid integer, name char(50), nummer integer, x integer, y integer, buttonbreite integer, feldbreite integer, zeilenanzahl integer, typ char(15), laenge integer, obligatorisch integer, art integer, relation text, attribut char(100), defaultwert char(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_masken_felder_bez (maskeninfo_id integer, felderinfo_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_masken_felder_bez (maskeninfo_id integer, felderinfo_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_maske_system_bez (maskeninfo_id integer, systeminfo_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_maske_system_bez (maskeninfo_id integer, systeminfo_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sachgeb_maske_bez (sachgebiete_id integer, maskeninfo_id integer); ausführen" -! echo `date` - -CREATE TABLE tmp_sachgeb_maske_bez (sachgebiete_id integer, maskeninfo_id integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sx_stylesheets (tid integer, filename char(255), caption char(255), description char(255), relation char(10), useragent char(255), contenttype char(200)); ausführen" -! echo `date` - -CREATE TABLE tmp_sx_stylesheets (tid integer, filename char(255), caption char(255), description char(255), relation char(10), useragent char(255), contenttype char(200)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sx_mask_style (tid integer, maskeninfo_id integer, stylesheet_id integer, ord smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_sx_mask_style (tid integer, maskeninfo_id integer, stylesheet_id integer, ord smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_stylesheet_field (tid integer, stylesheet_id integer, tablename varchar(255), fieldname varchar(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_stylesheet_field (tid integer, stylesheet_id integer, tablename varchar(255), fieldname varchar(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_macro_masken_bez (maskeninfo_id1 integer, maskeninfo_id2 integer, active integer, sortnr smallint, schleifenrelation char(255), schleifenfeldname char(255), alias char(255), schleifenfstand char(255), schleifenfsicht char(255), aktion char(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_macro_masken_bez (maskeninfo_id1 integer, maskeninfo_id2 integer, active integer, sortnr smallint, schleifenrelation char(255), schleifenfeldname char(255), alias char(255), schleifenfstand char(255), schleifenfsicht char(255), aktion char(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_macro_feld_wert (macro integer, sortnr integer, feldname char(255), alias char(255), value char(255), value_caption char(255), feldstand char(255), feldsicht char(255), active integer); ausführen" -! echo `date` - -CREATE TABLE tmp_macro_feld_wert (macro integer, sortnr integer, feldname char(255), alias char(255), value char(255), value_caption char(255), feldstand char(255), feldsicht char(255), active integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sx_captions (tid integer, id char(200), table_name char(200), field_name char(200), record_no integer, locale char(10), contents_short char(255), contents_long text, equalitystatus smallint, sachgebiete_id integer, doku_link varchar(255), export_to_glossar integer); ausführen" -! echo `date` - -CREATE TABLE tmp_sx_captions (tid integer, id char(200), table_name char(200), field_name char(200), record_no integer, locale char(10), contents_short char(255), contents_long text, equalitystatus smallint, sachgebiete_id integer, doku_link varchar(255), export_to_glossar integer); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_sichten (tid integer, parent char(255), systeminfoid integer, art char(40), type integer, name_intern char(200), name char(200), beschreibung char(255), sortnr integer, quelle char(255), alt_hier_id char(150), treecfgtable char(255), treecfgid char(150), label smallint, user_rechte smallint, rechtequelle char(255), sesamkey char(100), standbutton smallint, attribut1 char(255), attribut2 char(255), attribut3 integer, attribut4 integer, xmlmaxentries integer, gueltig_seit date, gueltig_bis date, cacheapplet char(255), cachexml char(255), aktiv smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_sichten (tid integer, parent char(255), systeminfoid integer, art char(40), type integer, name_intern char(200), name char(200), beschreibung char(255), sortnr integer, quelle char(255), alt_hier_id char(150), treecfgtable char(255), treecfgid char(150), label smallint, user_rechte smallint, rechtequelle char(255), sesamkey char(100), standbutton smallint, attribut1 char(255), attribut2 char(255), attribut3 integer, attribut4 integer, xmlmaxentries integer, gueltig_seit date, gueltig_bis date, cacheapplet char(255), cachexml char(255), aktiv smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_man_catalogue (tid integer NOT NULL, id character varying(100) NOT NULL, shortname character varying(255), name character varying(255), description text, timeunit character varying(3), decimalplaces smallint, sqlchunk text, linksub text, linktimeline text, restrictedgroupids character(255), ismanual smallint, requiredfields character varying(255), calcratio smallint, gueltig_von date, gueltig_bis date, cleanup text, preparation text, techdetails text, moreinfo text, attrib1 integer DEFAULT 0 NOT NULL, fld_semester character varying(255), fld_jahr character varying(255), fld_studiengang character varying(255), fld_institut character varying(255), fld_geschlecht character varying(255), fromclause character varying(255), whereclause text, aggrfunction character varying(255), cacheing integer DEFAULT 0 NOT NULL, linktable character varying(255), linkmask character varying(255)); ausführen" -! echo `date` - -CREATE TABLE tmp_man_catalogue (tid integer NOT NULL, id character varying(100) NOT NULL, shortname character varying(255), name character varying(255), description text, timeunit character varying(3), decimalplaces smallint, sqlchunk text, linksub text, linktimeline text, restrictedgroupids character(255), ismanual smallint, requiredfields character varying(255), calcratio smallint, gueltig_von date, gueltig_bis date, cleanup text, preparation text, techdetails text, moreinfo text, attrib1 integer DEFAULT 0 NOT NULL, fld_semester character varying(255), fld_jahr character varying(255), fld_studiengang character varying(255), fld_institut character varying(255), fld_geschlecht character varying(255), fromclause character varying(255), whereclause text, aggrfunction character varying(255), cacheing integer DEFAULT 0 NOT NULL, linktable character varying(255), linkmask character varying(255)); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_man_catalogue_rpt (tid integer, report_id varchar(40), catalogue_id varchar(100), description text, sortnr integer, sortnr2 integer, grouping1 char(40), grouping2 char(40), valid_from date, valid_till date, active smallint); ausführen" -! echo `date` - -CREATE TABLE tmp_man_catalogue_rpt (tid integer, report_id varchar(40), catalogue_id varchar(100), description text, sortnr integer, sortnr2 integer, grouping1 char(40), grouping2 char(40), valid_from date, valid_till date, active smallint); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_man_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), stg char(10), bund_fachgebiet char(10), wert numeric(14,2), geschlecht smallint, abschluss char(10), kz_fach char(10) ); ausführen" -! echo `date` - -CREATE TABLE tmp_man_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), stg char(10), bund_fachgebiet char(10), wert numeric(14,2), geschlecht smallint, abschluss char(10), kz_fach char(10) ); - - -! echo "SQL-Ausdruck CREATE TABLE tmp_kenn_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), bund_fachgebiet char(10), wert numeric(14,2), titel char(10), wert_str varchar(255), geschlecht SMALLINT , ca12_staat SMALLINT); ausführen" -! echo `date` - -CREATE TABLE tmp_kenn_zahl_wert (tid integer, hs_nr integer, kenn_zahl char(40), jahr smallint, sem smallint, ch110_institut char(10), stugkey char(20), bund_fachgebiet char(10), wert numeric(14,2), titel char(10), wert_str varchar(255), geschlecht SMALLINT , ca12_staat SMALLINT); - - -! echo "Lade Tabelle tmp_hochschulinfo" -! echo `date` - -!sx_auto_upload_table.x tmp_hochschulinfo $SUPERX_DIR/db/install/rohdaten/unl/hochschulinfo.unl - - -! echo "Lade Tabelle tmp_userinfo" -! echo `date` - -!sx_auto_upload_table.x tmp_userinfo $SUPERX_DIR/db/install/rohdaten/unl/userinfo.unl - - -! echo "Lade Tabelle tmp_user_group_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_user_group_bez $SUPERX_DIR/db/install/rohdaten/unl/user_group_bez.unl - - -! echo "Lade Tabelle tmp_user_institution" -! echo `date` - -!sx_auto_upload_table.x tmp_user_institution $SUPERX_DIR/db/install/rohdaten/unl/user_institution.unl - - -! echo "Lade Tabelle tmp_user_masken_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_user_masken_bez $SUPERX_DIR/db/install/rohdaten/unl/user_masken_bez.unl - - -! echo "Lade Tabelle tmp_user_pw" -! echo `date` - -!sx_auto_upload_table.x tmp_user_pw $SUPERX_DIR/db/install/rohdaten/unl/user_pw.unl - - -! echo "Lade Tabelle tmp_user_sachgeb_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_user_sachgeb_bez $SUPERX_DIR/db/install/rohdaten/unl/user_sachgeb_bez.unl - - -! echo "Lade Tabelle tmp_user_sichtarten" -! echo `date` - -!sx_auto_upload_table.x tmp_user_sichtarten $SUPERX_DIR/db/install/rohdaten/unl/user_sichtarten.unl - - -! echo "Lade Tabelle tmp_user_sichten" -! echo `date` - -!sx_auto_upload_table.x tmp_user_sichten $SUPERX_DIR/db/install/rohdaten/unl/user_sichten.unl - - -! echo "Lade Tabelle tmp_group_field_pref" -! echo `date` - -!sx_auto_upload_table.x tmp_group_field_pref $SUPERX_DIR/db/install/rohdaten/unl/group_field_pref.unl - - -! echo "Lade Tabelle tmp_group_masken_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_group_masken_bez $SUPERX_DIR/db/install/rohdaten/unl/group_masken_bez.unl - - -! echo "Lade Tabelle tmp_group_sachgeb_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_group_sachgeb_bez $SUPERX_DIR/db/install/rohdaten/unl/group_sachgeb_bez.unl - - -! echo "Lade Tabelle tmp_group_sichtarten" -! echo `date` - -!sx_auto_upload_table.x tmp_group_sichtarten $SUPERX_DIR/db/install/rohdaten/unl/group_sichtarten.unl - - -! echo "Lade Tabelle tmp_group_sichten" -! echo `date` - -!sx_auto_upload_table.x tmp_group_sichten $SUPERX_DIR/db/install/rohdaten/unl/group_sichten.unl - - -! echo "Lade Tabelle tmp_groupinfo" -! echo `date` - -!sx_auto_upload_table.x tmp_groupinfo $SUPERX_DIR/db/install/rohdaten/unl/groupinfo.unl - - -! echo "Lade Tabelle tmp_fin_user_kam" -! echo `date` - -!sx_auto_upload_table.x tmp_fin_user_kam $SUPERX_DIR/db/install/rohdaten/unl/fin_user_kam.unl - - -! echo "Lade Tabelle tmp_konstanten" -! echo `date` - -!sx_auto_upload_table.x tmp_konstanten $SUPERX_DIR/db/install/rohdaten/unl/konstanten.unl - - -! echo "Lade Tabelle tmp_unload_params" -! echo `date` - -!sx_auto_upload_table.x tmp_unload_params $SUPERX_DIR/db/install/rohdaten/unl/unload_params.unl - - -! echo "Lade Tabelle tmp_sx_repository" -! echo `date` - -!sx_auto_upload_table.x tmp_sx_repository $SUPERX_DIR/db/install/rohdaten/unl/sx_repository.unl - - -! echo "Lade Tabelle tmp_themenbaum" -! echo `date` - -!sx_auto_upload_table.x tmp_themenbaum $SUPERX_DIR/db/install/rohdaten/unl/themenbaum.unl - - -! echo "Lade Tabelle tmp_maskeninfo" -! echo `date` - -!sx_auto_upload_table.x tmp_maskeninfo $SUPERX_DIR/db/install/rohdaten/unl/maskeninfo.unl - - -! echo "Lade Tabelle tmp_felderinfo" -! echo `date` - -!sx_auto_upload_table.x tmp_felderinfo $SUPERX_DIR/db/install/rohdaten/unl/felderinfo.unl - - -! echo "Lade Tabelle tmp_masken_felder_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_masken_felder_bez $SUPERX_DIR/db/install/rohdaten/unl/masken_felder_bez.unl - - -! echo "Lade Tabelle tmp_maske_system_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_maske_system_bez $SUPERX_DIR/db/install/rohdaten/unl/maske_system_bez.unl - - -! echo "Lade Tabelle tmp_sachgeb_maske_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_sachgeb_maske_bez $SUPERX_DIR/db/install/rohdaten/unl/sachgeb_maske_bez.unl - - -! echo "Lade Tabelle tmp_sx_stylesheets" -! echo `date` - -!sx_auto_upload_table.x tmp_sx_stylesheets $SUPERX_DIR/db/install/rohdaten/unl/sx_stylesheets.unl - - -! echo "Lade Tabelle tmp_sx_mask_style" -! echo `date` - -!sx_auto_upload_table.x tmp_sx_mask_style $SUPERX_DIR/db/install/rohdaten/unl/sx_mask_style.unl - - -! echo "Lade Tabelle tmp_stylesheet_field" -! echo `date` - -!sx_auto_upload_table.x tmp_stylesheet_field $SUPERX_DIR/db/install/rohdaten/unl/stylesheet_field.unl - - -! echo "Lade Tabelle tmp_macro_masken_bez" -! echo `date` - -!sx_auto_upload_table.x tmp_macro_masken_bez $SUPERX_DIR/db/install/rohdaten/unl/macro_masken_bez.unl - - -! echo "Lade Tabelle tmp_macro_feld_wert" -! echo `date` - -!sx_auto_upload_table.x tmp_macro_feld_wert $SUPERX_DIR/db/install/rohdaten/unl/macro_feld_wert.unl - - -! echo "Lade Tabelle tmp_sx_captions" -! echo `date` - -!sx_auto_upload_table.x tmp_sx_captions $SUPERX_DIR/db/install/rohdaten/unl/sx_captions.unl - - -! echo "Lade Tabelle tmp_sichten" -! echo `date` - -!sx_auto_upload_table.x tmp_sichten $SUPERX_DIR/db/install/rohdaten/unl/sichten.unl - - -! echo "Lade Tabelle tmp_man_catalogue" -! echo `date` - -!sx_auto_upload_table.x tmp_man_catalogue $SUPERX_DIR/db/install/rohdaten/unl/man_catalogue.unl - - -! echo "Lade Tabelle tmp_man_catalogue_rpt" -! echo `date` - -!sx_auto_upload_table.x tmp_man_catalogue_rpt $SUPERX_DIR/db/install/rohdaten/unl/man_catalogue_rpt.unl - - -! echo "Lade Tabelle tmp_man_zahl_wert" -! echo `date` - -!sx_auto_upload_table.x tmp_man_zahl_wert $SUPERX_DIR/db/install/rohdaten/unl/man_zahl_wert.unl - - -! echo "Lade Tabelle tmp_kenn_zahl_wert" -! echo `date` - -!sx_auto_upload_table.x tmp_kenn_zahl_wert $SUPERX_DIR/db/install/rohdaten/unl/kenn_zahl_wert.unl - - -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/trans_tables.sql ausführen" -! echo `date` - - -! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/trans_tables.sql +!sx_auto_upload_table.x kern_cifx_neu $KERN_LOAD_PFAD/unl/cifx.unl ! DOSQL $SUPERX_DIR/db/install/kern_load_custom.sql diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_masken_einspielen_ids.x b/superx/WEB-INF/conf/edustore/db/install/kern_masken_einspielen_ids.x index 1a21f40..8c1fa79 100755 --- a/superx/WEB-INF/conf/edustore/db/install/kern_masken_einspielen_ids.x +++ b/superx/WEB-INF/conf/edustore/db/install/kern_masken_einspielen_ids.x @@ -35,10 +35,8 @@ sx_auto_insert_mask 70620 echo "Maske Nr. 70570 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 70570 -#Maske Nr.70520 Maske ansehen #Maske Nr.70580 Feld ansehen #Maske Nr.70640 Feld bearbeiten -#Maske Nr.70550 Tabellenfeld bearbeiten (Text) #Maske Nr.70970 User einrichten echo "Maske Nr. 70970 einfügen:" cd $SUPERX_DIR/db/install/masken @@ -79,7 +77,7 @@ sx_auto_insert_mask 70160 echo "Maske Nr. 70170 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 70170 -#Maske Nr.71080 Institution suchen +#Maske Nr.71080 Organisationseinheiten suchen echo "Maske Nr. 71080 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71080 @@ -119,7 +117,7 @@ sx_auto_insert_mask 71190 echo "Maske Nr. 71200 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71200 -#Maske Nr.71260 Entladeparameter suchen +#Maske Nr.71260 Entladeparameter bearbeiten echo "Maske Nr. 71260 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71260 @@ -163,10 +161,15 @@ sx_auto_insert_mask 71420 echo "Maske Nr. 71440 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71440 +#Maske Nr.71480 Organigrammquelle bearbeiten +echo "Maske Nr. 71480 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71480 #Maske Nr.71500 Konstanten bearbeiten echo "Maske Nr. 71500 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71500 +#Maske Nr.71520 Datensieb erstellen #Maske Nr.71540 Ladejob ausführen echo "Maske Nr. 71540 einfügen:" cd $SUPERX_DIR/db/install/masken @@ -175,11 +178,39 @@ sx_auto_insert_mask 71540 echo "Maske Nr. 71560 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71560 -#Maske Nr.71580 Datenanalyse Würfel entwerfen +#Maske Nr.71580 Verwundbarkeitstest echo "Maske Nr. 71580 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71580 +#Maske Nr.71600 Test abhaengiger Felder +echo "Maske Nr. 71600 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71600 #Maske Nr.71620 Stammdatenverwaltung echo "Maske Nr. 71620 einfügen:" cd $SUPERX_DIR/db/install/masken sx_auto_insert_mask 71620 +#Maske Nr.71640 OrgUnitTests +echo "Maske Nr. 71640 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71640 +#Maske Nr.71660 Prüfprotokoll Administration +echo "Maske Nr. 71660 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71660 +#Maske Nr.71680 Nutzungsstatistik - Berichte +echo "Maske Nr. 71680 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71680 +#Maske Nr.71770 Gastzugang einrichten +echo "Maske Nr. 71770 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71770 +#Maske Nr.71800 Stammdaten umschlüsseln +echo "Maske Nr. 71800 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71800 +#Maske Nr.71820 Archivierte Daten +echo "Maske Nr. 71820 einfügen:" +cd $SUPERX_DIR/db/install/masken +sx_auto_insert_mask 71820 diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_masken_entladen_ids.x b/superx/WEB-INF/conf/edustore/db/install/kern_masken_entladen_ids.x index 3acb0e8..5c549f4 100755 --- a/superx/WEB-INF/conf/edustore/db/install/kern_masken_entladen_ids.x +++ b/superx/WEB-INF/conf/edustore/db/install/kern_masken_entladen_ids.x @@ -27,10 +27,8 @@ sx_select_mask 70620 #Maske Nr.70570 Feld suchen cd "$SUPERX_DIR/db/install/masken" sx_select_mask 70570 -#Maske Nr.70520 Maske ansehen #Maske Nr.70580 Feld ansehen #Maske Nr.70640 Feld bearbeiten -#Maske Nr.70550 Tabellenfeld bearbeiten (Text) #Maske Nr.70970 User einrichten cd "$SUPERX_DIR/db/install/masken" sx_select_mask 70970 @@ -61,7 +59,7 @@ sx_select_mask 70160 #Maske Nr.70170 Beschriftung suchen cd "$SUPERX_DIR/db/install/masken" sx_select_mask 70170 -#Maske Nr.71080 Institution suchen +#Maske Nr.71080 Organisationseinheiten suchen cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71080 #Maske Nr.71090 Themenbaum-Eintrag suchen @@ -91,7 +89,7 @@ sx_select_mask 71190 #Maske Nr.71200 Downloadstatistik cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71200 -#Maske Nr.71260 Entladeparameter suchen +#Maske Nr.71260 Entladeparameter bearbeiten cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71260 #Maske Nr.71280 Tabelle ausgeben @@ -124,18 +122,43 @@ sx_select_mask 71420 #Maske Nr.71440 Bericht Gruppenrahmen cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71440 +#Maske Nr.71480 Organigrammquelle bearbeiten +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71480 #Maske Nr.71500 Konstanten bearbeiten cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71500 +#Maske Nr.71520 Datensieb erstellen #Maske Nr.71540 Ladejob ausführen cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71540 #Maske Nr.71560 Hochschul-Repository cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71560 -#Maske Nr.71580 Datenanalyse Würfel entwerfen +#Maske Nr.71580 Verwundbarkeitstest cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71580 +#Maske Nr.71600 Test abhaengiger Felder +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71600 #Maske Nr.71620 Stammdatenverwaltung cd "$SUPERX_DIR/db/install/masken" sx_select_mask 71620 +#Maske Nr.71640 OrgUnitTests +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71640 +#Maske Nr.71660 Prüfprotokoll Administration +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71660 +#Maske Nr.71680 Nutzungsstatistik - Berichte +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71680 +#Maske Nr.71770 Gastzugang einrichten +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71770 +#Maske Nr.71800 Stammdaten umschlüsseln +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71800 +#Maske Nr.71820 Archivierte Daten +cd "$SUPERX_DIR/db/install/masken" +sx_select_mask 71820 diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_masken_loeschen_ids.x b/superx/WEB-INF/conf/edustore/db/install/kern_masken_loeschen_ids.x index 0242534..816c625 100755 --- a/superx/WEB-INF/conf/edustore/db/install/kern_masken_loeschen_ids.x +++ b/superx/WEB-INF/conf/edustore/db/install/kern_masken_loeschen_ids.x @@ -27,14 +27,10 @@ sx_auto_delete_mask 70620 #Maske Nr.70570 Feld suchen sx_auto_delete_mask 70570 sx_auto_delete_mask 70570 -#Maske Nr.70520 Maske ansehen -sx_auto_delete_mask 70520 #Maske Nr.70580 Feld ansehen sx_auto_delete_mask 70580 #Maske Nr.70640 Feld bearbeiten sx_auto_delete_mask 70640 -#Maske Nr.70550 Tabellenfeld bearbeiten (Text) -sx_auto_delete_mask 70550 #Maske Nr.70970 User einrichten sx_auto_delete_mask 70970 sx_auto_delete_mask 70970 @@ -65,7 +61,7 @@ sx_auto_delete_mask 70160 #Maske Nr.70170 Beschriftung suchen sx_auto_delete_mask 70170 sx_auto_delete_mask 70170 -#Maske Nr.71080 Institution suchen +#Maske Nr.71080 Organisationseinheiten suchen sx_auto_delete_mask 71080 sx_auto_delete_mask 71080 #Maske Nr.71090 Themenbaum-Eintrag suchen @@ -95,7 +91,7 @@ sx_auto_delete_mask 71190 #Maske Nr.71200 Downloadstatistik sx_auto_delete_mask 71200 sx_auto_delete_mask 71200 -#Maske Nr.71260 Entladeparameter suchen +#Maske Nr.71260 Entladeparameter bearbeiten sx_auto_delete_mask 71260 sx_auto_delete_mask 71260 #Maske Nr.71280 Tabelle ausgeben @@ -128,17 +124,43 @@ sx_auto_delete_mask 71420 #Maske Nr.71440 Bericht Gruppenrahmen sx_auto_delete_mask 71440 sx_auto_delete_mask 71440 +#Maske Nr.71480 Organigrammquelle bearbeiten +sx_auto_delete_mask 71480 +sx_auto_delete_mask 71480 #Maske Nr.71500 Konstanten bearbeiten sx_auto_delete_mask 71500 sx_auto_delete_mask 71500 +#Maske Nr.71520 Datensieb erstellen +sx_auto_delete_mask 71520 #Maske Nr.71540 Ladejob ausführen sx_auto_delete_mask 71540 sx_auto_delete_mask 71540 #Maske Nr.71560 Hochschul-Repository sx_auto_delete_mask 71560 sx_auto_delete_mask 71560 -#Maske Nr.71580 Datenanalyse Würfel entwerfen +#Maske Nr.71580 Verwundbarkeitstest sx_auto_delete_mask 71580 sx_auto_delete_mask 71580 +#Maske Nr.71600 Test abhaengiger Felder +sx_auto_delete_mask 71600 +sx_auto_delete_mask 71600 #Maske Nr.71620 Stammdatenverwaltung sx_auto_delete_mask 71620 +#Maske Nr.71640 OrgUnitTests +sx_auto_delete_mask 71640 +sx_auto_delete_mask 71640 +#Maske Nr.71660 Prüfprotokoll Administration +sx_auto_delete_mask 71660 +sx_auto_delete_mask 71660 +#Maske Nr.71680 Nutzungsstatistik - Berichte +sx_auto_delete_mask 71680 +sx_auto_delete_mask 71680 +#Maske Nr.71770 Gastzugang einrichten +sx_auto_delete_mask 71770 +sx_auto_delete_mask 71770 +#Maske Nr.71800 Stammdaten umschlüsseln +sx_auto_delete_mask 71800 +sx_auto_delete_mask 71800 +#Maske Nr.71820 Archivierte Daten +sx_auto_delete_mask 71820 +sx_auto_delete_mask 71820 diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_purge_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_purge_ids.sql index 35718ef..964e3c3 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_purge_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_purge_ids.sql @@ -10,3 +10,7 @@ delete from personattributetype; delete from personattribute_value_list; delete from user_preset_values; delete from sx_portlet; +delete from kern_cifx_neu; +delete from kern_pruefrout; +delete from masken_statistik; +delete from hisinone_deleted_entity; diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_system_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_system_ids.sql index fdd0872..4085f07 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_system_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_system_ids.sql @@ -1,21 +1,27 @@ -- XML-generiertes SQL-Script fuer dbaccess--von module_etl.xsl --ETL-Schritte erfolgreich beendet. create table tmp_datum (datum date); - -! if [ -f $KERN_LOAD_PFAD/superx.datum ]; then read DATUM < $KERN_LOAD_PFAD/superx.datum ; echo "$DATUM^" > $KERN_LOAD_PFAD/superx.datum.tmp1; fi -! if [ -f $KERN_LOAD_PFAD/superx.datum.tmp1 ]; then sx_auto_upload_table.x tmp_datum $KERN_LOAD_PFAD/superx.datum.tmp1; fi -! if [ -f $KERN_LOAD_PFAD/superx.datum.tmp1 ]; then rm $KERN_LOAD_PFAD/superx.datum.tmp1; fi +! if [ -f $KERN_LOAD_PFAD/superx.datum ]; then sx_auto_upload_table.x tmp_datum $KERN_LOAD_PFAD/superx.datum ; fi update systeminfo set datum=(select distinct datum from tmp_datum) -where 2006 < (select distinct year(datum) from tmp_datum) +where 1=(select count(*) from tmp_datum) +and 2006 < (select distinct year(datum) from tmp_datum) and name='Administration'; update systeminfo set datum=today() -where 2007 > (select distinct year(datum) from tmp_datum) +where 1=(select count(*) from tmp_datum) +and 2007 > (select distinct year(datum) from tmp_datum) and name='Administration'; + +insert into kern_pruefrout(datum,problem,aktion) select today(),'Datei superx.datum steht auf veraltetem Datum. Stellen Sie sicher, dass superx.datum auf den SuperX-Server kopiert wurde','Warnung' + from tmp_datum where year(datum) < 2007 + or datum is null; + drop table tmp_datum; + + delete from protokoll where zeitpunkt < (select today()-apnr from konstanten where beschreibung='Löschung Protokoll (Tage)'); diff --git a/superx/WEB-INF/conf/edustore/db/install/kern_trans_ids.sql b/superx/WEB-INF/conf/edustore/db/install/kern_trans_ids.sql index bc0e3e1..dff36a4 100644 --- a/superx/WEB-INF/conf/edustore/db/install/kern_trans_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/kern_trans_ids.sql @@ -1,4 +1,31 @@ -- XML-generiertes SQL-Script fuer dbaccess--von module_etl.xsl --ETL-Schritt trans: Transformation der KERN-Rohdaten + +select now(),'SQL-Ausdruck truncate table kern_pruefrout; ausführen' +from xdummy; + +truncate table kern_pruefrout; + + +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/cifx_fuellen2.sql ausführen' +from xdummy; + + +! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/cifx_fuellen2.sql + + +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/trans_organigramm_kern.sql ausführen' +from xdummy; + + +! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/trans_organigramm_kern.sql + + +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/orgunit_live_mapping_fuellen.sql ausführen' +from xdummy; + + +! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/orgunit_live_mapping_fuellen.sql + ! DOSQL $SUPERX_DIR/db/install/kern_trans_custom.sql diff --git a/superx/WEB-INF/conf/edustore/db/install/masken/71540_felderinfo.unl b/superx/WEB-INF/conf/edustore/db/install/masken/71540_felderinfo.unl index 75f0857..8dfcc7c 100644 --- a/superx/WEB-INF/conf/edustore/db/install/masken/71540_felderinfo.unl +++ b/superx/WEB-INF/conf/edustore/db/install/masken/71540_felderinfo.unl @@ -1,9 +1,14 @@ 71540^Modus^30^0^0^150^150^1^char^200^0^1^<> select distinct '1','Hinzufügen' from sx_jobs where 1=1\ /* and tid=<> */\ -and modus_supported=1 union \ +and modus_supported in (1,3) union \ select distinct '2','Löschen und Hinzufügen' from sx_jobs where 1=1\ /* and tid=<> */\ -and modus_supported=2 order by 1^^^ +and modus_supported in (1,3)\ +union\ +select distinct '3','Vorschau' from sx_jobs where 1=1\ +/* and tid=<> */\ +and modus_supported=3\ + order by 1^^^ 71541^Job^20^0^0^150^150^1^integer^200^1^1^<> select tid,caption from sx_jobs where\ sachgebiete_id in (-1 ${UserSachgebiete} -1)\ /* and sachgebiete_id=<> */\ diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/alter_columntype_with_view_deps_pg.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/alter_columntype_with_view_deps_pg.sql index 4f0df8a..7998a6d 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/alter_columntype_with_view_deps_pg.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/alter_columntype_with_view_deps_pg.sql @@ -4,7 +4,7 @@ WITH RECURSIVE vlist AS ( SELECT c.oid::REGCLASS AS view_name FROM pg_class c - WHERE c.relname IN ('cifx','userinfo','konstanten') + WHERE c.relname IN ('cifx','userinfo','konstanten','organigramm') UNION ALL SELECT DISTINCT r.ev_class::REGCLASS AS view_name FROM pg_depend d @@ -17,7 +17,7 @@ SELECT view_name::text as view_name, v.view_definition, from information_schema.columns col where col.table_name::text=vl.view_name::text group by col.table_name) as columns FROM vlist vl, information_schema.views v -where view_name::text = v.table_name and view_name::text NOT IN ('cifx','userinfo','konstanten'); +where view_name::text = v.table_name and view_name::text NOT IN ('cifx','userinfo','konstanten','organigramm'); @@ -35,6 +35,8 @@ alter table cifx alter column lang_3 type varchar(255); alter table userinfo alter column benutzer type varchar(255); alter table userinfo alter column passwd_sha type varchar(255); alter table konstanten alter column beschreibung type varchar(255); +alter table organigramm alter column drucktext type varchar(255); +alter table organigramm alter column name type varchar(255); <#foreach view in dependent_views> diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_ids.sql index 502b636..1988545 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_ids.sql @@ -36,6 +36,7 @@ where a.tabid = b.tabid and b.tabname 'cifx', 'trans_cifx', 'trans_cif', +'cifx_customize', 'felderinfo', 'hochschulinfo', 'maske_system_bez', @@ -61,6 +62,7 @@ where a.tabid = b.tabid and b.tabname 'lehreinheit_inst', 'sx_stylesheets', 'sx_mask_style', +'sx_stylesheet_param', 'sx_captions', 'fm_templates', 'user_sichten', @@ -105,25 +107,45 @@ where a.tabid = b.tabid and b.tabname 'sx_portlet', 'user_portlet_bez', 'group_portlet_bez', +'kern_cifx_neu', 'sieve', 'sieve_column_def', 'sieve_column', 'sieve_field', 'sx_jobs', +'orgunit_mapping', +'implicit_orgunit_rights', +'kern_pruefrout', +'masken_statistik', +'dim_datum', +'hisinone_deleted_entity', +'etl_step', +'etl_step_type', +'etl_step_type_param', +'etl_step_property', +'etl_step_relation', +'etl_job', +'etl_job_param', +'k_astat_studienfach_land', +'k_astat_abschluss3steller_land', +'k_astat_abschluss2steller', +'k_astat_studienbereich', +'k_astat_studienfach', +'colorscheme', 'sx_mail' ) order by 1; -! echo "Checking fields" -! echo `date` +select now(),'Checking fields' +from xdummy; <#if !fields?seq_contains("sichtart_rechttabelle.tid") > -! echo "field sichtart_rechttabelle.tid will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.tid will be added' +from xdummy; alter table sichtart_rechttabelle add ( tid serial ); @@ -132,8 +154,8 @@ alter table sichtart_rechttabelle add ( tid serial ); <#if !fields?seq_contains("sichtart_rechttabelle.art") > -! echo "field sichtart_rechttabelle.art will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.art will be added' +from xdummy; alter table sichtart_rechttabelle add ( art VARCHAR(40) ); @@ -142,8 +164,8 @@ alter table sichtart_rechttabelle add ( art VARCHAR(40) ); <#if !fields?seq_contains("sichtart_rechttabelle.tabelle") > -! echo "field sichtart_rechttabelle.tabelle will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.tabelle will be added' +from xdummy; alter table sichtart_rechttabelle add ( tabelle VARCHAR(40) ); @@ -152,8 +174,8 @@ alter table sichtart_rechttabelle add ( tabelle VARCHAR(40) ); <#if !fields?seq_contains("sichtart_rechttabelle.feldname") > -! echo "field sichtart_rechttabelle.feldname will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.feldname will be added' +from xdummy; alter table sichtart_rechttabelle add ( feldname VARCHAR(40) ); @@ -162,8 +184,8 @@ alter table sichtart_rechttabelle add ( feldname VARCHAR(40) ); <#if !fields?seq_contains("sichtart_rechttabelle.additionalkeyssql") > -! echo "field sichtart_rechttabelle.additionalkeyssql will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.additionalkeyssql will be added' +from xdummy; alter table sichtart_rechttabelle add ( additionalkeyssql NVARCHAR(255) ); @@ -172,8 +194,8 @@ alter table sichtart_rechttabelle add ( additionalkeyssql NVARCHAR(255) ); <#if !fields?seq_contains("sichtart_rechttabelle.fallback_user_inst") > -! echo "field sichtart_rechttabelle.fallback_user_inst will be added" -! echo `date` +select now(),'field sichtart_rechttabelle.fallback_user_inst will be added' +from xdummy; alter table sichtart_rechttabelle add ( fallback_user_inst char(1) default '0' ); @@ -182,8 +204,8 @@ alter table sichtart_rechttabelle add ( fallback_user_inst char(1) default '0' <#if !fields?seq_contains("group_field_pref.tid") > -! echo "field group_field_pref.tid will be added" -! echo `date` +select now(),'field group_field_pref.tid will be added' +from xdummy; alter table group_field_pref add ( tid serial ); @@ -192,8 +214,8 @@ alter table group_field_pref add ( tid serial ); <#if !fields?seq_contains("group_field_pref.groupinfo_id") > -! echo "field group_field_pref.groupinfo_id will be added" -! echo `date` +select now(),'field group_field_pref.groupinfo_id will be added' +from xdummy; alter table group_field_pref add ( groupinfo_id integer ); @@ -202,8 +224,8 @@ alter table group_field_pref add ( groupinfo_id integer ); <#if !fields?seq_contains("group_field_pref.field_id") > -! echo "field group_field_pref.field_id will be added" -! echo `date` +select now(),'field group_field_pref.field_id will be added' +from xdummy; alter table group_field_pref add ( field_id integer ); @@ -212,8 +234,8 @@ alter table group_field_pref add ( field_id integer ); <#if !fields?seq_contains("group_field_pref.pref") > -! echo "field group_field_pref.pref will be added" -! echo `date` +select now(),'field group_field_pref.pref will be added' +from xdummy; alter table group_field_pref add ( pref NVARCHAR(255) ); @@ -222,8 +244,8 @@ alter table group_field_pref add ( pref NVARCHAR(255) ); <#if !fields?seq_contains("stylesheet_field.tid") > -! echo "field stylesheet_field.tid will be added" -! echo `date` +select now(),'field stylesheet_field.tid will be added' +from xdummy; alter table stylesheet_field add ( tid serial ); @@ -232,8 +254,8 @@ alter table stylesheet_field add ( tid serial ); <#if !fields?seq_contains("stylesheet_field.stylesheet_id") > -! echo "field stylesheet_field.stylesheet_id will be added" -! echo `date` +select now(),'field stylesheet_field.stylesheet_id will be added' +from xdummy; alter table stylesheet_field add ( stylesheet_id integer ); @@ -242,8 +264,8 @@ alter table stylesheet_field add ( stylesheet_id integer ); <#if !fields?seq_contains("stylesheet_field.tablename") > -! echo "field stylesheet_field.tablename will be added" -! echo `date` +select now(),'field stylesheet_field.tablename will be added' +from xdummy; alter table stylesheet_field add ( tablename NVARCHAR(255) ); @@ -252,8 +274,8 @@ alter table stylesheet_field add ( tablename NVARCHAR(255) ); <#if !fields?seq_contains("stylesheet_field.fieldname") > -! echo "field stylesheet_field.fieldname will be added" -! echo `date` +select now(),'field stylesheet_field.fieldname will be added' +from xdummy; alter table stylesheet_field add ( fieldname NVARCHAR(255) ); @@ -262,8 +284,8 @@ alter table stylesheet_field add ( fieldname NVARCHAR(255) ); <#if !fields?seq_contains("db_tabellen.db_einfuegemarke") > -! echo "field db_tabellen.db_einfuegemarke will be added" -! echo `date` +select now(),'field db_tabellen.db_einfuegemarke will be added' +from xdummy; alter table db_tabellen add ( db_einfuegemarke CHAR(6) ); @@ -272,8 +294,8 @@ alter table db_tabellen add ( db_einfuegemarke CHAR(6) ); <#if !fields?seq_contains("db_tabellen.tabellen_id") > -! echo "field db_tabellen.tabellen_id will be added" -! echo `date` +select now(),'field db_tabellen.tabellen_id will be added' +from xdummy; alter table db_tabellen add ( tabellen_id SERIAL not null); @@ -282,8 +304,8 @@ alter table db_tabellen add ( tabellen_id SERIAL not null); <#if !fields?seq_contains("db_tabellen.name") > -! echo "field db_tabellen.name will be added" -! echo `date` +select now(),'field db_tabellen.name will be added' +from xdummy; alter table db_tabellen add ( name CHAR(50) ); @@ -292,8 +314,8 @@ alter table db_tabellen add ( name CHAR(50) ); <#if !fields?seq_contains("db_tabellen.protokollierung") > -! echo "field db_tabellen.protokollierung will be added" -! echo `date` +select now(),'field db_tabellen.protokollierung will be added' +from xdummy; alter table db_tabellen add ( protokollierung SMALLINT ); @@ -302,8 +324,8 @@ alter table db_tabellen add ( protokollierung SMALLINT ); <#if !fields?seq_contains("db_forms.tid") > -! echo "field db_forms.tid will be added" -! echo `date` +select now(),'field db_forms.tid will be added' +from xdummy; alter table db_forms add ( tid INTEGER not null); @@ -312,8 +334,8 @@ alter table db_forms add ( tid INTEGER not null); <#if !fields?seq_contains("db_forms.name") > -! echo "field db_forms.name will be added" -! echo `date` +select now(),'field db_forms.name will be added' +from xdummy; alter table db_forms add ( name NCHAR(100) ); @@ -322,8 +344,8 @@ alter table db_forms add ( name NCHAR(100) ); <#if !fields?seq_contains("db_forms.tablename") > -! echo "field db_forms.tablename will be added" -! echo `date` +select now(),'field db_forms.tablename will be added' +from xdummy; alter table db_forms add ( tablename NCHAR(100) ); @@ -332,8 +354,8 @@ alter table db_forms add ( tablename NCHAR(100) ); <#if !fields?seq_contains("db_forms.form_path") > -! echo "field db_forms.form_path will be added" -! echo `date` +select now(),'field db_forms.form_path will be added' +from xdummy; alter table db_forms add ( form_path NCHAR(255) ); @@ -342,8 +364,8 @@ alter table db_forms add ( form_path NCHAR(255) ); <#if !fields?seq_contains("db_forms.caption") > -! echo "field db_forms.caption will be added" -! echo `date` +select now(),'field db_forms.caption will be added' +from xdummy; alter table db_forms add ( caption NCHAR(200) ); @@ -352,8 +374,8 @@ alter table db_forms add ( caption NCHAR(200) ); <#if !fields?seq_contains("db_forms.description") > -! echo "field db_forms.description will be added" -! echo `date` +select now(),'field db_forms.description will be added' +from xdummy; alter table db_forms add ( description NCHAR(255) ); @@ -362,28 +384,28 @@ alter table db_forms add ( description NCHAR(255) ); <#if !fields?seq_contains("db_version.db_einfuegemarke") > -! echo "field db_version.db_einfuegemarke will be added" -! echo `date` +select now(),'field db_version.db_einfuegemarke will be added' +from xdummy; -alter table db_version add ( db_einfuegemarke CHAR(6) ); +alter table db_version add ( db_einfuegemarke NVARCHAR(255) ); <#if !fields?seq_contains("db_version.his_system") > -! echo "field db_version.his_system will be added" -! echo `date` +select now(),'field db_version.his_system will be added' +from xdummy; -alter table db_version add ( his_system CHAR(20) ); +alter table db_version add ( his_system NVARCHAR(255) ); <#if !fields?seq_contains("db_version.version") > -! echo "field db_version.version will be added" -! echo `date` +select now(),'field db_version.version will be added' +from xdummy; alter table db_version add ( version CHAR(8) ); @@ -392,8 +414,8 @@ alter table db_version add ( version CHAR(8) ); <#if !fields?seq_contains("db_version.kern_system") > -! echo "field db_version.kern_system will be added" -! echo `date` +select now(),'field db_version.kern_system will be added' +from xdummy; alter table db_version add ( kern_system CHAR(1) ); @@ -402,8 +424,8 @@ alter table db_version add ( kern_system CHAR(1) ); <#if !fields?seq_contains("db_version.version_hash") > -! echo "field db_version.version_hash will be added" -! echo `date` +select now(),'field db_version.version_hash will be added' +from xdummy; alter table db_version add ( version_hash VARCHAR(32) ); @@ -412,8 +434,8 @@ alter table db_version add ( version_hash VARCHAR(32) ); <#if !fields?seq_contains("db_version.systeminfo_id") > -! echo "field db_version.systeminfo_id will be added" -! echo `date` +select now(),'field db_version.systeminfo_id will be added' +from xdummy; alter table db_version add ( systeminfo_id INTEGER ); @@ -422,8 +444,8 @@ alter table db_version add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("aggregierung.tid") > -! echo "field aggregierung.tid will be added" -! echo `date` +select now(),'field aggregierung.tid will be added' +from xdummy; alter table aggregierung add ( tid INTEGER not null); @@ -432,8 +454,8 @@ alter table aggregierung add ( tid INTEGER not null); <#if !fields?seq_contains("aggregierung.ord") > -! echo "field aggregierung.ord will be added" -! echo `date` +select now(),'field aggregierung.ord will be added' +from xdummy; alter table aggregierung add ( ord SMALLINT ); @@ -442,8 +464,8 @@ alter table aggregierung add ( ord SMALLINT ); <#if !fields?seq_contains("aggregierung.name") > -! echo "field aggregierung.name will be added" -! echo `date` +select now(),'field aggregierung.name will be added' +from xdummy; alter table aggregierung add ( name CHAR(50) ); @@ -452,8 +474,8 @@ alter table aggregierung add ( name CHAR(50) ); <#if !fields?seq_contains("aggregierung.kategorie") > -! echo "field aggregierung.kategorie will be added" -! echo `date` +select now(),'field aggregierung.kategorie will be added' +from xdummy; alter table aggregierung add ( kategorie CHAR(30) ); @@ -462,8 +484,8 @@ alter table aggregierung add ( kategorie CHAR(30) ); <#if !fields?seq_contains("aggregierung.wert") > -! echo "field aggregierung.wert will be added" -! echo `date` +select now(),'field aggregierung.wert will be added' +from xdummy; alter table aggregierung add ( wert NCHAR(255) ); @@ -472,8 +494,8 @@ alter table aggregierung add ( wert NCHAR(255) ); <#if !fields?seq_contains("sichten.tid") > -! echo "field sichten.tid will be added" -! echo `date` +select now(),'field sichten.tid will be added' +from xdummy; alter table sichten add ( tid SERIAL not null); @@ -482,8 +504,8 @@ alter table sichten add ( tid SERIAL not null); <#if !fields?seq_contains("sichten.parent") > -! echo "field sichten.parent will be added" -! echo `date` +select now(),'field sichten.parent will be added' +from xdummy; alter table sichten add ( parent NCHAR(255) ); @@ -492,8 +514,8 @@ alter table sichten add ( parent NCHAR(255) ); <#if !fields?seq_contains("sichten.systeminfoid") > -! echo "field sichten.systeminfoid will be added" -! echo `date` +select now(),'field sichten.systeminfoid will be added' +from xdummy; alter table sichten add ( systeminfoid INTEGER default 0 not null); @@ -502,8 +524,8 @@ alter table sichten add ( systeminfoid INTEGER default 0 not null); <#if !fields?seq_contains("sichten.art") > -! echo "field sichten.art will be added" -! echo `date` +select now(),'field sichten.art will be added' +from xdummy; alter table sichten add ( art CHAR(40) ); @@ -512,8 +534,8 @@ alter table sichten add ( art CHAR(40) ); <#if !fields?seq_contains("sichten.type") > -! echo "field sichten.type will be added" -! echo `date` +select now(),'field sichten.type will be added' +from xdummy; alter table sichten add ( type INTEGER default 10 not null); @@ -522,8 +544,8 @@ alter table sichten add ( type INTEGER default 10 not null); <#if !fields?seq_contains("sichten.name_intern") > -! echo "field sichten.name_intern will be added" -! echo `date` +select now(),'field sichten.name_intern will be added' +from xdummy; alter table sichten add ( name_intern NCHAR(200) ); @@ -532,8 +554,8 @@ alter table sichten add ( name_intern NCHAR(200) ); <#if !fields?seq_contains("sichten.name") > -! echo "field sichten.name will be added" -! echo `date` +select now(),'field sichten.name will be added' +from xdummy; alter table sichten add ( name NCHAR(200) ); @@ -542,8 +564,8 @@ alter table sichten add ( name NCHAR(200) ); <#if !fields?seq_contains("sichten.beschreibung") > -! echo "field sichten.beschreibung will be added" -! echo `date` +select now(),'field sichten.beschreibung will be added' +from xdummy; alter table sichten add ( beschreibung NCHAR(255) ); @@ -552,8 +574,8 @@ alter table sichten add ( beschreibung NCHAR(255) ); <#if !fields?seq_contains("sichten.sortnr") > -! echo "field sichten.sortnr will be added" -! echo `date` +select now(),'field sichten.sortnr will be added' +from xdummy; alter table sichten add ( sortnr INTEGER default 0 not null); @@ -562,8 +584,8 @@ alter table sichten add ( sortnr INTEGER default 0 not null); <#if !fields?seq_contains("sichten.quelle") > -! echo "field sichten.quelle will be added" -! echo `date` +select now(),'field sichten.quelle will be added' +from xdummy; alter table sichten add ( quelle NCHAR(255) ); @@ -572,8 +594,8 @@ alter table sichten add ( quelle NCHAR(255) ); <#if !fields?seq_contains("sichten.alt_hier_id") > -! echo "field sichten.alt_hier_id will be added" -! echo `date` +select now(),'field sichten.alt_hier_id will be added' +from xdummy; alter table sichten add ( alt_hier_id NCHAR(150) ); @@ -582,8 +604,8 @@ alter table sichten add ( alt_hier_id NCHAR(150) ); <#if !fields?seq_contains("sichten.treecfgtable") > -! echo "field sichten.treecfgtable will be added" -! echo `date` +select now(),'field sichten.treecfgtable will be added' +from xdummy; alter table sichten add ( treecfgtable NCHAR(255) ); @@ -592,8 +614,8 @@ alter table sichten add ( treecfgtable NCHAR(255) ); <#if !fields?seq_contains("sichten.treecfgid") > -! echo "field sichten.treecfgid will be added" -! echo `date` +select now(),'field sichten.treecfgid will be added' +from xdummy; alter table sichten add ( treecfgid NCHAR(150) ); @@ -602,8 +624,8 @@ alter table sichten add ( treecfgid NCHAR(150) ); <#if !fields?seq_contains("sichten.label") > -! echo "field sichten.label will be added" -! echo `date` +select now(),'field sichten.label will be added' +from xdummy; alter table sichten add ( label SMALLINT default 0 not null); @@ -612,8 +634,8 @@ alter table sichten add ( label SMALLINT default 0 not null); <#if !fields?seq_contains("sichten.user_rechte") > -! echo "field sichten.user_rechte will be added" -! echo `date` +select now(),'field sichten.user_rechte will be added' +from xdummy; alter table sichten add ( user_rechte SMALLINT default 1 not null); @@ -622,8 +644,8 @@ alter table sichten add ( user_rechte SMALLINT default 1 not null); <#if !fields?seq_contains("sichten.rechtequelle") > -! echo "field sichten.rechtequelle will be added" -! echo `date` +select now(),'field sichten.rechtequelle will be added' +from xdummy; alter table sichten add ( rechtequelle NCHAR(255) ); @@ -632,8 +654,8 @@ alter table sichten add ( rechtequelle NCHAR(255) ); <#if !fields?seq_contains("sichten.sesamkey") > -! echo "field sichten.sesamkey will be added" -! echo `date` +select now(),'field sichten.sesamkey will be added' +from xdummy; alter table sichten add ( sesamkey NCHAR(100) ); @@ -642,8 +664,8 @@ alter table sichten add ( sesamkey NCHAR(100) ); <#if !fields?seq_contains("sichten.standbutton") > -! echo "field sichten.standbutton will be added" -! echo `date` +select now(),'field sichten.standbutton will be added' +from xdummy; alter table sichten add ( standbutton SMALLINT default 0 not null); @@ -652,8 +674,8 @@ alter table sichten add ( standbutton SMALLINT default 0 not null); <#if !fields?seq_contains("sichten.attribut1") > -! echo "field sichten.attribut1 will be added" -! echo `date` +select now(),'field sichten.attribut1 will be added' +from xdummy; alter table sichten add ( attribut1 NCHAR(255) ); @@ -662,8 +684,8 @@ alter table sichten add ( attribut1 NCHAR(255) ); <#if !fields?seq_contains("sichten.attribut2") > -! echo "field sichten.attribut2 will be added" -! echo `date` +select now(),'field sichten.attribut2 will be added' +from xdummy; alter table sichten add ( attribut2 NCHAR(255) ); @@ -672,8 +694,8 @@ alter table sichten add ( attribut2 NCHAR(255) ); <#if !fields?seq_contains("sichten.attribut3") > -! echo "field sichten.attribut3 will be added" -! echo `date` +select now(),'field sichten.attribut3 will be added' +from xdummy; alter table sichten add ( attribut3 INTEGER ); @@ -682,8 +704,8 @@ alter table sichten add ( attribut3 INTEGER ); <#if !fields?seq_contains("sichten.attribut4") > -! echo "field sichten.attribut4 will be added" -! echo `date` +select now(),'field sichten.attribut4 will be added' +from xdummy; alter table sichten add ( attribut4 INTEGER ); @@ -692,8 +714,8 @@ alter table sichten add ( attribut4 INTEGER ); <#if !fields?seq_contains("sichten.xmlmaxentries") > -! echo "field sichten.xmlmaxentries will be added" -! echo `date` +select now(),'field sichten.xmlmaxentries will be added' +from xdummy; alter table sichten add ( xmlmaxentries INTEGER ); @@ -702,8 +724,8 @@ alter table sichten add ( xmlmaxentries INTEGER ); <#if !fields?seq_contains("sichten.gueltig_seit") > -! echo "field sichten.gueltig_seit will be added" -! echo `date` +select now(),'field sichten.gueltig_seit will be added' +from xdummy; alter table sichten add ( gueltig_seit DATE default '01.01.1900' not null); @@ -712,8 +734,8 @@ alter table sichten add ( gueltig_seit DATE default '01.01.1900' not null); <#if !fields?seq_contains("sichten.gueltig_bis") > -! echo "field sichten.gueltig_bis will be added" -! echo `date` +select now(),'field sichten.gueltig_bis will be added' +from xdummy; alter table sichten add ( gueltig_bis DATE default '01.01.3000' not null); @@ -722,8 +744,8 @@ alter table sichten add ( gueltig_bis DATE default '01.01.3000' not null); <#if !fields?seq_contains("sichten.cacheapplet") > -! echo "field sichten.cacheapplet will be added" -! echo `date` +select now(),'field sichten.cacheapplet will be added' +from xdummy; alter table sichten add ( cacheapplet NCHAR(255) ); @@ -732,8 +754,8 @@ alter table sichten add ( cacheapplet NCHAR(255) ); <#if !fields?seq_contains("sichten.cachexml") > -! echo "field sichten.cachexml will be added" -! echo `date` +select now(),'field sichten.cachexml will be added' +from xdummy; alter table sichten add ( cachexml NCHAR(255) ); @@ -742,8 +764,8 @@ alter table sichten add ( cachexml NCHAR(255) ); <#if !fields?seq_contains("sichten.aktiv") > -! echo "field sichten.aktiv will be added" -! echo `date` +select now(),'field sichten.aktiv will be added' +from xdummy; alter table sichten add ( aktiv SMALLINT default 1 ); @@ -752,8 +774,8 @@ alter table sichten add ( aktiv SMALLINT default 1 ); <#if !fields?seq_contains("lehr_orga_bez.lehr_id") > -! echo "field lehr_orga_bez.lehr_id will be added" -! echo `date` +select now(),'field lehr_orga_bez.lehr_id will be added' +from xdummy; alter table lehr_orga_bez add ( lehr_id CHAR(10) ); @@ -762,8 +784,8 @@ alter table lehr_orga_bez add ( lehr_id CHAR(10) ); <#if !fields?seq_contains("lehr_orga_bez.orga_id") > -! echo "field lehr_orga_bez.orga_id will be added" -! echo `date` +select now(),'field lehr_orga_bez.orga_id will be added' +from xdummy; alter table lehr_orga_bez add ( orga_id CHAR(10) ); @@ -772,8 +794,8 @@ alter table lehr_orga_bez add ( orga_id CHAR(10) ); <#if !fields?seq_contains("lehr_orga_bez.name") > -! echo "field lehr_orga_bez.name will be added" -! echo `date` +select now(),'field lehr_orga_bez.name will be added' +from xdummy; alter table lehr_orga_bez add ( name CHAR(50) ); @@ -782,8 +804,8 @@ alter table lehr_orga_bez add ( name CHAR(50) ); <#if !fields?seq_contains("lehr_orga_bez.gueltig_seit") > -! echo "field lehr_orga_bez.gueltig_seit will be added" -! echo `date` +select now(),'field lehr_orga_bez.gueltig_seit will be added' +from xdummy; alter table lehr_orga_bez add ( gueltig_seit DATE ); @@ -792,8 +814,8 @@ alter table lehr_orga_bez add ( gueltig_seit DATE ); <#if !fields?seq_contains("lehr_orga_bez.gueltig_bis") > -! echo "field lehr_orga_bez.gueltig_bis will be added" -! echo `date` +select now(),'field lehr_orga_bez.gueltig_bis will be added' +from xdummy; alter table lehr_orga_bez add ( gueltig_bis DATE ); @@ -802,8 +824,8 @@ alter table lehr_orga_bez add ( gueltig_bis DATE ); <#if !fields?seq_contains("masken_felder_bez.maskeninfo_id") > -! echo "field masken_felder_bez.maskeninfo_id will be added" -! echo `date` +select now(),'field masken_felder_bez.maskeninfo_id will be added' +from xdummy; alter table masken_felder_bez add ( maskeninfo_id INTEGER ); @@ -812,8 +834,8 @@ alter table masken_felder_bez add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("masken_felder_bez.felderinfo_id") > -! echo "field masken_felder_bez.felderinfo_id will be added" -! echo `date` +select now(),'field masken_felder_bez.felderinfo_id will be added' +from xdummy; alter table masken_felder_bez add ( felderinfo_id INTEGER ); @@ -822,8 +844,8 @@ alter table masken_felder_bez add ( felderinfo_id INTEGER ); <#if !fields?seq_contains("sachgebiete.tid") > -! echo "field sachgebiete.tid will be added" -! echo `date` +select now(),'field sachgebiete.tid will be added' +from xdummy; alter table sachgebiete add ( tid INTEGER ); @@ -832,8 +854,8 @@ alter table sachgebiete add ( tid INTEGER ); <#if !fields?seq_contains("sachgebiete.name") > -! echo "field sachgebiete.name will be added" -! echo `date` +select now(),'field sachgebiete.name will be added' +from xdummy; alter table sachgebiete add ( name CHAR(50) ); @@ -842,8 +864,8 @@ alter table sachgebiete add ( name CHAR(50) ); <#if !fields?seq_contains("sachgebiete.rightname") > -! echo "field sachgebiete.rightname will be added" -! echo `date` +select now(),'field sachgebiete.rightname will be added' +from xdummy; alter table sachgebiete add ( rightname NVARCHAR(255) ); @@ -852,8 +874,8 @@ alter table sachgebiete add ( rightname NVARCHAR(255) ); <#if !fields?seq_contains("sachgeb_maske_bez.sachgebiete_id") > -! echo "field sachgeb_maske_bez.sachgebiete_id will be added" -! echo `date` +select now(),'field sachgeb_maske_bez.sachgebiete_id will be added' +from xdummy; alter table sachgeb_maske_bez add ( sachgebiete_id INTEGER ); @@ -862,8 +884,8 @@ alter table sachgeb_maske_bez add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sachgeb_maske_bez.maskeninfo_id") > -! echo "field sachgeb_maske_bez.maskeninfo_id will be added" -! echo `date` +select now(),'field sachgeb_maske_bez.maskeninfo_id will be added' +from xdummy; alter table sachgeb_maske_bez add ( maskeninfo_id INTEGER ); @@ -872,8 +894,8 @@ alter table sachgeb_maske_bez add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("sachgeb_dbform_bez.sachgebiete_id") > -! echo "field sachgeb_dbform_bez.sachgebiete_id will be added" -! echo `date` +select now(),'field sachgeb_dbform_bez.sachgebiete_id will be added' +from xdummy; alter table sachgeb_dbform_bez add ( sachgebiete_id INTEGER ); @@ -882,8 +904,8 @@ alter table sachgeb_dbform_bez add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sachgeb_dbform_bez.dbform_id") > -! echo "field sachgeb_dbform_bez.dbform_id will be added" -! echo `date` +select now(),'field sachgeb_dbform_bez.dbform_id will be added' +from xdummy; alter table sachgeb_dbform_bez add ( dbform_id INTEGER ); @@ -892,8 +914,8 @@ alter table sachgeb_dbform_bez add ( dbform_id INTEGER ); <#if !fields?seq_contains("user_masken_bez.userinfo_id") > -! echo "field user_masken_bez.userinfo_id will be added" -! echo `date` +select now(),'field user_masken_bez.userinfo_id will be added' +from xdummy; alter table user_masken_bez add ( userinfo_id INTEGER ); @@ -902,8 +924,8 @@ alter table user_masken_bez add ( userinfo_id INTEGER ); <#if !fields?seq_contains("user_masken_bez.maskeninfo_id") > -! echo "field user_masken_bez.maskeninfo_id will be added" -! echo `date` +select now(),'field user_masken_bez.maskeninfo_id will be added' +from xdummy; alter table user_masken_bez add ( maskeninfo_id INTEGER ); @@ -912,8 +934,8 @@ alter table user_masken_bez add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("user_masken_bez.external_entry") > -! echo "field user_masken_bez.external_entry will be added" -! echo `date` +select now(),'field user_masken_bez.external_entry will be added' +from xdummy; alter table user_masken_bez add ( external_entry smallint default 0 ); @@ -922,8 +944,8 @@ alter table user_masken_bez add ( external_entry smallint default 0 ); <#if !fields?seq_contains("user_sachgeb_bez.userinfo_id") > -! echo "field user_sachgeb_bez.userinfo_id will be added" -! echo `date` +select now(),'field user_sachgeb_bez.userinfo_id will be added' +from xdummy; alter table user_sachgeb_bez add ( userinfo_id INTEGER ); @@ -932,8 +954,8 @@ alter table user_sachgeb_bez add ( userinfo_id INTEGER ); <#if !fields?seq_contains("user_sachgeb_bez.sachgebiete_id") > -! echo "field user_sachgeb_bez.sachgebiete_id will be added" -! echo `date` +select now(),'field user_sachgeb_bez.sachgebiete_id will be added' +from xdummy; alter table user_sachgeb_bez add ( sachgebiete_id INTEGER ); @@ -942,8 +964,8 @@ alter table user_sachgeb_bez add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("user_sachgeb_bez.external_entry") > -! echo "field user_sachgeb_bez.external_entry will be added" -! echo `date` +select now(),'field user_sachgeb_bez.external_entry will be added' +from xdummy; alter table user_sachgeb_bez add ( external_entry smallint default 0 ); @@ -952,8 +974,8 @@ alter table user_sachgeb_bez add ( external_entry smallint default 0 ); <#if !fields?seq_contains("xdummy.c") > -! echo "field xdummy.c will be added" -! echo `date` +select now(),'field xdummy.c will be added' +from xdummy; alter table xdummy add ( c CHAR(1) ); @@ -962,8 +984,8 @@ alter table xdummy add ( c CHAR(1) ); <#if !fields?seq_contains("macro_masken_bez.maskeninfo_id1") > -! echo "field macro_masken_bez.maskeninfo_id1 will be added" -! echo `date` +select now(),'field macro_masken_bez.maskeninfo_id1 will be added' +from xdummy; alter table macro_masken_bez add ( maskeninfo_id1 INTEGER not null); @@ -972,8 +994,8 @@ alter table macro_masken_bez add ( maskeninfo_id1 INTEGER not null); <#if !fields?seq_contains("macro_masken_bez.maskeninfo_id2") > -! echo "field macro_masken_bez.maskeninfo_id2 will be added" -! echo `date` +select now(),'field macro_masken_bez.maskeninfo_id2 will be added' +from xdummy; alter table macro_masken_bez add ( maskeninfo_id2 INTEGER not null); @@ -982,8 +1004,8 @@ alter table macro_masken_bez add ( maskeninfo_id2 INTEGER not null); <#if !fields?seq_contains("macro_masken_bez.active") > -! echo "field macro_masken_bez.active will be added" -! echo `date` +select now(),'field macro_masken_bez.active will be added' +from xdummy; alter table macro_masken_bez add ( active INTEGER default 1 not null); @@ -992,8 +1014,8 @@ alter table macro_masken_bez add ( active INTEGER default 1 not null); <#if !fields?seq_contains("macro_masken_bez.sortnr") > -! echo "field macro_masken_bez.sortnr will be added" -! echo `date` +select now(),'field macro_masken_bez.sortnr will be added' +from xdummy; alter table macro_masken_bez add ( sortnr SMALLINT ); @@ -1002,8 +1024,8 @@ alter table macro_masken_bez add ( sortnr SMALLINT ); <#if !fields?seq_contains("macro_masken_bez.schleifenrelation") > -! echo "field macro_masken_bez.schleifenrelation will be added" -! echo `date` +select now(),'field macro_masken_bez.schleifenrelation will be added' +from xdummy; alter table macro_masken_bez add ( schleifenrelation NCHAR(255) ); @@ -1012,8 +1034,8 @@ alter table macro_masken_bez add ( schleifenrelation NCHAR(255) ); <#if !fields?seq_contains("macro_masken_bez.schleifenfeldname") > -! echo "field macro_masken_bez.schleifenfeldname will be added" -! echo `date` +select now(),'field macro_masken_bez.schleifenfeldname will be added' +from xdummy; alter table macro_masken_bez add ( schleifenfeldname NCHAR(255) ); @@ -1022,8 +1044,8 @@ alter table macro_masken_bez add ( schleifenfeldname NCHAR(255) ); <#if !fields?seq_contains("macro_masken_bez.alias") > -! echo "field macro_masken_bez.alias will be added" -! echo `date` +select now(),'field macro_masken_bez.alias will be added' +from xdummy; alter table macro_masken_bez add ( alias NCHAR(255) ); @@ -1032,8 +1054,8 @@ alter table macro_masken_bez add ( alias NCHAR(255) ); <#if !fields?seq_contains("macro_masken_bez.schleifenfstand") > -! echo "field macro_masken_bez.schleifenfstand will be added" -! echo `date` +select now(),'field macro_masken_bez.schleifenfstand will be added' +from xdummy; alter table macro_masken_bez add ( schleifenfstand NCHAR(255) ); @@ -1042,8 +1064,8 @@ alter table macro_masken_bez add ( schleifenfstand NCHAR(255) ); <#if !fields?seq_contains("macro_masken_bez.schleifenfsicht") > -! echo "field macro_masken_bez.schleifenfsicht will be added" -! echo `date` +select now(),'field macro_masken_bez.schleifenfsicht will be added' +from xdummy; alter table macro_masken_bez add ( schleifenfsicht NCHAR(255) ); @@ -1052,8 +1074,8 @@ alter table macro_masken_bez add ( schleifenfsicht NCHAR(255) ); <#if !fields?seq_contains("macro_masken_bez.aktion") > -! echo "field macro_masken_bez.aktion will be added" -! echo `date` +select now(),'field macro_masken_bez.aktion will be added' +from xdummy; alter table macro_masken_bez add ( aktion NCHAR(255) ); @@ -1062,8 +1084,8 @@ alter table macro_masken_bez add ( aktion NCHAR(255) ); <#if !fields?seq_contains("graphicformat.id") > -! echo "field graphicformat.id will be added" -! echo `date` +select now(),'field graphicformat.id will be added' +from xdummy; alter table graphicformat add ( id NCHAR(100) not null); @@ -1072,8 +1094,8 @@ alter table graphicformat add ( id NCHAR(100) not null); <#if !fields?seq_contains("graphicformat.charttype") > -! echo "field graphicformat.charttype will be added" -! echo `date` +select now(),'field graphicformat.charttype will be added' +from xdummy; alter table graphicformat add ( charttype NCHAR(255) not null); @@ -1082,8 +1104,8 @@ alter table graphicformat add ( charttype NCHAR(255) not null); <#if !fields?seq_contains("graphicformat.caption") > -! echo "field graphicformat.caption will be added" -! echo `date` +select now(),'field graphicformat.caption will be added' +from xdummy; alter table graphicformat add ( caption NCHAR(255) ); @@ -1092,8 +1114,8 @@ alter table graphicformat add ( caption NCHAR(255) ); <#if !fields?seq_contains("graphicformat.width") > -! echo "field graphicformat.width will be added" -! echo `date` +select now(),'field graphicformat.width will be added' +from xdummy; alter table graphicformat add ( width INTEGER ); @@ -1102,8 +1124,8 @@ alter table graphicformat add ( width INTEGER ); <#if !fields?seq_contains("graphicformat.height") > -! echo "field graphicformat.height will be added" -! echo `date` +select now(),'field graphicformat.height will be added' +from xdummy; alter table graphicformat add ( height INTEGER ); @@ -1112,8 +1134,8 @@ alter table graphicformat add ( height INTEGER ); <#if !fields?seq_contains("graphicformat.captionx") > -! echo "field graphicformat.captionx will be added" -! echo `date` +select now(),'field graphicformat.captionx will be added' +from xdummy; alter table graphicformat add ( captionx NCHAR(255) ); @@ -1122,8 +1144,8 @@ alter table graphicformat add ( captionx NCHAR(255) ); <#if !fields?seq_contains("graphicformat.captiony") > -! echo "field graphicformat.captiony will be added" -! echo `date` +select now(),'field graphicformat.captiony will be added' +from xdummy; alter table graphicformat add ( captiony NCHAR(255) ); @@ -1132,8 +1154,8 @@ alter table graphicformat add ( captiony NCHAR(255) ); <#if !fields?seq_contains("graphicformat.linex") > -! echo "field graphicformat.linex will be added" -! echo `date` +select now(),'field graphicformat.linex will be added' +from xdummy; alter table graphicformat add ( linex INTEGER not null); @@ -1142,8 +1164,8 @@ alter table graphicformat add ( linex INTEGER not null); <#if !fields?seq_contains("graphicformat.liney") > -! echo "field graphicformat.liney will be added" -! echo `date` +select now(),'field graphicformat.liney will be added' +from xdummy; alter table graphicformat add ( liney INTEGER not null); @@ -1152,8 +1174,8 @@ alter table graphicformat add ( liney INTEGER not null); <#if !fields?seq_contains("graphicformat.showvalues") > -! echo "field graphicformat.showvalues will be added" -! echo `date` +select now(),'field graphicformat.showvalues will be added' +from xdummy; alter table graphicformat add ( showvalues INTEGER not null); @@ -1162,8 +1184,8 @@ alter table graphicformat add ( showvalues INTEGER not null); <#if !fields?seq_contains("graphicformat.moreattribs") > -! echo "field graphicformat.moreattribs will be added" -! echo `date` +select now(),'field graphicformat.moreattribs will be added' +from xdummy; alter table graphicformat add ( moreattribs TEXT ); @@ -1172,8 +1194,8 @@ alter table graphicformat add ( moreattribs TEXT ); <#if !fields?seq_contains("macro_feld_wert.macro") > -! echo "field macro_feld_wert.macro will be added" -! echo `date` +select now(),'field macro_feld_wert.macro will be added' +from xdummy; alter table macro_feld_wert add ( macro INTEGER not null); @@ -1182,8 +1204,8 @@ alter table macro_feld_wert add ( macro INTEGER not null); <#if !fields?seq_contains("macro_feld_wert.sortnr") > -! echo "field macro_feld_wert.sortnr will be added" -! echo `date` +select now(),'field macro_feld_wert.sortnr will be added' +from xdummy; alter table macro_feld_wert add ( sortnr INTEGER not null); @@ -1192,8 +1214,8 @@ alter table macro_feld_wert add ( sortnr INTEGER not null); <#if !fields?seq_contains("macro_feld_wert.feldname") > -! echo "field macro_feld_wert.feldname will be added" -! echo `date` +select now(),'field macro_feld_wert.feldname will be added' +from xdummy; alter table macro_feld_wert add ( feldname NCHAR(255) not null); @@ -1202,8 +1224,8 @@ alter table macro_feld_wert add ( feldname NCHAR(255) not null); <#if !fields?seq_contains("macro_feld_wert.alias") > -! echo "field macro_feld_wert.alias will be added" -! echo `date` +select now(),'field macro_feld_wert.alias will be added' +from xdummy; alter table macro_feld_wert add ( alias NCHAR(255) ); @@ -1212,8 +1234,8 @@ alter table macro_feld_wert add ( alias NCHAR(255) ); <#if !fields?seq_contains("macro_feld_wert.value") > -! echo "field macro_feld_wert.value will be added" -! echo `date` +select now(),'field macro_feld_wert.value will be added' +from xdummy; alter table macro_feld_wert add ( value NCHAR(255) ); @@ -1222,8 +1244,8 @@ alter table macro_feld_wert add ( value NCHAR(255) ); <#if !fields?seq_contains("macro_feld_wert.value_caption") > -! echo "field macro_feld_wert.value_caption will be added" -! echo `date` +select now(),'field macro_feld_wert.value_caption will be added' +from xdummy; alter table macro_feld_wert add ( value_caption NCHAR(255) ); @@ -1232,8 +1254,8 @@ alter table macro_feld_wert add ( value_caption NCHAR(255) ); <#if !fields?seq_contains("macro_feld_wert.feldstand") > -! echo "field macro_feld_wert.feldstand will be added" -! echo `date` +select now(),'field macro_feld_wert.feldstand will be added' +from xdummy; alter table macro_feld_wert add ( feldstand NCHAR(255) ); @@ -1242,8 +1264,8 @@ alter table macro_feld_wert add ( feldstand NCHAR(255) ); <#if !fields?seq_contains("macro_feld_wert.feldsicht") > -! echo "field macro_feld_wert.feldsicht will be added" -! echo `date` +select now(),'field macro_feld_wert.feldsicht will be added' +from xdummy; alter table macro_feld_wert add ( feldsicht NCHAR(255) ); @@ -1252,8 +1274,8 @@ alter table macro_feld_wert add ( feldsicht NCHAR(255) ); <#if !fields?seq_contains("macro_feld_wert.active") > -! echo "field macro_feld_wert.active will be added" -! echo `date` +select now(),'field macro_feld_wert.active will be added' +from xdummy; alter table macro_feld_wert add ( active INTEGER default 1 not null); @@ -1262,8 +1284,8 @@ alter table macro_feld_wert add ( active INTEGER default 1 not null); <#if !fields?seq_contains("groupinfo.tid") > -! echo "field groupinfo.tid will be added" -! echo `date` +select now(),'field groupinfo.tid will be added' +from xdummy; alter table groupinfo add ( tid INTEGER ); @@ -1272,8 +1294,8 @@ alter table groupinfo add ( tid INTEGER ); <#if !fields?seq_contains("groupinfo.name") > -! echo "field groupinfo.name will be added" -! echo `date` +select now(),'field groupinfo.name will be added' +from xdummy; alter table groupinfo add ( name NCHAR(255) ); @@ -1282,8 +1304,8 @@ alter table groupinfo add ( name NCHAR(255) ); <#if !fields?seq_contains("user_group_bez.userinfo_id") > -! echo "field user_group_bez.userinfo_id will be added" -! echo `date` +select now(),'field user_group_bez.userinfo_id will be added' +from xdummy; alter table user_group_bez add ( userinfo_id INTEGER ); @@ -1292,8 +1314,8 @@ alter table user_group_bez add ( userinfo_id INTEGER ); <#if !fields?seq_contains("user_group_bez.groupinfo_id") > -! echo "field user_group_bez.groupinfo_id will be added" -! echo `date` +select now(),'field user_group_bez.groupinfo_id will be added' +from xdummy; alter table user_group_bez add ( groupinfo_id INTEGER ); @@ -1302,8 +1324,8 @@ alter table user_group_bez add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("user_group_bez.external_entry") > -! echo "field user_group_bez.external_entry will be added" -! echo `date` +select now(),'field user_group_bez.external_entry will be added' +from xdummy; alter table user_group_bez add ( external_entry SMALLINT default 0 ); @@ -1312,8 +1334,8 @@ alter table user_group_bez add ( external_entry SMALLINT default 0 ); <#if !fields?seq_contains("group_sachgeb_bez.groupinfo_id") > -! echo "field group_sachgeb_bez.groupinfo_id will be added" -! echo `date` +select now(),'field group_sachgeb_bez.groupinfo_id will be added' +from xdummy; alter table group_sachgeb_bez add ( groupinfo_id INTEGER ); @@ -1322,8 +1344,8 @@ alter table group_sachgeb_bez add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("group_sachgeb_bez.sachgebiete_id") > -! echo "field group_sachgeb_bez.sachgebiete_id will be added" -! echo `date` +select now(),'field group_sachgeb_bez.sachgebiete_id will be added' +from xdummy; alter table group_sachgeb_bez add ( sachgebiete_id INTEGER ); @@ -1332,8 +1354,8 @@ alter table group_sachgeb_bez add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("group_masken_bez.groupinfo_id") > -! echo "field group_masken_bez.groupinfo_id will be added" -! echo `date` +select now(),'field group_masken_bez.groupinfo_id will be added' +from xdummy; alter table group_masken_bez add ( groupinfo_id INTEGER ); @@ -1342,8 +1364,8 @@ alter table group_masken_bez add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("group_masken_bez.maskeninfo_id") > -! echo "field group_masken_bez.maskeninfo_id will be added" -! echo `date` +select now(),'field group_masken_bez.maskeninfo_id will be added' +from xdummy; alter table group_masken_bez add ( maskeninfo_id INTEGER ); @@ -1352,8 +1374,8 @@ alter table group_masken_bez add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("aggre_bland.tid") > -! echo "field aggre_bland.tid will be added" -! echo `date` +select now(),'field aggre_bland.tid will be added' +from xdummy; alter table aggre_bland add ( tid INTEGER ); @@ -1362,8 +1384,8 @@ alter table aggre_bland add ( tid INTEGER ); <#if !fields?seq_contains("aggre_bland.bland") > -! echo "field aggre_bland.bland will be added" -! echo `date` +select now(),'field aggre_bland.bland will be added' +from xdummy; alter table aggre_bland add ( bland CHAR(2) ); @@ -1372,8 +1394,8 @@ alter table aggre_bland add ( bland CHAR(2) ); <#if !fields?seq_contains("aggre_bland.text") > -! echo "field aggre_bland.text will be added" -! echo `date` +select now(),'field aggre_bland.text will be added' +from xdummy; alter table aggre_bland add ( text CHAR(40) not null); @@ -1382,8 +1404,8 @@ alter table aggre_bland add ( text CHAR(40) not null); <#if !fields?seq_contains("cif.tid") > -! echo "field cif.tid will be added" -! echo `date` +select now(),'field cif.tid will be added' +from xdummy; alter table cif add ( tid INTEGER not null); @@ -1392,8 +1414,8 @@ alter table cif add ( tid INTEGER not null); <#if !fields?seq_contains("cif.hs") > -! echo "field cif.hs will be added" -! echo `date` +select now(),'field cif.hs will be added' +from xdummy; alter table cif add ( hs INTEGER not null); @@ -1402,8 +1424,8 @@ alter table cif add ( hs INTEGER not null); <#if !fields?seq_contains("cif.key") > -! echo "field cif.key will be added" -! echo `date` +select now(),'field cif.key will be added' +from xdummy; alter table cif add ( key SMALLINT not null); @@ -1412,8 +1434,8 @@ alter table cif add ( key SMALLINT not null); <#if !fields?seq_contains("cif.apnr") > -! echo "field cif.apnr will be added" -! echo `date` +select now(),'field cif.apnr will be added' +from xdummy; alter table cif add ( apnr INTEGER not null); @@ -1422,8 +1444,8 @@ alter table cif add ( apnr INTEGER not null); <#if !fields?seq_contains("cif.d_akt_von") > -! echo "field cif.d_akt_von will be added" -! echo `date` +select now(),'field cif.d_akt_von will be added' +from xdummy; alter table cif add ( d_akt_von DATE ); @@ -1432,8 +1454,8 @@ alter table cif add ( d_akt_von DATE ); <#if !fields?seq_contains("cif.d_akt_bis") > -! echo "field cif.d_akt_bis will be added" -! echo `date` +select now(),'field cif.d_akt_bis will be added' +from xdummy; alter table cif add ( d_akt_bis DATE ); @@ -1442,8 +1464,8 @@ alter table cif add ( d_akt_bis DATE ); <#if !fields?seq_contains("cif.kurz") > -! echo "field cif.kurz will be added" -! echo `date` +select now(),'field cif.kurz will be added' +from xdummy; alter table cif add ( kurz CHAR(10) ); @@ -1452,8 +1474,8 @@ alter table cif add ( kurz CHAR(10) ); <#if !fields?seq_contains("cif.druck") > -! echo "field cif.druck will be added" -! echo `date` +select now(),'field cif.druck will be added' +from xdummy; alter table cif add ( druck NCHAR(100) ); @@ -1462,8 +1484,8 @@ alter table cif add ( druck NCHAR(100) ); <#if !fields?seq_contains("cif.lang_1") > -! echo "field cif.lang_1 will be added" -! echo `date` +select now(),'field cif.lang_1 will be added' +from xdummy; alter table cif add ( lang_1 NCHAR(100) ); @@ -1472,8 +1494,8 @@ alter table cif add ( lang_1 NCHAR(100) ); <#if !fields?seq_contains("cif.lang_2") > -! echo "field cif.lang_2 will be added" -! echo `date` +select now(),'field cif.lang_2 will be added' +from xdummy; alter table cif add ( lang_2 NCHAR(150) ); @@ -1482,8 +1504,8 @@ alter table cif add ( lang_2 NCHAR(150) ); <#if !fields?seq_contains("cif.lang_3") > -! echo "field cif.lang_3 will be added" -! echo `date` +select now(),'field cif.lang_3 will be added' +from xdummy; alter table cif add ( lang_3 NCHAR(250) ); @@ -1492,18 +1514,28 @@ alter table cif add ( lang_3 NCHAR(250) ); <#if !fields?seq_contains("cif.sort1") > -! echo "field cif.sort1 will be added" -! echo `date` +select now(),'field cif.sort1 will be added' +from xdummy; alter table cif add ( sort1 INTEGER ); +<#if !fields?seq_contains("cif.uniquename") > + + +select now(),'field cif.uniquename will be added' +from xdummy; + +alter table cif add ( uniquename NVARCHAR(255) ); + + + <#if !fields?seq_contains("cifx.tid") > -! echo "field cifx.tid will be added" -! echo `date` +select now(),'field cifx.tid will be added' +from xdummy; alter table cifx add ( tid INTEGER not null); @@ -1512,8 +1544,8 @@ alter table cifx add ( tid INTEGER not null); <#if !fields?seq_contains("cifx.hs") > -! echo "field cifx.hs will be added" -! echo `date` +select now(),'field cifx.hs will be added' +from xdummy; alter table cifx add ( hs INTEGER not null); @@ -1522,8 +1554,8 @@ alter table cifx add ( hs INTEGER not null); <#if !fields?seq_contains("cifx.key") > -! echo "field cifx.key will be added" -! echo `date` +select now(),'field cifx.key will be added' +from xdummy; alter table cifx add ( key SMALLINT not null); @@ -1532,8 +1564,8 @@ alter table cifx add ( key SMALLINT not null); <#if !fields?seq_contains("cifx.apnr") > -! echo "field cifx.apnr will be added" -! echo `date` +select now(),'field cifx.apnr will be added' +from xdummy; alter table cifx add ( apnr CHAR(10) not null); @@ -1542,8 +1574,8 @@ alter table cifx add ( apnr CHAR(10) not null); <#if !fields?seq_contains("cifx.d_akt_von") > -! echo "field cifx.d_akt_von will be added" -! echo `date` +select now(),'field cifx.d_akt_von will be added' +from xdummy; alter table cifx add ( d_akt_von DATE ); @@ -1552,8 +1584,8 @@ alter table cifx add ( d_akt_von DATE ); <#if !fields?seq_contains("cifx.d_akt_bis") > -! echo "field cifx.d_akt_bis will be added" -! echo `date` +select now(),'field cifx.d_akt_bis will be added' +from xdummy; alter table cifx add ( d_akt_bis DATE ); @@ -1562,8 +1594,8 @@ alter table cifx add ( d_akt_bis DATE ); <#if !fields?seq_contains("cifx.kurz") > -! echo "field cifx.kurz will be added" -! echo `date` +select now(),'field cifx.kurz will be added' +from xdummy; alter table cifx add ( kurz NVARCHAR(255) ); @@ -1572,8 +1604,8 @@ alter table cifx add ( kurz NVARCHAR(255) ); <#if !fields?seq_contains("cifx.druck") > -! echo "field cifx.druck will be added" -! echo `date` +select now(),'field cifx.druck will be added' +from xdummy; alter table cifx add ( druck NVARCHAR(255) ); @@ -1582,8 +1614,8 @@ alter table cifx add ( druck NVARCHAR(255) ); <#if !fields?seq_contains("cifx.lang_1") > -! echo "field cifx.lang_1 will be added" -! echo `date` +select now(),'field cifx.lang_1 will be added' +from xdummy; alter table cifx add ( lang_1 NVARCHAR(255) ); @@ -1592,8 +1624,8 @@ alter table cifx add ( lang_1 NVARCHAR(255) ); <#if !fields?seq_contains("cifx.lang_2") > -! echo "field cifx.lang_2 will be added" -! echo `date` +select now(),'field cifx.lang_2 will be added' +from xdummy; alter table cifx add ( lang_2 NVARCHAR(255) ); @@ -1602,8 +1634,8 @@ alter table cifx add ( lang_2 NVARCHAR(255) ); <#if !fields?seq_contains("cifx.lang_3") > -! echo "field cifx.lang_3 will be added" -! echo `date` +select now(),'field cifx.lang_3 will be added' +from xdummy; alter table cifx add ( lang_3 NVARCHAR(255) ); @@ -1612,8 +1644,8 @@ alter table cifx add ( lang_3 NVARCHAR(255) ); <#if !fields?seq_contains("cifx.parent") > -! echo "field cifx.parent will be added" -! echo `date` +select now(),'field cifx.parent will be added' +from xdummy; alter table cifx add ( parent CHAR(10) ); @@ -1622,8 +1654,8 @@ alter table cifx add ( parent CHAR(10) ); <#if !fields?seq_contains("cifx.parent_int") > -! echo "field cifx.parent_int will be added" -! echo `date` +select now(),'field cifx.parent_int will be added' +from xdummy; alter table cifx add ( parent_int INTEGER ); @@ -1632,8 +1664,8 @@ alter table cifx add ( parent_int INTEGER ); <#if !fields?seq_contains("cifx.filter") > -! echo "field cifx.filter will be added" -! echo `date` +select now(),'field cifx.filter will be added' +from xdummy; alter table cifx add ( filter CHAR(10) ); @@ -1642,8 +1674,8 @@ alter table cifx add ( filter CHAR(10) ); <#if !fields?seq_contains("cifx.refapnr") > -! echo "field cifx.refapnr will be added" -! echo `date` +select now(),'field cifx.refapnr will be added' +from xdummy; alter table cifx add ( refapnr CHAR(10) ); @@ -1652,8 +1684,8 @@ alter table cifx add ( refapnr CHAR(10) ); <#if !fields?seq_contains("cifx.astat") > -! echo "field cifx.astat will be added" -! echo `date` +select now(),'field cifx.astat will be added' +from xdummy; alter table cifx add ( astat CHAR(10) ); @@ -1662,8 +1694,8 @@ alter table cifx add ( astat CHAR(10) ); <#if !fields?seq_contains("cifx.bund_apnr") > -! echo "field cifx.bund_apnr will be added" -! echo `date` +select now(),'field cifx.bund_apnr will be added' +from xdummy; alter table cifx add ( bund_apnr CHAR(10) ); @@ -1672,8 +1704,8 @@ alter table cifx add ( bund_apnr CHAR(10) ); <#if !fields?seq_contains("cifx.land_apnr") > -! echo "field cifx.land_apnr will be added" -! echo `date` +select now(),'field cifx.land_apnr will be added' +from xdummy; alter table cifx add ( land_apnr CHAR(10) ); @@ -1682,8 +1714,8 @@ alter table cifx add ( land_apnr CHAR(10) ); <#if !fields?seq_contains("cifx.hiskey_id") > -! echo "field cifx.hiskey_id will be added" -! echo `date` +select now(),'field cifx.hiskey_id will be added' +from xdummy; alter table cifx add ( hiskey_id NVARCHAR(255) ); @@ -1692,8 +1724,8 @@ alter table cifx add ( hiskey_id NVARCHAR(255) ); <#if !fields?seq_contains("cifx.uniquename") > -! echo "field cifx.uniquename will be added" -! echo `date` +select now(),'field cifx.uniquename will be added' +from xdummy; alter table cifx add ( uniquename NVARCHAR(255) ); @@ -1702,8 +1734,8 @@ alter table cifx add ( uniquename NVARCHAR(255) ); <#if !fields?seq_contains("cifx.sort1") > -! echo "field cifx.sort1 will be added" -! echo `date` +select now(),'field cifx.sort1 will be added' +from xdummy; alter table cifx add ( sort1 INTEGER ); @@ -1712,8 +1744,8 @@ alter table cifx add ( sort1 INTEGER ); <#if !fields?seq_contains("cifx.sort2") > -! echo "field cifx.sort2 will be added" -! echo `date` +select now(),'field cifx.sort2 will be added' +from xdummy; alter table cifx add ( sort2 INTEGER ); @@ -1722,8 +1754,8 @@ alter table cifx add ( sort2 INTEGER ); <#if !fields?seq_contains("cifx.sort3") > -! echo "field cifx.sort3 will be added" -! echo `date` +select now(),'field cifx.sort3 will be added' +from xdummy; alter table cifx add ( sort3 INTEGER ); @@ -1732,8 +1764,8 @@ alter table cifx add ( sort3 INTEGER ); <#if !fields?seq_contains("cifx.sortc1") > -! echo "field cifx.sortc1 will be added" -! echo `date` +select now(),'field cifx.sortc1 will be added' +from xdummy; alter table cifx add ( sortc1 CHAR(10) ); @@ -1742,8 +1774,8 @@ alter table cifx add ( sortc1 CHAR(10) ); <#if !fields?seq_contains("cifx.sortc2") > -! echo "field cifx.sortc2 will be added" -! echo `date` +select now(),'field cifx.sortc2 will be added' +from xdummy; alter table cifx add ( sortc2 CHAR(10) ); @@ -1752,8 +1784,8 @@ alter table cifx add ( sortc2 CHAR(10) ); <#if !fields?seq_contains("cifx.sourcesystem") > -! echo "field cifx.sourcesystem will be added" -! echo `date` +select now(),'field cifx.sourcesystem will be added' +from xdummy; alter table cifx add ( sourcesystem integer ); @@ -1762,8 +1794,8 @@ alter table cifx add ( sourcesystem integer ); <#if !fields?seq_contains("cifx.sourcesystem_id") > -! echo "field cifx.sourcesystem_id will be added" -! echo `date` +select now(),'field cifx.sourcesystem_id will be added' +from xdummy; alter table cifx add ( sourcesystem_id NVARCHAR(255) ); @@ -1772,8 +1804,8 @@ alter table cifx add ( sourcesystem_id NVARCHAR(255) ); <#if !fields?seq_contains("cifx.intern_int") > -! echo "field cifx.intern_int will be added" -! echo `date` +select now(),'field cifx.intern_int will be added' +from xdummy; alter table cifx add ( intern_int INTEGER ); @@ -1782,8 +1814,8 @@ alter table cifx add ( intern_int INTEGER ); <#if !fields?seq_contains("cifx.intern_c") > -! echo "field cifx.intern_c will be added" -! echo `date` +select now(),'field cifx.intern_c will be added' +from xdummy; alter table cifx add ( intern_c CHAR(10) ); @@ -1792,8 +1824,8 @@ alter table cifx add ( intern_c CHAR(10) ); <#if !fields?seq_contains("cifx.sprache") > -! echo "field cifx.sprache will be added" -! echo `date` +select now(),'field cifx.sprache will be added' +from xdummy; alter table cifx add ( sprache CHAR(3) ); @@ -1802,8 +1834,8 @@ alter table cifx add ( sprache CHAR(3) ); <#if !fields?seq_contains("cifx.struktur_int") > -! echo "field cifx.struktur_int will be added" -! echo `date` +select now(),'field cifx.struktur_int will be added' +from xdummy; alter table cifx add ( struktur_int INTEGER ); @@ -1812,8 +1844,8 @@ alter table cifx add ( struktur_int INTEGER ); <#if !fields?seq_contains("cifx.struktur_c") > -! echo "field cifx.struktur_c will be added" -! echo `date` +select now(),'field cifx.struktur_c will be added' +from xdummy; alter table cifx add ( struktur_c CHAR(50) ); @@ -1822,8 +1854,8 @@ alter table cifx add ( struktur_c CHAR(50) ); <#if !fields?seq_contains("cifx.ebene") > -! echo "field cifx.ebene will be added" -! echo `date` +select now(),'field cifx.ebene will be added' +from xdummy; alter table cifx add ( ebene INTEGER ); @@ -1832,8 +1864,8 @@ alter table cifx add ( ebene INTEGER ); <#if !fields?seq_contains("cifx.lid") > -! echo "field cifx.lid will be added" -! echo `date` +select now(),'field cifx.lid will be added' +from xdummy; alter table cifx add ( lid NVARCHAR(255) ); @@ -1842,8 +1874,8 @@ alter table cifx add ( lid NVARCHAR(255) ); <#if !fields?seq_contains("cifx.parent_lid") > -! echo "field cifx.parent_lid will be added" -! echo `date` +select now(),'field cifx.parent_lid will be added' +from xdummy; alter table cifx add ( parent_lid NVARCHAR(255) ); @@ -1852,8 +1884,8 @@ alter table cifx add ( parent_lid NVARCHAR(255) ); <#if !fields?seq_contains("trans_cifx.key") > -! echo "field trans_cifx.key will be added" -! echo `date` +select now(),'field trans_cifx.key will be added' +from xdummy; alter table trans_cifx add ( key SMALLINT not null); @@ -1862,8 +1894,8 @@ alter table trans_cifx add ( key SMALLINT not null); <#if !fields?seq_contains("trans_cifx.apnr") > -! echo "field trans_cifx.apnr will be added" -! echo `date` +select now(),'field trans_cifx.apnr will be added' +from xdummy; alter table trans_cifx add ( apnr CHAR(10) not null); @@ -1872,8 +1904,8 @@ alter table trans_cifx add ( apnr CHAR(10) not null); <#if !fields?seq_contains("trans_cifx.cifx_tid") > -! echo "field trans_cifx.cifx_tid will be added" -! echo `date` +select now(),'field trans_cifx.cifx_tid will be added' +from xdummy; alter table trans_cifx add ( cifx_tid INTEGER ); @@ -1882,8 +1914,8 @@ alter table trans_cifx add ( cifx_tid INTEGER ); <#if !fields?seq_contains("trans_cifx.sourcesystem") > -! echo "field trans_cifx.sourcesystem will be added" -! echo `date` +select now(),'field trans_cifx.sourcesystem will be added' +from xdummy; alter table trans_cifx add ( sourcesystem INTEGER not null); @@ -1892,8 +1924,8 @@ alter table trans_cifx add ( sourcesystem INTEGER not null); <#if !fields?seq_contains("trans_cifx.sourcesystem_id") > -! echo "field trans_cifx.sourcesystem_id will be added" -! echo `date` +select now(),'field trans_cifx.sourcesystem_id will be added' +from xdummy; alter table trans_cifx add ( sourcesystem_id NVARCHAR(255) ); @@ -1902,8 +1934,8 @@ alter table trans_cifx add ( sourcesystem_id NVARCHAR(255) ); <#if !fields?seq_contains("trans_cifx.systeminfo_id") > -! echo "field trans_cifx.systeminfo_id will be added" -! echo `date` +select now(),'field trans_cifx.systeminfo_id will be added' +from xdummy; alter table trans_cifx add ( systeminfo_id INTEGER ); @@ -1912,8 +1944,8 @@ alter table trans_cifx add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("trans_cif.key") > -! echo "field trans_cif.key will be added" -! echo `date` +select now(),'field trans_cif.key will be added' +from xdummy; alter table trans_cif add ( key SMALLINT not null); @@ -1922,8 +1954,8 @@ alter table trans_cif add ( key SMALLINT not null); <#if !fields?seq_contains("trans_cif.apnr") > -! echo "field trans_cif.apnr will be added" -! echo `date` +select now(),'field trans_cif.apnr will be added' +from xdummy; alter table trans_cif add ( apnr CHAR(10) not null); @@ -1932,8 +1964,8 @@ alter table trans_cif add ( apnr CHAR(10) not null); <#if !fields?seq_contains("trans_cif.cif_tid") > -! echo "field trans_cif.cif_tid will be added" -! echo `date` +select now(),'field trans_cif.cif_tid will be added' +from xdummy; alter table trans_cif add ( cif_tid INTEGER ); @@ -1942,8 +1974,8 @@ alter table trans_cif add ( cif_tid INTEGER ); <#if !fields?seq_contains("trans_cif.sourcesystem") > -! echo "field trans_cif.sourcesystem will be added" -! echo `date` +select now(),'field trans_cif.sourcesystem will be added' +from xdummy; alter table trans_cif add ( sourcesystem INTEGER not null); @@ -1952,8 +1984,8 @@ alter table trans_cif add ( sourcesystem INTEGER not null); <#if !fields?seq_contains("trans_cif.sourcesystem_id") > -! echo "field trans_cif.sourcesystem_id will be added" -! echo `date` +select now(),'field trans_cif.sourcesystem_id will be added' +from xdummy; alter table trans_cif add ( sourcesystem_id NVARCHAR(255) ); @@ -1962,18 +1994,98 @@ alter table trans_cif add ( sourcesystem_id NVARCHAR(255) ); <#if !fields?seq_contains("trans_cif.systeminfo_id") > -! echo "field trans_cif.systeminfo_id will be added" -! echo `date` +select now(),'field trans_cif.systeminfo_id will be added' +from xdummy; alter table trans_cif add ( systeminfo_id INTEGER ); +<#if !fields?seq_contains("cifx_customize.tid") > + + +select now(),'field cifx_customize.tid will be added' +from xdummy; + +alter table cifx_customize add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("cifx_customize.cifx_table") > + + +select now(),'field cifx_customize.cifx_table will be added' +from xdummy; + +alter table cifx_customize add ( cifx_table NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("cifx_customize.key") > + + +select now(),'field cifx_customize.key will be added' +from xdummy; + +alter table cifx_customize add ( key SMALLINT not null); + + + +<#if !fields?seq_contains("cifx_customize.apnr") > + + +select now(),'field cifx_customize.apnr will be added' +from xdummy; + +alter table cifx_customize add ( apnr CHAR(10) not null); + + + +<#if !fields?seq_contains("cifx_customize.kurz") > + + +select now(),'field cifx_customize.kurz will be added' +from xdummy; + +alter table cifx_customize add ( kurz NVARCHAR(255) ); + + + +<#if !fields?seq_contains("cifx_customize.druck") > + + +select now(),'field cifx_customize.druck will be added' +from xdummy; + +alter table cifx_customize add ( druck NVARCHAR(255) default 'Drucktext' ); + + + +<#if !fields?seq_contains("cifx_customize.lang_1") > + + +select now(),'field cifx_customize.lang_1 will be added' +from xdummy; + +alter table cifx_customize add ( lang_1 NVARCHAR(255) ); + + + +<#if !fields?seq_contains("cifx_customize.uniquename") > + + +select now(),'field cifx_customize.uniquename will be added' +from xdummy; + +alter table cifx_customize add ( uniquename NVARCHAR(255) ); + + + <#if !fields?seq_contains("felderinfo.tid") > -! echo "field felderinfo.tid will be added" -! echo `date` +select now(),'field felderinfo.tid will be added' +from xdummy; alter table felderinfo add ( tid INTEGER not null); @@ -1982,8 +2094,8 @@ alter table felderinfo add ( tid INTEGER not null); <#if !fields?seq_contains("felderinfo.name") > -! echo "field felderinfo.name will be added" -! echo `date` +select now(),'field felderinfo.name will be added' +from xdummy; alter table felderinfo add ( name NVARCHAR(255) not null); @@ -1992,8 +2104,8 @@ alter table felderinfo add ( name NVARCHAR(255) not null); <#if !fields?seq_contains("felderinfo.nummer") > -! echo "field felderinfo.nummer will be added" -! echo `date` +select now(),'field felderinfo.nummer will be added' +from xdummy; alter table felderinfo add ( nummer INTEGER not null); @@ -2002,8 +2114,8 @@ alter table felderinfo add ( nummer INTEGER not null); <#if !fields?seq_contains("felderinfo.x") > -! echo "field felderinfo.x will be added" -! echo `date` +select now(),'field felderinfo.x will be added' +from xdummy; alter table felderinfo add ( x INTEGER ); @@ -2012,8 +2124,8 @@ alter table felderinfo add ( x INTEGER ); <#if !fields?seq_contains("felderinfo.y") > -! echo "field felderinfo.y will be added" -! echo `date` +select now(),'field felderinfo.y will be added' +from xdummy; alter table felderinfo add ( y INTEGER ); @@ -2022,8 +2134,8 @@ alter table felderinfo add ( y INTEGER ); <#if !fields?seq_contains("felderinfo.buttonbreite") > -! echo "field felderinfo.buttonbreite will be added" -! echo `date` +select now(),'field felderinfo.buttonbreite will be added' +from xdummy; alter table felderinfo add ( buttonbreite INTEGER ); @@ -2032,8 +2144,8 @@ alter table felderinfo add ( buttonbreite INTEGER ); <#if !fields?seq_contains("felderinfo.feldbreite") > -! echo "field felderinfo.feldbreite will be added" -! echo `date` +select now(),'field felderinfo.feldbreite will be added' +from xdummy; alter table felderinfo add ( feldbreite INTEGER ); @@ -2042,8 +2154,8 @@ alter table felderinfo add ( feldbreite INTEGER ); <#if !fields?seq_contains("felderinfo.zeilenanzahl") > -! echo "field felderinfo.zeilenanzahl will be added" -! echo `date` +select now(),'field felderinfo.zeilenanzahl will be added' +from xdummy; alter table felderinfo add ( zeilenanzahl INTEGER ); @@ -2052,8 +2164,8 @@ alter table felderinfo add ( zeilenanzahl INTEGER ); <#if !fields?seq_contains("felderinfo.typ") > -! echo "field felderinfo.typ will be added" -! echo `date` +select now(),'field felderinfo.typ will be added' +from xdummy; alter table felderinfo add ( typ CHAR(15) ); @@ -2062,8 +2174,8 @@ alter table felderinfo add ( typ CHAR(15) ); <#if !fields?seq_contains("felderinfo.laenge") > -! echo "field felderinfo.laenge will be added" -! echo `date` +select now(),'field felderinfo.laenge will be added' +from xdummy; alter table felderinfo add ( laenge INTEGER ); @@ -2072,8 +2184,8 @@ alter table felderinfo add ( laenge INTEGER ); <#if !fields?seq_contains("felderinfo.obligatorisch") > -! echo "field felderinfo.obligatorisch will be added" -! echo `date` +select now(),'field felderinfo.obligatorisch will be added' +from xdummy; alter table felderinfo add ( obligatorisch INTEGER ); @@ -2082,8 +2194,8 @@ alter table felderinfo add ( obligatorisch INTEGER ); <#if !fields?seq_contains("felderinfo.art") > -! echo "field felderinfo.art will be added" -! echo `date` +select now(),'field felderinfo.art will be added' +from xdummy; alter table felderinfo add ( art INTEGER ); @@ -2092,8 +2204,8 @@ alter table felderinfo add ( art INTEGER ); <#if !fields?seq_contains("felderinfo.relation") > -! echo "field felderinfo.relation will be added" -! echo `date` +select now(),'field felderinfo.relation will be added' +from xdummy; alter table felderinfo add ( relation text ); @@ -2102,8 +2214,8 @@ alter table felderinfo add ( relation text ); <#if !fields?seq_contains("felderinfo.attribut") > -! echo "field felderinfo.attribut will be added" -! echo `date` +select now(),'field felderinfo.attribut will be added' +from xdummy; alter table felderinfo add ( attribut NCHAR(100) ); @@ -2112,8 +2224,8 @@ alter table felderinfo add ( attribut NCHAR(100) ); <#if !fields?seq_contains("felderinfo.defaultwert") > -! echo "field felderinfo.defaultwert will be added" -! echo `date` +select now(),'field felderinfo.defaultwert will be added' +from xdummy; alter table felderinfo add ( defaultwert NCHAR(255) ); @@ -2122,8 +2234,8 @@ alter table felderinfo add ( defaultwert NCHAR(255) ); <#if !fields?seq_contains("hochschulinfo.name") > -! echo "field hochschulinfo.name will be added" -! echo `date` +select now(),'field hochschulinfo.name will be added' +from xdummy; alter table hochschulinfo add ( name NCHAR(100) not null); @@ -2132,8 +2244,8 @@ alter table hochschulinfo add ( name NCHAR(100) not null); <#if !fields?seq_contains("hochschulinfo.adresse") > -! echo "field hochschulinfo.adresse will be added" -! echo `date` +select now(),'field hochschulinfo.adresse will be added' +from xdummy; alter table hochschulinfo add ( adresse NCHAR(200) ); @@ -2142,8 +2254,8 @@ alter table hochschulinfo add ( adresse NCHAR(200) ); <#if !fields?seq_contains("hochschulinfo.hs_nr") > -! echo "field hochschulinfo.hs_nr will be added" -! echo `date` +select now(),'field hochschulinfo.hs_nr will be added' +from xdummy; alter table hochschulinfo add ( hs_nr INTEGER not null); @@ -2152,8 +2264,8 @@ alter table hochschulinfo add ( hs_nr INTEGER not null); <#if !fields?seq_contains("hochschulinfo.kapitel") > -! echo "field hochschulinfo.kapitel will be added" -! echo `date` +select now(),'field hochschulinfo.kapitel will be added' +from xdummy; alter table hochschulinfo add ( kapitel CHAR(5) not null); @@ -2162,8 +2274,8 @@ alter table hochschulinfo add ( kapitel CHAR(5) not null); <#if !fields?seq_contains("hochschulinfo.superx_server") > -! echo "field hochschulinfo.superx_server will be added" -! echo `date` +select now(),'field hochschulinfo.superx_server will be added' +from xdummy; alter table hochschulinfo add ( superx_server NCHAR(100) not null); @@ -2172,8 +2284,8 @@ alter table hochschulinfo add ( superx_server NCHAR(100) not null); <#if !fields?seq_contains("hochschulinfo.kennung") > -! echo "field hochschulinfo.kennung will be added" -! echo `date` +select now(),'field hochschulinfo.kennung will be added' +from xdummy; alter table hochschulinfo add ( kennung CHAR(8) ); @@ -2182,8 +2294,8 @@ alter table hochschulinfo add ( kennung CHAR(8) ); <#if !fields?seq_contains("hochschulinfo.passwd") > -! echo "field hochschulinfo.passwd will be added" -! echo `date` +select now(),'field hochschulinfo.passwd will be added' +from xdummy; alter table hochschulinfo add ( passwd CHAR(16) ); @@ -2192,8 +2304,8 @@ alter table hochschulinfo add ( passwd CHAR(16) ); <#if !fields?seq_contains("maske_system_bez.maskeninfo_id") > -! echo "field maske_system_bez.maskeninfo_id will be added" -! echo `date` +select now(),'field maske_system_bez.maskeninfo_id will be added' +from xdummy; alter table maske_system_bez add ( maskeninfo_id INTEGER not null); @@ -2202,8 +2314,8 @@ alter table maske_system_bez add ( maskeninfo_id INTEGER not null); <#if !fields?seq_contains("maske_system_bez.systeminfo_id") > -! echo "field maske_system_bez.systeminfo_id will be added" -! echo `date` +select now(),'field maske_system_bez.systeminfo_id will be added' +from xdummy; alter table maske_system_bez add ( systeminfo_id INTEGER not null); @@ -2212,8 +2324,8 @@ alter table maske_system_bez add ( systeminfo_id INTEGER not null); <#if !fields?seq_contains("maskeninfo.tid") > -! echo "field maskeninfo.tid will be added" -! echo `date` +select now(),'field maskeninfo.tid will be added' +from xdummy; alter table maskeninfo add ( tid INTEGER not null); @@ -2222,8 +2334,8 @@ alter table maskeninfo add ( tid INTEGER not null); <#if !fields?seq_contains("maskeninfo.name") > -! echo "field maskeninfo.name will be added" -! echo `date` +select now(),'field maskeninfo.name will be added' +from xdummy; alter table maskeninfo add ( name NCHAR(255) not null); @@ -2232,8 +2344,8 @@ alter table maskeninfo add ( name NCHAR(255) not null); <#if !fields?seq_contains("maskeninfo.select_stmt") > -! echo "field maskeninfo.select_stmt will be added" -! echo `date` +select now(),'field maskeninfo.select_stmt will be added' +from xdummy; alter table maskeninfo add ( select_stmt text ); @@ -2242,8 +2354,8 @@ alter table maskeninfo add ( select_stmt text ); <#if !fields?seq_contains("maskeninfo.xil_proplist") > -! echo "field maskeninfo.xil_proplist will be added" -! echo `date` +select now(),'field maskeninfo.xil_proplist will be added' +from xdummy; alter table maskeninfo add ( xil_proplist text ); @@ -2252,8 +2364,8 @@ alter table maskeninfo add ( xil_proplist text ); <#if !fields?seq_contains("maskeninfo.chart_xtitel") > -! echo "field maskeninfo.chart_xtitel will be added" -! echo `date` +select now(),'field maskeninfo.chart_xtitel will be added' +from xdummy; alter table maskeninfo add ( chart_xtitel CHAR(50) ); @@ -2262,8 +2374,8 @@ alter table maskeninfo add ( chart_xtitel CHAR(50) ); <#if !fields?seq_contains("maskeninfo.chart_ytitel") > -! echo "field maskeninfo.chart_ytitel will be added" -! echo `date` +select now(),'field maskeninfo.chart_ytitel will be added' +from xdummy; alter table maskeninfo add ( chart_ytitel CHAR(50) ); @@ -2272,8 +2384,8 @@ alter table maskeninfo add ( chart_ytitel CHAR(50) ); <#if !fields?seq_contains("maskeninfo.erlaeuterung") > -! echo "field maskeninfo.erlaeuterung will be added" -! echo `date` +select now(),'field maskeninfo.erlaeuterung will be added' +from xdummy; alter table maskeninfo add ( erlaeuterung NCHAR(255) ); @@ -2282,8 +2394,8 @@ alter table maskeninfo add ( erlaeuterung NCHAR(255) ); <#if !fields?seq_contains("maskeninfo.cleanup_stmt") > -! echo "field maskeninfo.cleanup_stmt will be added" -! echo `date` +select now(),'field maskeninfo.cleanup_stmt will be added' +from xdummy; alter table maskeninfo add ( cleanup_stmt NCHAR(240) ); @@ -2292,8 +2404,8 @@ alter table maskeninfo add ( cleanup_stmt NCHAR(240) ); <#if !fields?seq_contains("maskeninfo.default_file") > -! echo "field maskeninfo.default_file will be added" -! echo `date` +select now(),'field maskeninfo.default_file will be added' +from xdummy; alter table maskeninfo add ( default_file NCHAR(200) ); @@ -2302,8 +2414,8 @@ alter table maskeninfo add ( default_file NCHAR(200) ); <#if !fields?seq_contains("maskeninfo.frontend") > -! echo "field maskeninfo.frontend will be added" -! echo `date` +select now(),'field maskeninfo.frontend will be added' +from xdummy; alter table maskeninfo add ( frontend SMALLINT ); @@ -2312,8 +2424,8 @@ alter table maskeninfo add ( frontend SMALLINT ); <#if !fields?seq_contains("maskeninfo.breite") > -! echo "field maskeninfo.breite will be added" -! echo `date` +select now(),'field maskeninfo.breite will be added' +from xdummy; alter table maskeninfo add ( breite INTEGER ); @@ -2322,8 +2434,8 @@ alter table maskeninfo add ( breite INTEGER ); <#if !fields?seq_contains("maskeninfo.hoehe") > -! echo "field maskeninfo.hoehe will be added" -! echo `date` +select now(),'field maskeninfo.hoehe will be added' +from xdummy; alter table maskeninfo add ( hoehe INTEGER ); @@ -2332,8 +2444,8 @@ alter table maskeninfo add ( hoehe INTEGER ); <#if !fields?seq_contains("maskeninfo.ampel") > -! echo "field maskeninfo.ampel will be added" -! echo `date` +select now(),'field maskeninfo.ampel will be added' +from xdummy; alter table maskeninfo add ( ampel SMALLINT ); @@ -2342,8 +2454,8 @@ alter table maskeninfo add ( ampel SMALLINT ); <#if !fields?seq_contains("maskeninfo.hilfe") > -! echo "field maskeninfo.hilfe will be added" -! echo `date` +select now(),'field maskeninfo.hilfe will be added' +from xdummy; alter table maskeninfo add ( hilfe SMALLINT ); @@ -2352,8 +2464,8 @@ alter table maskeninfo add ( hilfe SMALLINT ); <#if !fields?seq_contains("maskeninfo.hinweis") > -! echo "field maskeninfo.hinweis will be added" -! echo `date` +select now(),'field maskeninfo.hinweis will be added' +from xdummy; alter table maskeninfo add ( hinweis text ); @@ -2362,8 +2474,8 @@ alter table maskeninfo add ( hinweis text ); <#if !fields?seq_contains("proto_funktion.proto_fkt_id") > -! echo "field proto_funktion.proto_fkt_id will be added" -! echo `date` +select now(),'field proto_funktion.proto_fkt_id will be added' +from xdummy; alter table proto_funktion add ( proto_fkt_id SMALLINT not null); @@ -2372,8 +2484,8 @@ alter table proto_funktion add ( proto_fkt_id SMALLINT not null); <#if !fields?seq_contains("proto_funktion.proto_fkt") > -! echo "field proto_funktion.proto_fkt will be added" -! echo `date` +select now(),'field proto_funktion.proto_fkt will be added' +from xdummy; alter table proto_funktion add ( proto_fkt CHAR(20) not null); @@ -2382,8 +2494,8 @@ alter table proto_funktion add ( proto_fkt CHAR(20) not null); <#if !fields?seq_contains("systeminfo.tid") > -! echo "field systeminfo.tid will be added" -! echo `date` +select now(),'field systeminfo.tid will be added' +from xdummy; alter table systeminfo add ( tid INTEGER not null); @@ -2392,8 +2504,8 @@ alter table systeminfo add ( tid INTEGER not null); <#if !fields?seq_contains("systeminfo.name") > -! echo "field systeminfo.name will be added" -! echo `date` +select now(),'field systeminfo.name will be added' +from xdummy; alter table systeminfo add ( name CHAR(50) not null); @@ -2402,18 +2514,18 @@ alter table systeminfo add ( name CHAR(50) not null); <#if !fields?seq_contains("systeminfo.datum") > -! echo "field systeminfo.datum will be added" -! echo `date` +select now(),'field systeminfo.datum will be added' +from xdummy; -alter table systeminfo add ( datum DATE ); +alter table systeminfo add ( datum datetime year to second ); <#if !fields?seq_contains("user_einstellungen.tid") > -! echo "field user_einstellungen.tid will be added" -! echo `date` +select now(),'field user_einstellungen.tid will be added' +from xdummy; alter table user_einstellungen add ( tid INTEGER not null); @@ -2422,8 +2534,8 @@ alter table user_einstellungen add ( tid INTEGER not null); <#if !fields?seq_contains("user_einstellungen.arbeitsverzeichnis") > -! echo "field user_einstellungen.arbeitsverzeichnis will be added" -! echo `date` +select now(),'field user_einstellungen.arbeitsverzeichnis will be added' +from xdummy; alter table user_einstellungen add ( arbeitsverzeichnis NCHAR(255) ); @@ -2432,8 +2544,8 @@ alter table user_einstellungen add ( arbeitsverzeichnis NCHAR(255) ); <#if !fields?seq_contains("userinfo.tid") > -! echo "field userinfo.tid will be added" -! echo `date` +select now(),'field userinfo.tid will be added' +from xdummy; alter table userinfo add ( tid INTEGER not null); @@ -2442,8 +2554,8 @@ alter table userinfo add ( tid INTEGER not null); <#if !fields?seq_contains("userinfo.benutzer") > -! echo "field userinfo.benutzer will be added" -! echo `date` +select now(),'field userinfo.benutzer will be added' +from xdummy; alter table userinfo add ( benutzer NVARCHAR(255) not null); @@ -2452,8 +2564,8 @@ alter table userinfo add ( benutzer NVARCHAR(255) not null); <#if !fields?seq_contains("userinfo.kennwort") > -! echo "field userinfo.kennwort will be added" -! echo `date` +select now(),'field userinfo.kennwort will be added' +from xdummy; alter table userinfo add ( kennwort CHAR(16) ); @@ -2462,8 +2574,8 @@ alter table userinfo add ( kennwort CHAR(16) ); <#if !fields?seq_contains("userinfo.name") > -! echo "field userinfo.name will be added" -! echo `date` +select now(),'field userinfo.name will be added' +from xdummy; alter table userinfo add ( name CHAR(50) ); @@ -2472,8 +2584,8 @@ alter table userinfo add ( name CHAR(50) ); <#if !fields?seq_contains("userinfo.max_versuch") > -! echo "field userinfo.max_versuch will be added" -! echo `date` +select now(),'field userinfo.max_versuch will be added' +from xdummy; alter table userinfo add ( max_versuch SMALLINT not null); @@ -2482,8 +2594,8 @@ alter table userinfo add ( max_versuch SMALLINT not null); <#if !fields?seq_contains("userinfo.akt_versuch") > -! echo "field userinfo.akt_versuch will be added" -! echo `date` +select now(),'field userinfo.akt_versuch will be added' +from xdummy; alter table userinfo add ( akt_versuch SMALLINT not null); @@ -2492,8 +2604,8 @@ alter table userinfo add ( akt_versuch SMALLINT not null); <#if !fields?seq_contains("userinfo.email") > -! echo "field userinfo.email will be added" -! echo `date` +select now(),'field userinfo.email will be added' +from xdummy; alter table userinfo add ( email NCHAR(255) ); @@ -2502,8 +2614,8 @@ alter table userinfo add ( email NCHAR(255) ); <#if !fields?seq_contains("userinfo.administration") > -! echo "field userinfo.administration will be added" -! echo `date` +select now(),'field userinfo.administration will be added' +from xdummy; alter table userinfo add ( administration SMALLINT not null); @@ -2512,8 +2624,8 @@ alter table userinfo add ( administration SMALLINT not null); <#if !fields?seq_contains("userinfo.archiv_recht") > -! echo "field userinfo.archiv_recht will be added" -! echo `date` +select now(),'field userinfo.archiv_recht will be added' +from xdummy; alter table userinfo add ( archiv_recht SMALLINT not null); @@ -2522,8 +2634,8 @@ alter table userinfo add ( archiv_recht SMALLINT not null); <#if !fields?seq_contains("userinfo.passwd_sha") > -! echo "field userinfo.passwd_sha will be added" -! echo `date` +select now(),'field userinfo.passwd_sha will be added' +from xdummy; alter table userinfo add ( passwd_sha NCHAR(255) ); @@ -2532,8 +2644,8 @@ alter table userinfo add ( passwd_sha NCHAR(255) ); <#if !fields?seq_contains("userinfo.info") > -! echo "field userinfo.info will be added" -! echo `date` +select now(),'field userinfo.info will be added' +from xdummy; alter table userinfo add ( info NCHAR(255) ); @@ -2542,8 +2654,8 @@ alter table userinfo add ( info NCHAR(255) ); <#if !fields?seq_contains("userinfo.extern_account_id") > -! echo "field userinfo.extern_account_id will be added" -! echo `date` +select now(),'field userinfo.extern_account_id will be added' +from xdummy; alter table userinfo add ( extern_account_id NVARCHAR(255) ); @@ -2552,8 +2664,8 @@ alter table userinfo add ( extern_account_id NVARCHAR(255) ); <#if !fields?seq_contains("userinfo.extern_person_id") > -! echo "field userinfo.extern_person_id will be added" -! echo `date` +select now(),'field userinfo.extern_person_id will be added' +from xdummy; alter table userinfo add ( extern_person_id NVARCHAR(255) ); @@ -2562,18 +2674,28 @@ alter table userinfo add ( extern_person_id NVARCHAR(255) ); <#if !fields?seq_contains("userinfo.sieht_projekte") > -! echo "field userinfo.sieht_projekte will be added" -! echo `date` +select now(),'field userinfo.sieht_projekte will be added' +from xdummy; alter table userinfo add ( sieht_projekte SMALLINT default 0 ); +<#if !fields?seq_contains("userinfo.extern_role_id") > + + +select now(),'field userinfo.extern_role_id will be added' +from xdummy; + +alter table userinfo add ( extern_role_id INTEGER ); + + + <#if !fields?seq_contains("themenbaum.tid") > -! echo "field themenbaum.tid will be added" -! echo `date` +select now(),'field themenbaum.tid will be added' +from xdummy; alter table themenbaum add ( tid SERIAL ); @@ -2582,8 +2704,8 @@ alter table themenbaum add ( tid SERIAL ); <#if !fields?seq_contains("themenbaum.name") > -! echo "field themenbaum.name will be added" -! echo `date` +select now(),'field themenbaum.name will be added' +from xdummy; alter table themenbaum add ( name NVARCHAR(255) not null); @@ -2592,8 +2714,8 @@ alter table themenbaum add ( name NVARCHAR(255) not null); <#if !fields?seq_contains("themenbaum.maskeninfo_id") > -! echo "field themenbaum.maskeninfo_id will be added" -! echo `date` +select now(),'field themenbaum.maskeninfo_id will be added' +from xdummy; alter table themenbaum add ( maskeninfo_id INTEGER ); @@ -2602,8 +2724,8 @@ alter table themenbaum add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("themenbaum.parent") > -! echo "field themenbaum.parent will be added" -! echo `date` +select now(),'field themenbaum.parent will be added' +from xdummy; alter table themenbaum add ( parent INTEGER ); @@ -2612,8 +2734,8 @@ alter table themenbaum add ( parent INTEGER ); <#if !fields?seq_contains("themenbaum.gueltig_seit") > -! echo "field themenbaum.gueltig_seit will be added" -! echo `date` +select now(),'field themenbaum.gueltig_seit will be added' +from xdummy; alter table themenbaum add ( gueltig_seit DATE ); @@ -2622,8 +2744,8 @@ alter table themenbaum add ( gueltig_seit DATE ); <#if !fields?seq_contains("themenbaum.gueltig_bis") > -! echo "field themenbaum.gueltig_bis will be added" -! echo `date` +select now(),'field themenbaum.gueltig_bis will be added' +from xdummy; alter table themenbaum add ( gueltig_bis DATE ); @@ -2632,8 +2754,8 @@ alter table themenbaum add ( gueltig_bis DATE ); <#if !fields?seq_contains("themenbaum.erlaeuterung") > -! echo "field themenbaum.erlaeuterung will be added" -! echo `date` +select now(),'field themenbaum.erlaeuterung will be added' +from xdummy; alter table themenbaum add ( erlaeuterung NCHAR(240) ); @@ -2642,8 +2764,8 @@ alter table themenbaum add ( erlaeuterung NCHAR(240) ); <#if !fields?seq_contains("themenbaum.sort") > -! echo "field themenbaum.sort will be added" -! echo `date` +select now(),'field themenbaum.sort will be added' +from xdummy; alter table themenbaum add ( sort INTEGER default 0 not null); @@ -2652,8 +2774,8 @@ alter table themenbaum add ( sort INTEGER default 0 not null); <#if !fields?seq_contains("themenbaum.css_class") > -! echo "field themenbaum.css_class will be added" -! echo `date` +select now(),'field themenbaum.css_class will be added' +from xdummy; alter table themenbaum add ( css_class NVARCHAR(255) ); @@ -2662,8 +2784,8 @@ alter table themenbaum add ( css_class NVARCHAR(255) ); <#if !fields?seq_contains("themenbaum_bak.tid") > -! echo "field themenbaum_bak.tid will be added" -! echo `date` +select now(),'field themenbaum_bak.tid will be added' +from xdummy; alter table themenbaum_bak add ( tid INTEGER ); @@ -2672,8 +2794,8 @@ alter table themenbaum_bak add ( tid INTEGER ); <#if !fields?seq_contains("themenbaum_bak.name") > -! echo "field themenbaum_bak.name will be added" -! echo `date` +select now(),'field themenbaum_bak.name will be added' +from xdummy; alter table themenbaum_bak add ( name NVARCHAR(255) not null); @@ -2682,8 +2804,8 @@ alter table themenbaum_bak add ( name NVARCHAR(255) not null); <#if !fields?seq_contains("themenbaum_bak.maskeninfo_id") > -! echo "field themenbaum_bak.maskeninfo_id will be added" -! echo `date` +select now(),'field themenbaum_bak.maskeninfo_id will be added' +from xdummy; alter table themenbaum_bak add ( maskeninfo_id INTEGER ); @@ -2692,8 +2814,8 @@ alter table themenbaum_bak add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("themenbaum_bak.parent") > -! echo "field themenbaum_bak.parent will be added" -! echo `date` +select now(),'field themenbaum_bak.parent will be added' +from xdummy; alter table themenbaum_bak add ( parent INTEGER ); @@ -2702,8 +2824,8 @@ alter table themenbaum_bak add ( parent INTEGER ); <#if !fields?seq_contains("themenbaum_bak.gueltig_seit") > -! echo "field themenbaum_bak.gueltig_seit will be added" -! echo `date` +select now(),'field themenbaum_bak.gueltig_seit will be added' +from xdummy; alter table themenbaum_bak add ( gueltig_seit DATE ); @@ -2712,8 +2834,8 @@ alter table themenbaum_bak add ( gueltig_seit DATE ); <#if !fields?seq_contains("themenbaum_bak.gueltig_bis") > -! echo "field themenbaum_bak.gueltig_bis will be added" -! echo `date` +select now(),'field themenbaum_bak.gueltig_bis will be added' +from xdummy; alter table themenbaum_bak add ( gueltig_bis DATE ); @@ -2722,8 +2844,8 @@ alter table themenbaum_bak add ( gueltig_bis DATE ); <#if !fields?seq_contains("themenbaum_bak.erlaeuterung") > -! echo "field themenbaum_bak.erlaeuterung will be added" -! echo `date` +select now(),'field themenbaum_bak.erlaeuterung will be added' +from xdummy; alter table themenbaum_bak add ( erlaeuterung NCHAR(240) ); @@ -2732,8 +2854,8 @@ alter table themenbaum_bak add ( erlaeuterung NCHAR(240) ); <#if !fields?seq_contains("nachricht.aktuell") > -! echo "field nachricht.aktuell will be added" -! echo `date` +select now(),'field nachricht.aktuell will be added' +from xdummy; alter table nachricht add ( aktuell NCHAR(255) ); @@ -2742,8 +2864,8 @@ alter table nachricht add ( aktuell NCHAR(255) ); <#if !fields?seq_contains("menu_element.id") > -! echo "field menu_element.id will be added" -! echo `date` +select now(),'field menu_element.id will be added' +from xdummy; alter table menu_element add ( id INTEGER not null); @@ -2752,8 +2874,8 @@ alter table menu_element add ( id INTEGER not null); <#if !fields?seq_contains("menu_element.element") > -! echo "field menu_element.element will be added" -! echo `date` +select now(),'field menu_element.element will be added' +from xdummy; alter table menu_element add ( element NVARCHAR(255) ); @@ -2762,8 +2884,8 @@ alter table menu_element add ( element NVARCHAR(255) ); <#if !fields?seq_contains("menu_element.element_value") > -! echo "field menu_element.element_value will be added" -! echo `date` +select now(),'field menu_element.element_value will be added' +from xdummy; alter table menu_element add ( element_value NVARCHAR(255) ); @@ -2772,8 +2894,8 @@ alter table menu_element add ( element_value NVARCHAR(255) ); <#if !fields?seq_contains("menu_element.description") > -! echo "field menu_element.description will be added" -! echo `date` +select now(),'field menu_element.description will be added' +from xdummy; alter table menu_element add ( description NVARCHAR(255) ); @@ -2782,8 +2904,8 @@ alter table menu_element add ( description NVARCHAR(255) ); <#if !fields?seq_contains("menu_element.nature") > -! echo "field menu_element.nature will be added" -! echo `date` +select now(),'field menu_element.nature will be added' +from xdummy; alter table menu_element add ( nature NVARCHAR(255) ); @@ -2792,8 +2914,8 @@ alter table menu_element add ( nature NVARCHAR(255) ); <#if !fields?seq_contains("menu_element.annotation") > -! echo "field menu_element.annotation will be added" -! echo `date` +select now(),'field menu_element.annotation will be added' +from xdummy; alter table menu_element add ( annotation NVARCHAR(255) ); @@ -2802,8 +2924,8 @@ alter table menu_element add ( annotation NVARCHAR(255) ); <#if !fields?seq_contains("dbconnections.id") > -! echo "field dbconnections.id will be added" -! echo `date` +select now(),'field dbconnections.id will be added' +from xdummy; alter table dbconnections add ( id NVARCHAR(255) not null); @@ -2812,8 +2934,8 @@ alter table dbconnections add ( id NVARCHAR(255) not null); <#if !fields?seq_contains("dbconnections.name") > -! echo "field dbconnections.name will be added" -! echo `date` +select now(),'field dbconnections.name will be added' +from xdummy; alter table dbconnections add ( name NVARCHAR(255) not null); @@ -2822,8 +2944,8 @@ alter table dbconnections add ( name NVARCHAR(255) not null); <#if !fields?seq_contains("dbconnections.driver") > -! echo "field dbconnections.driver will be added" -! echo `date` +select now(),'field dbconnections.driver will be added' +from xdummy; alter table dbconnections add ( driver NVARCHAR(255) ); @@ -2832,8 +2954,8 @@ alter table dbconnections add ( driver NVARCHAR(255) ); <#if !fields?seq_contains("dbconnections.url") > -! echo "field dbconnections.url will be added" -! echo `date` +select now(),'field dbconnections.url will be added' +from xdummy; alter table dbconnections add ( url NVARCHAR(255) ); @@ -2842,8 +2964,8 @@ alter table dbconnections add ( url NVARCHAR(255) ); <#if !fields?seq_contains("dbconnections.username") > -! echo "field dbconnections.username will be added" -! echo `date` +select now(),'field dbconnections.username will be added' +from xdummy; alter table dbconnections add ( username NVARCHAR(255) ); @@ -2852,8 +2974,8 @@ alter table dbconnections add ( username NVARCHAR(255) ); <#if !fields?seq_contains("dbconnections.passwort") > -! echo "field dbconnections.passwort will be added" -! echo `date` +select now(),'field dbconnections.passwort will be added' +from xdummy; alter table dbconnections add ( passwort NVARCHAR(255) ); @@ -2862,8 +2984,8 @@ alter table dbconnections add ( passwort NVARCHAR(255) ); <#if !fields?seq_contains("dbconnections.minidle") > -! echo "field dbconnections.minidle will be added" -! echo `date` +select now(),'field dbconnections.minidle will be added' +from xdummy; alter table dbconnections add ( minidle SMALLINT ); @@ -2872,8 +2994,8 @@ alter table dbconnections add ( minidle SMALLINT ); <#if !fields?seq_contains("dbconnections.maxidle") > -! echo "field dbconnections.maxidle will be added" -! echo `date` +select now(),'field dbconnections.maxidle will be added' +from xdummy; alter table dbconnections add ( maxidle SMALLINT ); @@ -2882,8 +3004,8 @@ alter table dbconnections add ( maxidle SMALLINT ); <#if !fields?seq_contains("dbconnections.maxactive") > -! echo "field dbconnections.maxactive will be added" -! echo `date` +select now(),'field dbconnections.maxactive will be added' +from xdummy; alter table dbconnections add ( maxactive SMALLINT ); @@ -2892,8 +3014,8 @@ alter table dbconnections add ( maxactive SMALLINT ); <#if !fields?seq_contains("dbconnections.testsql") > -! echo "field dbconnections.testsql will be added" -! echo `date` +select now(),'field dbconnections.testsql will be added' +from xdummy; alter table dbconnections add ( testsql NVARCHAR(255) ); @@ -2902,18 +3024,18 @@ alter table dbconnections add ( testsql NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.tid") > -! echo "field organigramm.tid will be added" -! echo `date` +select now(),'field organigramm.tid will be added' +from xdummy; -alter table organigramm add ( tid INTEGER not null); +alter table organigramm add ( tid SERIAL not null); <#if !fields?seq_contains("organigramm.key_apnr") > -! echo "field organigramm.key_apnr will be added" -! echo `date` +select now(),'field organigramm.key_apnr will be added' +from xdummy; alter table organigramm add ( key_apnr CHAR(10) ); @@ -2922,8 +3044,8 @@ alter table organigramm add ( key_apnr CHAR(10) ); <#if !fields?seq_contains("organigramm.parent") > -! echo "field organigramm.parent will be added" -! echo `date` +select now(),'field organigramm.parent will be added' +from xdummy; alter table organigramm add ( parent CHAR(10) ); @@ -2932,28 +3054,28 @@ alter table organigramm add ( parent CHAR(10) ); <#if !fields?seq_contains("organigramm.drucktext") > -! echo "field organigramm.drucktext will be added" -! echo `date` +select now(),'field organigramm.drucktext will be added' +from xdummy; -alter table organigramm add ( drucktext CHAR(50) ); +alter table organigramm add ( drucktext NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.name") > -! echo "field organigramm.name will be added" -! echo `date` +select now(),'field organigramm.name will be added' +from xdummy; -alter table organigramm add ( name NCHAR(150) ); +alter table organigramm add ( name NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.ebene") > -! echo "field organigramm.ebene will be added" -! echo `date` +select now(),'field organigramm.ebene will be added' +from xdummy; alter table organigramm add ( ebene INTEGER ); @@ -2962,8 +3084,8 @@ alter table organigramm add ( ebene INTEGER ); <#if !fields?seq_contains("organigramm.lehre") > -! echo "field organigramm.lehre will be added" -! echo `date` +select now(),'field organigramm.lehre will be added' +from xdummy; alter table organigramm add ( lehre SMALLINT not null); @@ -2972,8 +3094,8 @@ alter table organigramm add ( lehre SMALLINT not null); <#if !fields?seq_contains("organigramm.gueltig_seit") > -! echo "field organigramm.gueltig_seit will be added" -! echo `date` +select now(),'field organigramm.gueltig_seit will be added' +from xdummy; alter table organigramm add ( gueltig_seit DATE not null); @@ -2982,8 +3104,8 @@ alter table organigramm add ( gueltig_seit DATE not null); <#if !fields?seq_contains("organigramm.gueltig_bis") > -! echo "field organigramm.gueltig_bis will be added" -! echo `date` +select now(),'field organigramm.gueltig_bis will be added' +from xdummy; alter table organigramm add ( gueltig_bis DATE not null); @@ -2992,8 +3114,8 @@ alter table organigramm add ( gueltig_bis DATE not null); <#if !fields?seq_contains("organigramm.orgstruktur") > -! echo "field organigramm.orgstruktur will be added" -! echo `date` +select now(),'field organigramm.orgstruktur will be added' +from xdummy; alter table organigramm add ( orgstruktur INTEGER ); @@ -3002,8 +3124,8 @@ alter table organigramm add ( orgstruktur INTEGER ); <#if !fields?seq_contains("organigramm.lid") > -! echo "field organigramm.lid will be added" -! echo `date` +select now(),'field organigramm.lid will be added' +from xdummy; alter table organigramm add ( lid NVARCHAR(255) ); @@ -3012,8 +3134,8 @@ alter table organigramm add ( lid NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.parent_lid") > -! echo "field organigramm.parent_lid will be added" -! echo `date` +select now(),'field organigramm.parent_lid will be added' +from xdummy; alter table organigramm add ( parent_lid NVARCHAR(255) ); @@ -3022,8 +3144,8 @@ alter table organigramm add ( parent_lid NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.uniquename") > -! echo "field organigramm.uniquename will be added" -! echo `date` +select now(),'field organigramm.uniquename will be added' +from xdummy; alter table organigramm add ( uniquename NVARCHAR(255) ); @@ -3032,8 +3154,8 @@ alter table organigramm add ( uniquename NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.sourcesystem") > -! echo "field organigramm.sourcesystem will be added" -! echo `date` +select now(),'field organigramm.sourcesystem will be added' +from xdummy; alter table organigramm add ( sourcesystem INTEGER ); @@ -3042,8 +3164,8 @@ alter table organigramm add ( sourcesystem INTEGER ); <#if !fields?seq_contains("organigramm.sourcesystem_id") > -! echo "field organigramm.sourcesystem_id will be added" -! echo `date` +select now(),'field organigramm.sourcesystem_id will be added' +from xdummy; alter table organigramm add ( sourcesystem_id NVARCHAR(255) ); @@ -3052,8 +3174,8 @@ alter table organigramm add ( sourcesystem_id NVARCHAR(255) ); <#if !fields?seq_contains("organigramm.systeminfo_id") > -! echo "field organigramm.systeminfo_id will be added" -! echo `date` +select now(),'field organigramm.systeminfo_id will be added' +from xdummy; alter table organigramm add ( systeminfo_id INTEGER ); @@ -3062,8 +3184,8 @@ alter table organigramm add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("organigramm.nodeattrib") > -! echo "field organigramm.nodeattrib will be added" -! echo `date` +select now(),'field organigramm.nodeattrib will be added' +from xdummy; alter table organigramm add ( nodeattrib SMALLINT ); @@ -3072,8 +3194,8 @@ alter table organigramm add ( nodeattrib SMALLINT ); <#if !fields?seq_contains("organigramm_bak.tid") > -! echo "field organigramm_bak.tid will be added" -! echo `date` +select now(),'field organigramm_bak.tid will be added' +from xdummy; alter table organigramm_bak add ( tid INTEGER not null); @@ -3082,8 +3204,8 @@ alter table organigramm_bak add ( tid INTEGER not null); <#if !fields?seq_contains("organigramm_bak.key_apnr") > -! echo "field organigramm_bak.key_apnr will be added" -! echo `date` +select now(),'field organigramm_bak.key_apnr will be added' +from xdummy; alter table organigramm_bak add ( key_apnr CHAR(10) ); @@ -3092,8 +3214,8 @@ alter table organigramm_bak add ( key_apnr CHAR(10) ); <#if !fields?seq_contains("organigramm_bak.parent") > -! echo "field organigramm_bak.parent will be added" -! echo `date` +select now(),'field organigramm_bak.parent will be added' +from xdummy; alter table organigramm_bak add ( parent CHAR(10) ); @@ -3102,28 +3224,28 @@ alter table organigramm_bak add ( parent CHAR(10) ); <#if !fields?seq_contains("organigramm_bak.drucktext") > -! echo "field organigramm_bak.drucktext will be added" -! echo `date` +select now(),'field organigramm_bak.drucktext will be added' +from xdummy; -alter table organigramm_bak add ( drucktext CHAR(50) ); +alter table organigramm_bak add ( drucktext NVARCHAR(255) ); <#if !fields?seq_contains("organigramm_bak.name") > -! echo "field organigramm_bak.name will be added" -! echo `date` +select now(),'field organigramm_bak.name will be added' +from xdummy; -alter table organigramm_bak add ( name NCHAR(150) ); +alter table organigramm_bak add ( name NVARCHAR(255) ); <#if !fields?seq_contains("organigramm_bak.ebene") > -! echo "field organigramm_bak.ebene will be added" -! echo `date` +select now(),'field organigramm_bak.ebene will be added' +from xdummy; alter table organigramm_bak add ( ebene INTEGER ); @@ -3132,18 +3254,18 @@ alter table organigramm_bak add ( ebene INTEGER ); <#if !fields?seq_contains("organigramm_bak.lehre") > -! echo "field organigramm_bak.lehre will be added" -! echo `date` +select now(),'field organigramm_bak.lehre will be added' +from xdummy; -alter table organigramm_bak add ( lehre SMALLINT ); +alter table organigramm_bak add ( lehre SMALLINT not null); <#if !fields?seq_contains("organigramm_bak.gueltig_seit") > -! echo "field organigramm_bak.gueltig_seit will be added" -! echo `date` +select now(),'field organigramm_bak.gueltig_seit will be added' +from xdummy; alter table organigramm_bak add ( gueltig_seit DATE not null); @@ -3152,8 +3274,8 @@ alter table organigramm_bak add ( gueltig_seit DATE not null); <#if !fields?seq_contains("organigramm_bak.gueltig_bis") > -! echo "field organigramm_bak.gueltig_bis will be added" -! echo `date` +select now(),'field organigramm_bak.gueltig_bis will be added' +from xdummy; alter table organigramm_bak add ( gueltig_bis DATE not null); @@ -3162,18 +3284,88 @@ alter table organigramm_bak add ( gueltig_bis DATE not null); <#if !fields?seq_contains("organigramm_bak.orgstruktur") > -! echo "field organigramm_bak.orgstruktur will be added" -! echo `date` +select now(),'field organigramm_bak.orgstruktur will be added' +from xdummy; alter table organigramm_bak add ( orgstruktur INTEGER ); +<#if !fields?seq_contains("organigramm_bak.lid") > + + +select now(),'field organigramm_bak.lid will be added' +from xdummy; + +alter table organigramm_bak add ( lid NVARCHAR(255) ); + + + +<#if !fields?seq_contains("organigramm_bak.parent_lid") > + + +select now(),'field organigramm_bak.parent_lid will be added' +from xdummy; + +alter table organigramm_bak add ( parent_lid NVARCHAR(255) ); + + + +<#if !fields?seq_contains("organigramm_bak.uniquename") > + + +select now(),'field organigramm_bak.uniquename will be added' +from xdummy; + +alter table organigramm_bak add ( uniquename NVARCHAR(255) ); + + + +<#if !fields?seq_contains("organigramm_bak.sourcesystem") > + + +select now(),'field organigramm_bak.sourcesystem will be added' +from xdummy; + +alter table organigramm_bak add ( sourcesystem INTEGER ); + + + +<#if !fields?seq_contains("organigramm_bak.sourcesystem_id") > + + +select now(),'field organigramm_bak.sourcesystem_id will be added' +from xdummy; + +alter table organigramm_bak add ( sourcesystem_id NVARCHAR(255) ); + + + +<#if !fields?seq_contains("organigramm_bak.systeminfo_id") > + + +select now(),'field organigramm_bak.systeminfo_id will be added' +from xdummy; + +alter table organigramm_bak add ( systeminfo_id INTEGER ); + + + +<#if !fields?seq_contains("organigramm_bak.nodeattrib") > + + +select now(),'field organigramm_bak.nodeattrib will be added' +from xdummy; + +alter table organigramm_bak add ( nodeattrib SMALLINT ); + + + <#if !fields?seq_contains("user_institution.userid") > -! echo "field user_institution.userid will be added" -! echo `date` +select now(),'field user_institution.userid will be added' +from xdummy; alter table user_institution add ( userid INTEGER not null); @@ -3182,8 +3374,8 @@ alter table user_institution add ( userid INTEGER not null); <#if !fields?seq_contains("user_institution.name") > -! echo "field user_institution.name will be added" -! echo `date` +select now(),'field user_institution.name will be added' +from xdummy; alter table user_institution add ( name CHAR(50) ); @@ -3192,8 +3384,8 @@ alter table user_institution add ( name CHAR(50) ); <#if !fields?seq_contains("user_institution.ch110_institut") > -! echo "field user_institution.ch110_institut will be added" -! echo `date` +select now(),'field user_institution.ch110_institut will be added' +from xdummy; alter table user_institution add ( ch110_institut CHAR(10) not null); @@ -3202,8 +3394,8 @@ alter table user_institution add ( ch110_institut CHAR(10) not null); <#if !fields?seq_contains("user_institution.hierarchie") > -! echo "field user_institution.hierarchie will be added" -! echo `date` +select now(),'field user_institution.hierarchie will be added' +from xdummy; alter table user_institution add ( hierarchie SMALLINT default 0 ); @@ -3212,8 +3404,8 @@ alter table user_institution add ( hierarchie SMALLINT default 0 ); <#if !fields?seq_contains("user_institution.gueltig_seit") > -! echo "field user_institution.gueltig_seit will be added" -! echo `date` +select now(),'field user_institution.gueltig_seit will be added' +from xdummy; alter table user_institution add ( gueltig_seit DATE default '01.01.1900' not null); @@ -3222,8 +3414,8 @@ alter table user_institution add ( gueltig_seit DATE default '01.01.1900' not <#if !fields?seq_contains("user_institution.gueltig_bis") > -! echo "field user_institution.gueltig_bis will be added" -! echo `date` +select now(),'field user_institution.gueltig_bis will be added' +from xdummy; alter table user_institution add ( gueltig_bis DATE default '01.01.3000' not null); @@ -3232,8 +3424,8 @@ alter table user_institution add ( gueltig_bis DATE default '01.01.3000' not n <#if !fields?seq_contains("user_institution.lehre") > -! echo "field user_institution.lehre will be added" -! echo `date` +select now(),'field user_institution.lehre will be added' +from xdummy; alter table user_institution add ( lehre SMALLINT default 0 ); @@ -3242,8 +3434,8 @@ alter table user_institution add ( lehre SMALLINT default 0 ); <#if !fields?seq_contains("user_institution.external_entry") > -! echo "field user_institution.external_entry will be added" -! echo `date` +select now(),'field user_institution.external_entry will be added' +from xdummy; alter table user_institution add ( external_entry SMALLINT default 0 ); @@ -3252,8 +3444,8 @@ alter table user_institution add ( external_entry SMALLINT default 0 ); <#if !fields?seq_contains("user_institution.externalid") > -! echo "field user_institution.externalid will be added" -! echo `date` +select now(),'field user_institution.externalid will be added' +from xdummy; alter table user_institution add ( externalid NVARCHAR(200) ); @@ -3262,8 +3454,8 @@ alter table user_institution add ( externalid NVARCHAR(200) ); <#if !fields?seq_contains("kostentraeger.key_apnr") > -! echo "field kostentraeger.key_apnr will be added" -! echo `date` +select now(),'field kostentraeger.key_apnr will be added' +from xdummy; alter table kostentraeger add ( key_apnr CHAR(50) ); @@ -3272,8 +3464,8 @@ alter table kostentraeger add ( key_apnr CHAR(50) ); <#if !fields?seq_contains("kostentraeger.parent") > -! echo "field kostentraeger.parent will be added" -! echo `date` +select now(),'field kostentraeger.parent will be added' +from xdummy; alter table kostentraeger add ( parent CHAR(50) ); @@ -3282,8 +3474,8 @@ alter table kostentraeger add ( parent CHAR(50) ); <#if !fields?seq_contains("kostentraeger.drucktext") > -! echo "field kostentraeger.drucktext will be added" -! echo `date` +select now(),'field kostentraeger.drucktext will be added' +from xdummy; alter table kostentraeger add ( drucktext CHAR(50) ); @@ -3292,8 +3484,8 @@ alter table kostentraeger add ( drucktext CHAR(50) ); <#if !fields?seq_contains("kostentraeger.name") > -! echo "field kostentraeger.name will be added" -! echo `date` +select now(),'field kostentraeger.name will be added' +from xdummy; alter table kostentraeger add ( name NVARCHAR(255) ); @@ -3302,8 +3494,8 @@ alter table kostentraeger add ( name NVARCHAR(255) ); <#if !fields?seq_contains("kostentraeger.gueltig_seit") > -! echo "field kostentraeger.gueltig_seit will be added" -! echo `date` +select now(),'field kostentraeger.gueltig_seit will be added' +from xdummy; alter table kostentraeger add ( gueltig_seit DATE not null); @@ -3312,8 +3504,8 @@ alter table kostentraeger add ( gueltig_seit DATE not null); <#if !fields?seq_contains("kostentraeger.gueltig_bis") > -! echo "field kostentraeger.gueltig_bis will be added" -! echo `date` +select now(),'field kostentraeger.gueltig_bis will be added' +from xdummy; alter table kostentraeger add ( gueltig_bis DATE not null); @@ -3322,8 +3514,8 @@ alter table kostentraeger add ( gueltig_bis DATE not null); <#if !fields?seq_contains("kostentraeger.struktur_int") > -! echo "field kostentraeger.struktur_int will be added" -! echo `date` +select now(),'field kostentraeger.struktur_int will be added' +from xdummy; alter table kostentraeger add ( struktur_int INTEGER ); @@ -3332,8 +3524,8 @@ alter table kostentraeger add ( struktur_int INTEGER ); <#if !fields?seq_contains("kostentraeger.struktur_c") > -! echo "field kostentraeger.struktur_c will be added" -! echo `date` +select now(),'field kostentraeger.struktur_c will be added' +from xdummy; alter table kostentraeger add ( struktur_c CHAR(50) ); @@ -3342,8 +3534,8 @@ alter table kostentraeger add ( struktur_c CHAR(50) ); <#if !fields?seq_contains("kostentraeger.astat") > -! echo "field kostentraeger.astat will be added" -! echo `date` +select now(),'field kostentraeger.astat will be added' +from xdummy; alter table kostentraeger add ( astat CHAR(15) ); @@ -3352,8 +3544,8 @@ alter table kostentraeger add ( astat CHAR(15) ); <#if !fields?seq_contains("kostentraeger.uniquename") > -! echo "field kostentraeger.uniquename will be added" -! echo `date` +select now(),'field kostentraeger.uniquename will be added' +from xdummy; alter table kostentraeger add ( uniquename NVARCHAR(255) ); @@ -3362,8 +3554,8 @@ alter table kostentraeger add ( uniquename NVARCHAR(255) ); <#if !fields?seq_contains("kostentraeger.key_ext") > -! echo "field kostentraeger.key_ext will be added" -! echo `date` +select now(),'field kostentraeger.key_ext will be added' +from xdummy; alter table kostentraeger add ( key_ext VARCHAR(15) ); @@ -3372,8 +3564,8 @@ alter table kostentraeger add ( key_ext VARCHAR(15) ); <#if !fields?seq_contains("kostentraeger.info") > -! echo "field kostentraeger.info will be added" -! echo `date` +select now(),'field kostentraeger.info will be added' +from xdummy; alter table kostentraeger add ( info NVARCHAR(215) ); @@ -3382,8 +3574,8 @@ alter table kostentraeger add ( info NVARCHAR(215) ); <#if !fields?seq_contains("user_kostentraeger.userid") > -! echo "field user_kostentraeger.userid will be added" -! echo `date` +select now(),'field user_kostentraeger.userid will be added' +from xdummy; alter table user_kostentraeger add ( userid INTEGER not null); @@ -3392,8 +3584,8 @@ alter table user_kostentraeger add ( userid INTEGER not null); <#if !fields?seq_contains("user_kostentraeger.key_apnr") > -! echo "field user_kostentraeger.key_apnr will be added" -! echo `date` +select now(),'field user_kostentraeger.key_apnr will be added' +from xdummy; alter table user_kostentraeger add ( key_apnr CHAR(50) not null); @@ -3402,8 +3594,8 @@ alter table user_kostentraeger add ( key_apnr CHAR(50) not null); <#if !fields?seq_contains("user_kostentraeger.kommentar") > -! echo "field user_kostentraeger.kommentar will be added" -! echo `date` +select now(),'field user_kostentraeger.kommentar will be added' +from xdummy; alter table user_kostentraeger add ( kommentar NCHAR(250) ); @@ -3412,8 +3604,8 @@ alter table user_kostentraeger add ( kommentar NCHAR(250) ); <#if !fields?seq_contains("user_kostentraeger.gueltig_seit") > -! echo "field user_kostentraeger.gueltig_seit will be added" -! echo `date` +select now(),'field user_kostentraeger.gueltig_seit will be added' +from xdummy; alter table user_kostentraeger add ( gueltig_seit DATE default '01.01.1900' ); @@ -3422,8 +3614,8 @@ alter table user_kostentraeger add ( gueltig_seit DATE default '01.01.1900' ); <#if !fields?seq_contains("user_kostentraeger.gueltig_bis") > -! echo "field user_kostentraeger.gueltig_bis will be added" -! echo `date` +select now(),'field user_kostentraeger.gueltig_bis will be added' +from xdummy; alter table user_kostentraeger add ( gueltig_bis DATE default '01.01.3000' ); @@ -3432,8 +3624,8 @@ alter table user_kostentraeger add ( gueltig_bis DATE default '01.01.3000' ); <#if !fields?seq_contains("user_kostentraeger.external_entry") > -! echo "field user_kostentraeger.external_entry will be added" -! echo `date` +select now(),'field user_kostentraeger.external_entry will be added' +from xdummy; alter table user_kostentraeger add ( external_entry SMALLINT default 0 ); @@ -3442,8 +3634,8 @@ alter table user_kostentraeger add ( external_entry SMALLINT default 0 ); <#if !fields?seq_contains("user_kostentraeger.externalid") > -! echo "field user_kostentraeger.externalid will be added" -! echo `date` +select now(),'field user_kostentraeger.externalid will be added' +from xdummy; alter table user_kostentraeger add ( externalid NVARCHAR(200) ); @@ -3452,8 +3644,8 @@ alter table user_kostentraeger add ( externalid NVARCHAR(200) ); <#if !fields?seq_contains("kotr_to_inst.projnr") > -! echo "field kotr_to_inst.projnr will be added" -! echo `date` +select now(),'field kotr_to_inst.projnr will be added' +from xdummy; alter table kotr_to_inst add ( projnr CHAR(24) ); @@ -3462,8 +3654,8 @@ alter table kotr_to_inst add ( projnr CHAR(24) ); <#if !fields?seq_contains("kotr_to_inst.inst_nr") > -! echo "field kotr_to_inst.inst_nr will be added" -! echo `date` +select now(),'field kotr_to_inst.inst_nr will be added' +from xdummy; alter table kotr_to_inst add ( inst_nr CHAR(24) ); @@ -3472,8 +3664,8 @@ alter table kotr_to_inst add ( inst_nr CHAR(24) ); <#if !fields?seq_contains("kotr_to_inst.haupt_kst_kz") > -! echo "field kotr_to_inst.haupt_kst_kz will be added" -! echo `date` +select now(),'field kotr_to_inst.haupt_kst_kz will be added' +from xdummy; alter table kotr_to_inst add ( haupt_kst_kz CHAR(1) ); @@ -3482,8 +3674,8 @@ alter table kotr_to_inst add ( haupt_kst_kz CHAR(1) ); <#if !fields?seq_contains("protokoll.protokoll_id") > -! echo "field protokoll.protokoll_id will be added" -! echo `date` +select now(),'field protokoll.protokoll_id will be added' +from xdummy; alter table protokoll add ( protokoll_id SERIAL not null); @@ -3492,8 +3684,8 @@ alter table protokoll add ( protokoll_id SERIAL not null); <#if !fields?seq_contains("protokoll.proto_fkt_id") > -! echo "field protokoll.proto_fkt_id will be added" -! echo `date` +select now(),'field protokoll.proto_fkt_id will be added' +from xdummy; alter table protokoll add ( proto_fkt_id SMALLINT not null); @@ -3502,8 +3694,8 @@ alter table protokoll add ( proto_fkt_id SMALLINT not null); <#if !fields?seq_contains("protokoll.userinfo_id") > -! echo "field protokoll.userinfo_id will be added" -! echo `date` +select now(),'field protokoll.userinfo_id will be added' +from xdummy; alter table protokoll add ( userinfo_id INTEGER not null); @@ -3512,8 +3704,8 @@ alter table protokoll add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("protokoll.ip_adresse") > -! echo "field protokoll.ip_adresse will be added" -! echo `date` +select now(),'field protokoll.ip_adresse will be added' +from xdummy; alter table protokoll add ( ip_adresse CHAR(16) not null); @@ -3522,8 +3714,8 @@ alter table protokoll add ( ip_adresse CHAR(16) not null); <#if !fields?seq_contains("protokoll.client_name") > -! echo "field protokoll.client_name will be added" -! echo `date` +select now(),'field protokoll.client_name will be added' +from xdummy; alter table protokoll add ( client_name NVARCHAR(255) not null); @@ -3532,8 +3724,8 @@ alter table protokoll add ( client_name NVARCHAR(255) not null); <#if !fields?seq_contains("protokoll.zeitpunkt") > -! echo "field protokoll.zeitpunkt will be added" -! echo `date` +select now(),'field protokoll.zeitpunkt will be added' +from xdummy; alter table protokoll add ( zeitpunkt datetime year to second not null); @@ -3542,8 +3734,8 @@ alter table protokoll add ( zeitpunkt datetime year to second not null); <#if !fields?seq_contains("protokoll.kommentar") > -! echo "field protokoll.kommentar will be added" -! echo `date` +select now(),'field protokoll.kommentar will be added' +from xdummy; alter table protokoll add ( kommentar NVARCHAR(255) ); @@ -3552,8 +3744,8 @@ alter table protokoll add ( kommentar NVARCHAR(255) ); <#if !fields?seq_contains("trans_inst.tid") > -! echo "field trans_inst.tid will be added" -! echo `date` +select now(),'field trans_inst.tid will be added' +from xdummy; alter table trans_inst add ( tid SERIAL not null); @@ -3562,8 +3754,8 @@ alter table trans_inst add ( tid SERIAL not null); <#if !fields?seq_contains("trans_inst.instnr") > -! echo "field trans_inst.instnr will be added" -! echo `date` +select now(),'field trans_inst.instnr will be added' +from xdummy; alter table trans_inst add ( instnr CHAR(10) ); @@ -3572,8 +3764,8 @@ alter table trans_inst add ( instnr CHAR(10) ); <#if !fields?seq_contains("trans_inst.ch110_institut") > -! echo "field trans_inst.ch110_institut will be added" -! echo `date` +select now(),'field trans_inst.ch110_institut will be added' +from xdummy; alter table trans_inst add ( ch110_institut CHAR(10) ); @@ -3582,8 +3774,8 @@ alter table trans_inst add ( ch110_institut CHAR(10) ); <#if !fields?seq_contains("trans_inst.name") > -! echo "field trans_inst.name will be added" -! echo `date` +select now(),'field trans_inst.name will be added' +from xdummy; alter table trans_inst add ( name NCHAR(200) ); @@ -3592,8 +3784,8 @@ alter table trans_inst add ( name NCHAR(200) ); <#if !fields?seq_contains("trans_inst.gueltig_von") > -! echo "field trans_inst.gueltig_von will be added" -! echo `date` +select now(),'field trans_inst.gueltig_von will be added' +from xdummy; alter table trans_inst add ( gueltig_von DATE ); @@ -3602,8 +3794,8 @@ alter table trans_inst add ( gueltig_von DATE ); <#if !fields?seq_contains("trans_inst.gueltig_bis") > -! echo "field trans_inst.gueltig_bis will be added" -! echo `date` +select now(),'field trans_inst.gueltig_bis will be added' +from xdummy; alter table trans_inst add ( gueltig_bis DATE ); @@ -3612,8 +3804,8 @@ alter table trans_inst add ( gueltig_bis DATE ); <#if !fields?seq_contains("trans_inst.systeminfo_id") > -! echo "field trans_inst.systeminfo_id will be added" -! echo `date` +select now(),'field trans_inst.systeminfo_id will be added' +from xdummy; alter table trans_inst add ( systeminfo_id INTEGER ); @@ -3622,18 +3814,18 @@ alter table trans_inst add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("konstanten.tid") > -! echo "field konstanten.tid will be added" -! echo `date` +select now(),'field konstanten.tid will be added' +from xdummy; -alter table konstanten add ( tid INTEGER not null); +alter table konstanten add ( tid serial not null); <#if !fields?seq_contains("konstanten.apnr") > -! echo "field konstanten.apnr will be added" -! echo `date` +select now(),'field konstanten.apnr will be added' +from xdummy; alter table konstanten add ( apnr INTEGER ); @@ -3642,8 +3834,8 @@ alter table konstanten add ( apnr INTEGER ); <#if !fields?seq_contains("konstanten.beschreibung") > -! echo "field konstanten.beschreibung will be added" -! echo `date` +select now(),'field konstanten.beschreibung will be added' +from xdummy; alter table konstanten add ( beschreibung NVARCHAR(255) ); @@ -3652,8 +3844,8 @@ alter table konstanten add ( beschreibung NVARCHAR(255) ); <#if !fields?seq_contains("konstanten.defaultvalue") > -! echo "field konstanten.defaultvalue will be added" -! echo `date` +select now(),'field konstanten.defaultvalue will be added' +from xdummy; alter table konstanten add ( defaultvalue INTEGER ); @@ -3662,8 +3854,8 @@ alter table konstanten add ( defaultvalue INTEGER ); <#if !fields?seq_contains("konstanten.description") > -! echo "field konstanten.description will be added" -! echo `date` +select now(),'field konstanten.description will be added' +from xdummy; alter table konstanten add ( description NVARCHAR(255) ); @@ -3672,8 +3864,8 @@ alter table konstanten add ( description NVARCHAR(255) ); <#if !fields?seq_contains("konstanten.systeminfo_id") > -! echo "field konstanten.systeminfo_id will be added" -! echo `date` +select now(),'field konstanten.systeminfo_id will be added' +from xdummy; alter table konstanten add ( systeminfo_id INTEGER ); @@ -3682,8 +3874,8 @@ alter table konstanten add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("konstanten.sachgebiete_id") > -! echo "field konstanten.sachgebiete_id will be added" -! echo `date` +select now(),'field konstanten.sachgebiete_id will be added' +from xdummy; alter table konstanten add ( sachgebiete_id INTEGER ); @@ -3692,8 +3884,8 @@ alter table konstanten add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("konstanten.doku_link") > -! echo "field konstanten.doku_link will be added" -! echo `date` +select now(),'field konstanten.doku_link will be added' +from xdummy; alter table konstanten add ( doku_link NVARCHAR(255) ); @@ -3702,8 +3894,8 @@ alter table konstanten add ( doku_link NVARCHAR(255) ); <#if !fields?seq_contains("konstanten.read_only") > -! echo "field konstanten.read_only will be added" -! echo `date` +select now(),'field konstanten.read_only will be added' +from xdummy; alter table konstanten add ( read_only INTEGER ); @@ -3712,8 +3904,8 @@ alter table konstanten add ( read_only INTEGER ); <#if !fields?seq_contains("konstanten.wertebereich") > -! echo "field konstanten.wertebereich will be added" -! echo `date` +select now(),'field konstanten.wertebereich will be added' +from xdummy; alter table konstanten add ( wertebereich NVARCHAR(255) ); @@ -3722,8 +3914,8 @@ alter table konstanten add ( wertebereich NVARCHAR(255) ); <#if !fields?seq_contains("konstanten.ab_version") > -! echo "field konstanten.ab_version will be added" -! echo `date` +select now(),'field konstanten.ab_version will be added' +from xdummy; alter table konstanten add ( ab_version VARCHAR(20) ); @@ -3732,18 +3924,38 @@ alter table konstanten add ( ab_version VARCHAR(20) ); <#if !fields?seq_contains("konstanten.gruppe") > -! echo "field konstanten.gruppe will be added" -! echo `date` +select now(),'field konstanten.gruppe will be added' +from xdummy; alter table konstanten add ( gruppe NVARCHAR(100) ); +<#if !fields?seq_contains("konstanten.priority") > + + +select now(),'field konstanten.priority will be added' +from xdummy; + +alter table konstanten add ( priority INTEGER ); + + + +<#if !fields?seq_contains("konstanten.sourcesystem") > + + +select now(),'field konstanten.sourcesystem will be added' +from xdummy; + +alter table konstanten add ( sourcesystem INTEGER ); + + + <#if !fields?seq_contains("lehreinheit_inst.key_apnr") > -! echo "field lehreinheit_inst.key_apnr will be added" -! echo `date` +select now(),'field lehreinheit_inst.key_apnr will be added' +from xdummy; alter table lehreinheit_inst add ( key_apnr CHAR(10) ); @@ -3752,8 +3964,8 @@ alter table lehreinheit_inst add ( key_apnr CHAR(10) ); <#if !fields?seq_contains("lehreinheit_inst.parent") > -! echo "field lehreinheit_inst.parent will be added" -! echo `date` +select now(),'field lehreinheit_inst.parent will be added' +from xdummy; alter table lehreinheit_inst add ( parent CHAR(10) ); @@ -3762,8 +3974,8 @@ alter table lehreinheit_inst add ( parent CHAR(10) ); <#if !fields?seq_contains("lehreinheit_inst.drucktext") > -! echo "field lehreinheit_inst.drucktext will be added" -! echo `date` +select now(),'field lehreinheit_inst.drucktext will be added' +from xdummy; alter table lehreinheit_inst add ( drucktext CHAR(50) ); @@ -3772,8 +3984,8 @@ alter table lehreinheit_inst add ( drucktext CHAR(50) ); <#if !fields?seq_contains("lehreinheit_inst.lehr") > -! echo "field lehreinheit_inst.lehr will be added" -! echo `date` +select now(),'field lehreinheit_inst.lehr will be added' +from xdummy; alter table lehreinheit_inst add ( lehr CHAR(10) ); @@ -3782,8 +3994,8 @@ alter table lehreinheit_inst add ( lehr CHAR(10) ); <#if !fields?seq_contains("lehreinheit_inst.gueltig_seit") > -! echo "field lehreinheit_inst.gueltig_seit will be added" -! echo `date` +select now(),'field lehreinheit_inst.gueltig_seit will be added' +from xdummy; alter table lehreinheit_inst add ( gueltig_seit DATE ); @@ -3792,8 +4004,8 @@ alter table lehreinheit_inst add ( gueltig_seit DATE ); <#if !fields?seq_contains("lehreinheit_inst.gueltig_bis") > -! echo "field lehreinheit_inst.gueltig_bis will be added" -! echo `date` +select now(),'field lehreinheit_inst.gueltig_bis will be added' +from xdummy; alter table lehreinheit_inst add ( gueltig_bis DATE ); @@ -3802,8 +4014,8 @@ alter table lehreinheit_inst add ( gueltig_bis DATE ); <#if !fields?seq_contains("sx_stylesheets.tid") > -! echo "field sx_stylesheets.tid will be added" -! echo `date` +select now(),'field sx_stylesheets.tid will be added' +from xdummy; alter table sx_stylesheets add ( tid SERIAL not null); @@ -3812,8 +4024,8 @@ alter table sx_stylesheets add ( tid SERIAL not null); <#if !fields?seq_contains("sx_stylesheets.filename") > -! echo "field sx_stylesheets.filename will be added" -! echo `date` +select now(),'field sx_stylesheets.filename will be added' +from xdummy; alter table sx_stylesheets add ( filename NCHAR(255) ); @@ -3822,8 +4034,8 @@ alter table sx_stylesheets add ( filename NCHAR(255) ); <#if !fields?seq_contains("sx_stylesheets.caption") > -! echo "field sx_stylesheets.caption will be added" -! echo `date` +select now(),'field sx_stylesheets.caption will be added' +from xdummy; alter table sx_stylesheets add ( caption NCHAR(255) ); @@ -3832,8 +4044,8 @@ alter table sx_stylesheets add ( caption NCHAR(255) ); <#if !fields?seq_contains("sx_stylesheets.description") > -! echo "field sx_stylesheets.description will be added" -! echo `date` +select now(),'field sx_stylesheets.description will be added' +from xdummy; alter table sx_stylesheets add ( description NCHAR(255) ); @@ -3842,8 +4054,8 @@ alter table sx_stylesheets add ( description NCHAR(255) ); <#if !fields?seq_contains("sx_stylesheets.relation") > -! echo "field sx_stylesheets.relation will be added" -! echo `date` +select now(),'field sx_stylesheets.relation will be added' +from xdummy; alter table sx_stylesheets add ( relation CHAR(10) ); @@ -3852,8 +4064,8 @@ alter table sx_stylesheets add ( relation CHAR(10) ); <#if !fields?seq_contains("sx_stylesheets.useragent") > -! echo "field sx_stylesheets.useragent will be added" -! echo `date` +select now(),'field sx_stylesheets.useragent will be added' +from xdummy; alter table sx_stylesheets add ( useragent NCHAR(255) ); @@ -3862,8 +4074,8 @@ alter table sx_stylesheets add ( useragent NCHAR(255) ); <#if !fields?seq_contains("sx_stylesheets.contenttype") > -! echo "field sx_stylesheets.contenttype will be added" -! echo `date` +select now(),'field sx_stylesheets.contenttype will be added' +from xdummy; alter table sx_stylesheets add ( contenttype NCHAR(200) ); @@ -3872,18 +4084,58 @@ alter table sx_stylesheets add ( contenttype NCHAR(200) ); <#if !fields?seq_contains("sx_stylesheets.is_generic") > -! echo "field sx_stylesheets.is_generic will be added" -! echo `date` +select now(),'field sx_stylesheets.is_generic will be added' +from xdummy; alter table sx_stylesheets add ( is_generic SMALLINT default 0 ); +<#if !fields?seq_contains("sx_stylesheets.toolbar_icon_filepath") > + + +select now(),'field sx_stylesheets.toolbar_icon_filepath will be added' +from xdummy; + +alter table sx_stylesheets add ( toolbar_icon_filepath NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sx_stylesheets.usage_resultset_data") > + + +select now(),'field sx_stylesheets.usage_resultset_data will be added' +from xdummy; + +alter table sx_stylesheets add ( usage_resultset_data CHAR(10) default 'T' ); + + + +<#if !fields?seq_contains("sx_stylesheets.stylesheet_type") > + + +select now(),'field sx_stylesheets.stylesheet_type will be added' +from xdummy; + +alter table sx_stylesheets add ( stylesheet_type CHAR(10) default 'XSL' ); + + + +<#if !fields?seq_contains("sx_stylesheets.jr_datasource") > + + +select now(),'field sx_stylesheets.jr_datasource will be added' +from xdummy; + +alter table sx_stylesheets add ( jr_datasource CHAR(10) ); + + + <#if !fields?seq_contains("sx_mask_style.tid") > -! echo "field sx_mask_style.tid will be added" -! echo `date` +select now(),'field sx_mask_style.tid will be added' +from xdummy; alter table sx_mask_style add ( tid SERIAL not null); @@ -3892,8 +4144,8 @@ alter table sx_mask_style add ( tid SERIAL not null); <#if !fields?seq_contains("sx_mask_style.maskeninfo_id") > -! echo "field sx_mask_style.maskeninfo_id will be added" -! echo `date` +select now(),'field sx_mask_style.maskeninfo_id will be added' +from xdummy; alter table sx_mask_style add ( maskeninfo_id INTEGER ); @@ -3902,8 +4154,8 @@ alter table sx_mask_style add ( maskeninfo_id INTEGER ); <#if !fields?seq_contains("sx_mask_style.stylesheet_id") > -! echo "field sx_mask_style.stylesheet_id will be added" -! echo `date` +select now(),'field sx_mask_style.stylesheet_id will be added' +from xdummy; alter table sx_mask_style add ( stylesheet_id INTEGER ); @@ -3912,18 +4164,78 @@ alter table sx_mask_style add ( stylesheet_id INTEGER ); <#if !fields?seq_contains("sx_mask_style.ord") > -! echo "field sx_mask_style.ord will be added" -! echo `date` +select now(),'field sx_mask_style.ord will be added' +from xdummy; alter table sx_mask_style add ( ord SMALLINT ); +<#if !fields?seq_contains("sx_stylesheet_param.tid") > + + +select now(),'field sx_stylesheet_param.tid will be added' +from xdummy; + +alter table sx_stylesheet_param add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("sx_stylesheet_param.stylesheet_id") > + + +select now(),'field sx_stylesheet_param.stylesheet_id will be added' +from xdummy; + +alter table sx_stylesheet_param add ( stylesheet_id INTEGER not null); + + + +<#if !fields?seq_contains("sx_stylesheet_param.param_name") > + + +select now(),'field sx_stylesheet_param.param_name will be added' +from xdummy; + +alter table sx_stylesheet_param add ( param_name NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("sx_stylesheet_param.default_val") > + + +select now(),'field sx_stylesheet_param.default_val will be added' +from xdummy; + +alter table sx_stylesheet_param add ( default_val NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sx_stylesheet_param.description") > + + +select now(),'field sx_stylesheet_param.description will be added' +from xdummy; + +alter table sx_stylesheet_param add ( description NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sx_stylesheet_param.wertebereich") > + + +select now(),'field sx_stylesheet_param.wertebereich will be added' +from xdummy; + +alter table sx_stylesheet_param add ( wertebereich NVARCHAR(255) ); + + + <#if !fields?seq_contains("sx_captions.tid") > -! echo "field sx_captions.tid will be added" -! echo `date` +select now(),'field sx_captions.tid will be added' +from xdummy; alter table sx_captions add ( tid SERIAL not null); @@ -3932,8 +4244,8 @@ alter table sx_captions add ( tid SERIAL not null); <#if !fields?seq_contains("sx_captions.id") > -! echo "field sx_captions.id will be added" -! echo `date` +select now(),'field sx_captions.id will be added' +from xdummy; alter table sx_captions add ( id NCHAR(200) ); @@ -3942,8 +4254,8 @@ alter table sx_captions add ( id NCHAR(200) ); <#if !fields?seq_contains("sx_captions.table_name") > -! echo "field sx_captions.table_name will be added" -! echo `date` +select now(),'field sx_captions.table_name will be added' +from xdummy; alter table sx_captions add ( table_name NCHAR(200) ); @@ -3952,8 +4264,8 @@ alter table sx_captions add ( table_name NCHAR(200) ); <#if !fields?seq_contains("sx_captions.field_name") > -! echo "field sx_captions.field_name will be added" -! echo `date` +select now(),'field sx_captions.field_name will be added' +from xdummy; alter table sx_captions add ( field_name NCHAR(200) ); @@ -3962,8 +4274,8 @@ alter table sx_captions add ( field_name NCHAR(200) ); <#if !fields?seq_contains("sx_captions.record_no") > -! echo "field sx_captions.record_no will be added" -! echo `date` +select now(),'field sx_captions.record_no will be added' +from xdummy; alter table sx_captions add ( record_no INTEGER ); @@ -3972,8 +4284,8 @@ alter table sx_captions add ( record_no INTEGER ); <#if !fields?seq_contains("sx_captions.locale") > -! echo "field sx_captions.locale will be added" -! echo `date` +select now(),'field sx_captions.locale will be added' +from xdummy; alter table sx_captions add ( locale CHAR(10) ); @@ -3982,8 +4294,8 @@ alter table sx_captions add ( locale CHAR(10) ); <#if !fields?seq_contains("sx_captions.contents_short") > -! echo "field sx_captions.contents_short will be added" -! echo `date` +select now(),'field sx_captions.contents_short will be added' +from xdummy; alter table sx_captions add ( contents_short NCHAR(255) ); @@ -3992,8 +4304,8 @@ alter table sx_captions add ( contents_short NCHAR(255) ); <#if !fields?seq_contains("sx_captions.contents_long") > -! echo "field sx_captions.contents_long will be added" -! echo `date` +select now(),'field sx_captions.contents_long will be added' +from xdummy; alter table sx_captions add ( contents_long text ); @@ -4002,8 +4314,8 @@ alter table sx_captions add ( contents_long text ); <#if !fields?seq_contains("sx_captions.equalitystatus") > -! echo "field sx_captions.equalitystatus will be added" -! echo `date` +select now(),'field sx_captions.equalitystatus will be added' +from xdummy; alter table sx_captions add ( equalitystatus SMALLINT ); @@ -4012,8 +4324,8 @@ alter table sx_captions add ( equalitystatus SMALLINT ); <#if !fields?seq_contains("sx_captions.sachgebiete_id") > -! echo "field sx_captions.sachgebiete_id will be added" -! echo `date` +select now(),'field sx_captions.sachgebiete_id will be added' +from xdummy; alter table sx_captions add ( sachgebiete_id INTEGER ); @@ -4022,8 +4334,8 @@ alter table sx_captions add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sx_captions.doku_link") > -! echo "field sx_captions.doku_link will be added" -! echo `date` +select now(),'field sx_captions.doku_link will be added' +from xdummy; alter table sx_captions add ( doku_link NVARCHAR(255) ); @@ -4032,8 +4344,8 @@ alter table sx_captions add ( doku_link NVARCHAR(255) ); <#if !fields?seq_contains("sx_captions.export_to_glossar") > -! echo "field sx_captions.export_to_glossar will be added" -! echo `date` +select now(),'field sx_captions.export_to_glossar will be added' +from xdummy; alter table sx_captions add ( export_to_glossar INTEGER ); @@ -4042,8 +4354,8 @@ alter table sx_captions add ( export_to_glossar INTEGER ); <#if !fields?seq_contains("fm_templates.tid") > -! echo "field fm_templates.tid will be added" -! echo `date` +select now(),'field fm_templates.tid will be added' +from xdummy; alter table fm_templates add ( tid SERIAL not null); @@ -4052,8 +4364,8 @@ alter table fm_templates add ( tid SERIAL not null); <#if !fields?seq_contains("fm_templates.id") > -! echo "field fm_templates.id will be added" -! echo `date` +select now(),'field fm_templates.id will be added' +from xdummy; alter table fm_templates add ( id NCHAR(200) not null); @@ -4062,8 +4374,8 @@ alter table fm_templates add ( id NCHAR(200) not null); <#if !fields?seq_contains("fm_templates.content") > -! echo "field fm_templates.content will be added" -! echo `date` +select now(),'field fm_templates.content will be added' +from xdummy; alter table fm_templates add ( content text not null); @@ -4072,8 +4384,8 @@ alter table fm_templates add ( content text not null); <#if !fields?seq_contains("fm_templates.description") > -! echo "field fm_templates.description will be added" -! echo `date` +select now(),'field fm_templates.description will be added' +from xdummy; alter table fm_templates add ( description NCHAR(200) ); @@ -4082,8 +4394,8 @@ alter table fm_templates add ( description NCHAR(200) ); <#if !fields?seq_contains("fm_templates.comment") > -! echo "field fm_templates.comment will be added" -! echo `date` +select now(),'field fm_templates.comment will be added' +from xdummy; alter table fm_templates add ( comment NCHAR(200) ); @@ -4092,8 +4404,8 @@ alter table fm_templates add ( comment NCHAR(200) ); <#if !fields?seq_contains("fm_templates.version") > -! echo "field fm_templates.version will be added" -! echo `date` +select now(),'field fm_templates.version will be added' +from xdummy; alter table fm_templates add ( version integer default 1 ); @@ -4102,8 +4414,8 @@ alter table fm_templates add ( version integer default 1 ); <#if !fields?seq_contains("user_sichten.userinfo_id") > -! echo "field user_sichten.userinfo_id will be added" -! echo `date` +select now(),'field user_sichten.userinfo_id will be added' +from xdummy; alter table user_sichten add ( userinfo_id INTEGER not null); @@ -4112,8 +4424,8 @@ alter table user_sichten add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("user_sichten.sicht_name_intern") > -! echo "field user_sichten.sicht_name_intern will be added" -! echo `date` +select now(),'field user_sichten.sicht_name_intern will be added' +from xdummy; alter table user_sichten add ( sicht_name_intern NCHAR(200) not null); @@ -4122,8 +4434,8 @@ alter table user_sichten add ( sicht_name_intern NCHAR(200) not null); <#if !fields?seq_contains("user_sichten.external_entry") > -! echo "field user_sichten.external_entry will be added" -! echo `date` +select now(),'field user_sichten.external_entry will be added' +from xdummy; alter table user_sichten add ( external_entry smallint default 0 ); @@ -4132,8 +4444,8 @@ alter table user_sichten add ( external_entry smallint default 0 ); <#if !fields?seq_contains("user_sichtarten.userinfo_id") > -! echo "field user_sichtarten.userinfo_id will be added" -! echo `date` +select now(),'field user_sichtarten.userinfo_id will be added' +from xdummy; alter table user_sichtarten add ( userinfo_id INTEGER not null); @@ -4142,8 +4454,8 @@ alter table user_sichtarten add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("user_sichtarten.sichtart") > -! echo "field user_sichtarten.sichtart will be added" -! echo `date` +select now(),'field user_sichtarten.sichtart will be added' +from xdummy; alter table user_sichtarten add ( sichtart NCHAR(255) not null); @@ -4152,8 +4464,8 @@ alter table user_sichtarten add ( sichtart NCHAR(255) not null); <#if !fields?seq_contains("user_sichtarten.external_entry") > -! echo "field user_sichtarten.external_entry will be added" -! echo `date` +select now(),'field user_sichtarten.external_entry will be added' +from xdummy; alter table user_sichtarten add ( external_entry smallint default 0 ); @@ -4162,8 +4474,8 @@ alter table user_sichtarten add ( external_entry smallint default 0 ); <#if !fields?seq_contains("group_sichten.groupinfo_id") > -! echo "field group_sichten.groupinfo_id will be added" -! echo `date` +select now(),'field group_sichten.groupinfo_id will be added' +from xdummy; alter table group_sichten add ( groupinfo_id INTEGER ); @@ -4172,8 +4484,8 @@ alter table group_sichten add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("group_sichten.sicht_name_intern") > -! echo "field group_sichten.sicht_name_intern will be added" -! echo `date` +select now(),'field group_sichten.sicht_name_intern will be added' +from xdummy; alter table group_sichten add ( sicht_name_intern NCHAR(200) ); @@ -4182,8 +4494,8 @@ alter table group_sichten add ( sicht_name_intern NCHAR(200) ); <#if !fields?seq_contains("group_sichtarten.groupinfo_id") > -! echo "field group_sichtarten.groupinfo_id will be added" -! echo `date` +select now(),'field group_sichtarten.groupinfo_id will be added' +from xdummy; alter table group_sichtarten add ( groupinfo_id INTEGER ); @@ -4192,8 +4504,8 @@ alter table group_sichtarten add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("group_sichtarten.sichtart") > -! echo "field group_sichtarten.sichtart will be added" -! echo `date` +select now(),'field group_sichtarten.sichtart will be added' +from xdummy; alter table group_sichtarten add ( sichtart NCHAR(255) ); @@ -4202,8 +4514,8 @@ alter table group_sichtarten add ( sichtart NCHAR(255) ); <#if !fields?seq_contains("sachgeb_sichten.sachgebiete_id") > -! echo "field sachgeb_sichten.sachgebiete_id will be added" -! echo `date` +select now(),'field sachgeb_sichten.sachgebiete_id will be added' +from xdummy; alter table sachgeb_sichten add ( sachgebiete_id INTEGER ); @@ -4212,8 +4524,8 @@ alter table sachgeb_sichten add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sachgeb_sichten.sicht_name_intern") > -! echo "field sachgeb_sichten.sicht_name_intern will be added" -! echo `date` +select now(),'field sachgeb_sichten.sicht_name_intern will be added' +from xdummy; alter table sachgeb_sichten add ( sicht_name_intern NCHAR(200) ); @@ -4222,8 +4534,8 @@ alter table sachgeb_sichten add ( sicht_name_intern NCHAR(200) ); <#if !fields?seq_contains("sachgeb_sichtarten.sachgebiete_id") > -! echo "field sachgeb_sichtarten.sachgebiete_id will be added" -! echo `date` +select now(),'field sachgeb_sichtarten.sachgebiete_id will be added' +from xdummy; alter table sachgeb_sichtarten add ( sachgebiete_id INTEGER ); @@ -4232,8 +4544,8 @@ alter table sachgeb_sichtarten add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sachgeb_sichtarten.sichtart") > -! echo "field sachgeb_sichtarten.sichtart will be added" -! echo `date` +select now(),'field sachgeb_sichtarten.sichtart will be added' +from xdummy; alter table sachgeb_sichtarten add ( sichtart NCHAR(255) ); @@ -4242,8 +4554,8 @@ alter table sachgeb_sichtarten add ( sichtart NCHAR(255) ); <#if !fields?seq_contains("sx_repository.tid") > -! echo "field sx_repository.tid will be added" -! echo `date` +select now(),'field sx_repository.tid will be added' +from xdummy; alter table sx_repository add ( tid SERIAL not null); @@ -4252,8 +4564,8 @@ alter table sx_repository add ( tid SERIAL not null); <#if !fields?seq_contains("sx_repository.id") > -! echo "field sx_repository.id will be added" -! echo `date` +select now(),'field sx_repository.id will be added' +from xdummy; alter table sx_repository add ( id NCHAR(200) not null); @@ -4262,8 +4574,8 @@ alter table sx_repository add ( id NCHAR(200) not null); <#if !fields?seq_contains("sx_repository.content") > -! echo "field sx_repository.content will be added" -! echo `date` +select now(),'field sx_repository.content will be added' +from xdummy; alter table sx_repository add ( content TEXT ); @@ -4272,8 +4584,8 @@ alter table sx_repository add ( content TEXT ); <#if !fields?seq_contains("sx_repository.caption") > -! echo "field sx_repository.caption will be added" -! echo `date` +select now(),'field sx_repository.caption will be added' +from xdummy; alter table sx_repository add ( caption NCHAR(200) ); @@ -4282,8 +4594,8 @@ alter table sx_repository add ( caption NCHAR(200) ); <#if !fields?seq_contains("sx_repository.comment") > -! echo "field sx_repository.comment will be added" -! echo `date` +select now(),'field sx_repository.comment will be added' +from xdummy; alter table sx_repository add ( comment TEXT ); @@ -4292,8 +4604,8 @@ alter table sx_repository add ( comment TEXT ); <#if !fields?seq_contains("sx_repository.version") > -! echo "field sx_repository.version will be added" -! echo `date` +select now(),'field sx_repository.version will be added' +from xdummy; alter table sx_repository add ( version SMALLINT ); @@ -4302,8 +4614,8 @@ alter table sx_repository add ( version SMALLINT ); <#if !fields?seq_contains("sx_repository.art") > -! echo "field sx_repository.art will be added" -! echo `date` +select now(),'field sx_repository.art will be added' +from xdummy; alter table sx_repository add ( art NCHAR(200) ); @@ -4312,8 +4624,8 @@ alter table sx_repository add ( art NCHAR(200) ); <#if !fields?seq_contains("sx_repository.art2") > -! echo "field sx_repository.art2 will be added" -! echo `date` +select now(),'field sx_repository.art2 will be added' +from xdummy; alter table sx_repository add ( art2 NCHAR(200) ); @@ -4322,8 +4634,8 @@ alter table sx_repository add ( art2 NCHAR(200) ); <#if !fields?seq_contains("sx_repository.art3") > -! echo "field sx_repository.art3 will be added" -! echo `date` +select now(),'field sx_repository.art3 will be added' +from xdummy; alter table sx_repository add ( art3 NCHAR(200) ); @@ -4332,8 +4644,8 @@ alter table sx_repository add ( art3 NCHAR(200) ); <#if !fields?seq_contains("sx_repository.sachgebiete_id") > -! echo "field sx_repository.sachgebiete_id will be added" -! echo `date` +select now(),'field sx_repository.sachgebiete_id will be added' +from xdummy; alter table sx_repository add ( sachgebiete_id INTEGER ); @@ -4342,8 +4654,8 @@ alter table sx_repository add ( sachgebiete_id INTEGER ); <#if !fields?seq_contains("sx_repository.sort1") > -! echo "field sx_repository.sort1 will be added" -! echo `date` +select now(),'field sx_repository.sort1 will be added' +from xdummy; alter table sx_repository add ( sort1 INTEGER ); @@ -4352,8 +4664,8 @@ alter table sx_repository add ( sort1 INTEGER ); <#if !fields?seq_contains("sx_repository.sort2") > -! echo "field sx_repository.sort2 will be added" -! echo `date` +select now(),'field sx_repository.sort2 will be added' +from xdummy; alter table sx_repository add ( sort2 INTEGER ); @@ -4362,8 +4674,8 @@ alter table sx_repository add ( sort2 INTEGER ); <#if !fields?seq_contains("sx_repository.sort3") > -! echo "field sx_repository.sort3 will be added" -! echo `date` +select now(),'field sx_repository.sort3 will be added' +from xdummy; alter table sx_repository add ( sort3 INTEGER ); @@ -4372,8 +4684,8 @@ alter table sx_repository add ( sort3 INTEGER ); <#if !fields?seq_contains("sx_repository.geaendert_am") > -! echo "field sx_repository.geaendert_am will be added" -! echo `date` +select now(),'field sx_repository.geaendert_am will be added' +from xdummy; alter table sx_repository add ( geaendert_am DATE ); @@ -4382,8 +4694,8 @@ alter table sx_repository add ( geaendert_am DATE ); <#if !fields?seq_contains("sx_repository.aktiv") > -! echo "field sx_repository.aktiv will be added" -! echo `date` +select now(),'field sx_repository.aktiv will be added' +from xdummy; alter table sx_repository add ( aktiv SMALLINT ); @@ -4392,8 +4704,8 @@ alter table sx_repository add ( aktiv SMALLINT ); <#if !fields?seq_contains("sx_repository.gueltig_seit") > -! echo "field sx_repository.gueltig_seit will be added" -! echo `date` +select now(),'field sx_repository.gueltig_seit will be added' +from xdummy; alter table sx_repository add ( gueltig_seit DATE default '01.01.1900' not null); @@ -4402,8 +4714,8 @@ alter table sx_repository add ( gueltig_seit DATE default '01.01.1900' not nul <#if !fields?seq_contains("sx_repository.gueltig_bis") > -! echo "field sx_repository.gueltig_bis will be added" -! echo `date` +select now(),'field sx_repository.gueltig_bis will be added' +from xdummy; alter table sx_repository add ( gueltig_bis DATE default '01.01.3000' not null); @@ -4412,8 +4724,8 @@ alter table sx_repository add ( gueltig_bis DATE default '01.01.3000' not null <#if !fields?seq_contains("user_pw.userinfo_id") > -! echo "field user_pw.userinfo_id will be added" -! echo `date` +select now(),'field user_pw.userinfo_id will be added' +from xdummy; alter table user_pw add ( userinfo_id INTEGER not null); @@ -4422,8 +4734,8 @@ alter table user_pw add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("user_pw.pw_gueltig_bis") > -! echo "field user_pw.pw_gueltig_bis will be added" -! echo `date` +select now(),'field user_pw.pw_gueltig_bis will be added' +from xdummy; alter table user_pw add ( pw_gueltig_bis date ); @@ -4432,8 +4744,8 @@ alter table user_pw add ( pw_gueltig_bis date ); <#if !fields?seq_contains("user_pw.last_login") > -! echo "field user_pw.last_login will be added" -! echo `date` +select now(),'field user_pw.last_login will be added' +from xdummy; alter table user_pw add ( last_login datetime year to second ); @@ -4442,8 +4754,8 @@ alter table user_pw add ( last_login datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha1") > -! echo "field user_pw.old_sha1 will be added" -! echo `date` +select now(),'field user_pw.old_sha1 will be added' +from xdummy; alter table user_pw add ( old_sha1 NCHAR(255) ); @@ -4452,8 +4764,8 @@ alter table user_pw add ( old_sha1 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt1") > -! echo "field user_pw.zeitpunkt1 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt1 will be added' +from xdummy; alter table user_pw add ( zeitpunkt1 datetime year to second ); @@ -4462,8 +4774,8 @@ alter table user_pw add ( zeitpunkt1 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha2") > -! echo "field user_pw.old_sha2 will be added" -! echo `date` +select now(),'field user_pw.old_sha2 will be added' +from xdummy; alter table user_pw add ( old_sha2 NCHAR(255) ); @@ -4472,8 +4784,8 @@ alter table user_pw add ( old_sha2 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt2") > -! echo "field user_pw.zeitpunkt2 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt2 will be added' +from xdummy; alter table user_pw add ( zeitpunkt2 datetime year to second ); @@ -4482,8 +4794,8 @@ alter table user_pw add ( zeitpunkt2 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha3") > -! echo "field user_pw.old_sha3 will be added" -! echo `date` +select now(),'field user_pw.old_sha3 will be added' +from xdummy; alter table user_pw add ( old_sha3 NCHAR(255) ); @@ -4492,8 +4804,8 @@ alter table user_pw add ( old_sha3 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt3") > -! echo "field user_pw.zeitpunkt3 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt3 will be added' +from xdummy; alter table user_pw add ( zeitpunkt3 datetime year to second ); @@ -4502,8 +4814,8 @@ alter table user_pw add ( zeitpunkt3 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha4") > -! echo "field user_pw.old_sha4 will be added" -! echo `date` +select now(),'field user_pw.old_sha4 will be added' +from xdummy; alter table user_pw add ( old_sha4 NCHAR(255) ); @@ -4512,8 +4824,8 @@ alter table user_pw add ( old_sha4 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt4") > -! echo "field user_pw.zeitpunkt4 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt4 will be added' +from xdummy; alter table user_pw add ( zeitpunkt4 datetime year to second ); @@ -4522,8 +4834,8 @@ alter table user_pw add ( zeitpunkt4 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha5") > -! echo "field user_pw.old_sha5 will be added" -! echo `date` +select now(),'field user_pw.old_sha5 will be added' +from xdummy; alter table user_pw add ( old_sha5 NCHAR(255) ); @@ -4532,8 +4844,8 @@ alter table user_pw add ( old_sha5 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt5") > -! echo "field user_pw.zeitpunkt5 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt5 will be added' +from xdummy; alter table user_pw add ( zeitpunkt5 datetime year to second ); @@ -4542,8 +4854,8 @@ alter table user_pw add ( zeitpunkt5 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha6") > -! echo "field user_pw.old_sha6 will be added" -! echo `date` +select now(),'field user_pw.old_sha6 will be added' +from xdummy; alter table user_pw add ( old_sha6 NCHAR(255) ); @@ -4552,8 +4864,8 @@ alter table user_pw add ( old_sha6 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt6") > -! echo "field user_pw.zeitpunkt6 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt6 will be added' +from xdummy; alter table user_pw add ( zeitpunkt6 datetime year to second ); @@ -4562,8 +4874,8 @@ alter table user_pw add ( zeitpunkt6 datetime year to second ); <#if !fields?seq_contains("user_pw.old_sha7") > -! echo "field user_pw.old_sha7 will be added" -! echo `date` +select now(),'field user_pw.old_sha7 will be added' +from xdummy; alter table user_pw add ( old_sha7 NCHAR(255) ); @@ -4572,8 +4884,8 @@ alter table user_pw add ( old_sha7 NCHAR(255) ); <#if !fields?seq_contains("user_pw.zeitpunkt7") > -! echo "field user_pw.zeitpunkt7 will be added" -! echo `date` +select now(),'field user_pw.zeitpunkt7 will be added' +from xdummy; alter table user_pw add ( zeitpunkt7 datetime year to second ); @@ -4582,8 +4894,8 @@ alter table user_pw add ( zeitpunkt7 datetime year to second ); <#if !fields?seq_contains("sx_downloads.tid") > -! echo "field sx_downloads.tid will be added" -! echo `date` +select now(),'field sx_downloads.tid will be added' +from xdummy; alter table sx_downloads add ( tid SERIAL not null); @@ -4592,8 +4904,8 @@ alter table sx_downloads add ( tid SERIAL not null); <#if !fields?seq_contains("sx_downloads.name") > -! echo "field sx_downloads.name will be added" -! echo `date` +select now(),'field sx_downloads.name will be added' +from xdummy; alter table sx_downloads add ( name NCHAR(255) ); @@ -4602,8 +4914,8 @@ alter table sx_downloads add ( name NCHAR(255) ); <#if !fields?seq_contains("sx_downloads.ch110_institut") > -! echo "field sx_downloads.ch110_institut will be added" -! echo `date` +select now(),'field sx_downloads.ch110_institut will be added' +from xdummy; alter table sx_downloads add ( ch110_institut CHAR(10) ); @@ -4612,8 +4924,8 @@ alter table sx_downloads add ( ch110_institut CHAR(10) ); <#if !fields?seq_contains("sx_downloads.bezugsdatum") > -! echo "field sx_downloads.bezugsdatum will be added" -! echo `date` +select now(),'field sx_downloads.bezugsdatum will be added' +from xdummy; alter table sx_downloads add ( bezugsdatum DATE ); @@ -4622,8 +4934,8 @@ alter table sx_downloads add ( bezugsdatum DATE ); <#if !fields?seq_contains("sx_downloads.importdatum") > -! echo "field sx_downloads.importdatum will be added" -! echo `date` +select now(),'field sx_downloads.importdatum will be added' +from xdummy; alter table sx_downloads add ( importdatum DATE ); @@ -4632,8 +4944,8 @@ alter table sx_downloads add ( importdatum DATE ); <#if !fields?seq_contains("sx_downloads.kommentar") > -! echo "field sx_downloads.kommentar will be added" -! echo `date` +select now(),'field sx_downloads.kommentar will be added' +from xdummy; alter table sx_downloads add ( kommentar TEXT ); @@ -4642,8 +4954,8 @@ alter table sx_downloads add ( kommentar TEXT ); <#if !fields?seq_contains("sx_downloads.kommentar_url") > -! echo "field sx_downloads.kommentar_url will be added" -! echo `date` +select now(),'field sx_downloads.kommentar_url will be added' +from xdummy; alter table sx_downloads add ( kommentar_url NCHAR(255) ); @@ -4652,8 +4964,8 @@ alter table sx_downloads add ( kommentar_url NCHAR(255) ); <#if !fields?seq_contains("sx_downloads.contenttype") > -! echo "field sx_downloads.contenttype will be added" -! echo `date` +select now(),'field sx_downloads.contenttype will be added' +from xdummy; alter table sx_downloads add ( contenttype NVARCHAR(255) ); @@ -4662,8 +4974,8 @@ alter table sx_downloads add ( contenttype NVARCHAR(255) ); <#if !fields?seq_contains("sx_downloads.datei") > -! echo "field sx_downloads.datei will be added" -! echo `date` +select now(),'field sx_downloads.datei will be added' +from xdummy; alter table sx_downloads add ( datei char(255) not null); @@ -4672,8 +4984,8 @@ alter table sx_downloads add ( datei char(255) not null); <#if !fields?seq_contains("sx_downloads.gueltig_seit") > -! echo "field sx_downloads.gueltig_seit will be added" -! echo `date` +select now(),'field sx_downloads.gueltig_seit will be added' +from xdummy; alter table sx_downloads add ( gueltig_seit DATE default '01.01.1900' not null); @@ -4682,8 +4994,8 @@ alter table sx_downloads add ( gueltig_seit DATE default '01.01.1900' not null <#if !fields?seq_contains("sx_downloads.gueltig_bis") > -! echo "field sx_downloads.gueltig_bis will be added" -! echo `date` +select now(),'field sx_downloads.gueltig_bis will be added' +from xdummy; alter table sx_downloads add ( gueltig_bis DATE default '01.01.3000' not null); @@ -4692,8 +5004,8 @@ alter table sx_downloads add ( gueltig_bis DATE default '01.01.3000' not null) <#if !fields?seq_contains("download_group_bez.groupinfo_id") > -! echo "field download_group_bez.groupinfo_id will be added" -! echo `date` +select now(),'field download_group_bez.groupinfo_id will be added' +from xdummy; alter table download_group_bez add ( groupinfo_id INTEGER ); @@ -4702,8 +5014,8 @@ alter table download_group_bez add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("download_group_bez.download_id") > -! echo "field download_group_bez.download_id will be added" -! echo `date` +select now(),'field download_group_bez.download_id will be added' +from xdummy; alter table download_group_bez add ( download_id INTEGER ); @@ -4712,8 +5024,8 @@ alter table download_group_bez add ( download_id INTEGER ); <#if !fields?seq_contains("download_user_bez.userinfo_id") > -! echo "field download_user_bez.userinfo_id will be added" -! echo `date` +select now(),'field download_user_bez.userinfo_id will be added' +from xdummy; alter table download_user_bez add ( userinfo_id INTEGER ); @@ -4722,8 +5034,8 @@ alter table download_user_bez add ( userinfo_id INTEGER ); <#if !fields?seq_contains("download_user_bez.download_id") > -! echo "field download_user_bez.download_id will be added" -! echo `date` +select now(),'field download_user_bez.download_id will be added' +from xdummy; alter table download_user_bez add ( download_id INTEGER ); @@ -4732,8 +5044,8 @@ alter table download_user_bez add ( download_id INTEGER ); <#if !fields?seq_contains("download_keyw_bez.keyword_id") > -! echo "field download_keyw_bez.keyword_id will be added" -! echo `date` +select now(),'field download_keyw_bez.keyword_id will be added' +from xdummy; alter table download_keyw_bez add ( keyword_id INTEGER ); @@ -4742,8 +5054,8 @@ alter table download_keyw_bez add ( keyword_id INTEGER ); <#if !fields?seq_contains("download_keyw_bez.download_id") > -! echo "field download_keyw_bez.download_id will be added" -! echo `date` +select now(),'field download_keyw_bez.download_id will be added' +from xdummy; alter table download_keyw_bez add ( download_id INTEGER ); @@ -4752,8 +5064,8 @@ alter table download_keyw_bez add ( download_id INTEGER ); <#if !fields?seq_contains("sx_keywords.tid") > -! echo "field sx_keywords.tid will be added" -! echo `date` +select now(),'field sx_keywords.tid will be added' +from xdummy; alter table sx_keywords add ( tid SERIAL ); @@ -4762,8 +5074,8 @@ alter table sx_keywords add ( tid SERIAL ); <#if !fields?seq_contains("sx_keywords.name") > -! echo "field sx_keywords.name will be added" -! echo `date` +select now(),'field sx_keywords.name will be added' +from xdummy; alter table sx_keywords add ( name NCHAR(255) ); @@ -4772,8 +5084,8 @@ alter table sx_keywords add ( name NCHAR(255) ); <#if !fields?seq_contains("sx_keywords.parent") > -! echo "field sx_keywords.parent will be added" -! echo `date` +select now(),'field sx_keywords.parent will be added' +from xdummy; alter table sx_keywords add ( parent INTEGER ); @@ -4782,8 +5094,8 @@ alter table sx_keywords add ( parent INTEGER ); <#if !fields?seq_contains("user_startpage.tid") > -! echo "field user_startpage.tid will be added" -! echo `date` +select now(),'field user_startpage.tid will be added' +from xdummy; alter table user_startpage add ( tid serial not null); @@ -4792,8 +5104,8 @@ alter table user_startpage add ( tid serial not null); <#if !fields?seq_contains("user_startpage.userid") > -! echo "field user_startpage.userid will be added" -! echo `date` +select now(),'field user_startpage.userid will be added' +from xdummy; alter table user_startpage add ( userid INTEGER not null); @@ -4802,8 +5114,8 @@ alter table user_startpage add ( userid INTEGER not null); <#if !fields?seq_contains("user_startpage.starturl") > -! echo "field user_startpage.starturl will be added" -! echo `date` +select now(),'field user_startpage.starturl will be added' +from xdummy; alter table user_startpage add ( starturl NCHAR(255) ); @@ -4812,8 +5124,8 @@ alter table user_startpage add ( starturl NCHAR(255) ); <#if !fields?seq_contains("user_startpage.encrypted") > -! echo "field user_startpage.encrypted will be added" -! echo `date` +select now(),'field user_startpage.encrypted will be added' +from xdummy; alter table user_startpage add ( encrypted smallint default 0 ); @@ -4822,8 +5134,8 @@ alter table user_startpage add ( encrypted smallint default 0 ); <#if !fields?seq_contains("user_startpage.notolderthan") > -! echo "field user_startpage.notolderthan will be added" -! echo `date` +select now(),'field user_startpage.notolderthan will be added' +from xdummy; alter table user_startpage add ( notolderthan INTEGER ); @@ -4832,8 +5144,8 @@ alter table user_startpage add ( notolderthan INTEGER ); <#if !fields?seq_contains("user_startpage.startmask") > -! echo "field user_startpage.startmask will be added" -! echo `date` +select now(),'field user_startpage.startmask will be added' +from xdummy; alter table user_startpage add ( startmask integer ); @@ -4842,8 +5154,8 @@ alter table user_startpage add ( startmask integer ); <#if !fields?seq_contains("user_startpage.alturl") > -! echo "field user_startpage.alturl will be added" -! echo `date` +select now(),'field user_startpage.alturl will be added' +from xdummy; alter table user_startpage add ( alturl NCHAR(255) ); @@ -4852,8 +5164,8 @@ alter table user_startpage add ( alturl NCHAR(255) ); <#if !fields?seq_contains("user_startpage.stylesheet") > -! echo "field user_startpage.stylesheet will be added" -! echo `date` +select now(),'field user_startpage.stylesheet will be added' +from xdummy; alter table user_startpage add ( stylesheet NCHAR(255) ); @@ -4862,8 +5174,8 @@ alter table user_startpage add ( stylesheet NCHAR(255) ); <#if !fields?seq_contains("user_startpage.stylesheet2") > -! echo "field user_startpage.stylesheet2 will be added" -! echo `date` +select now(),'field user_startpage.stylesheet2 will be added' +from xdummy; alter table user_startpage add ( stylesheet2 NCHAR(255) ); @@ -4872,8 +5184,8 @@ alter table user_startpage add ( stylesheet2 NCHAR(255) ); <#if !fields?seq_contains("user_startpage.contenttype") > -! echo "field user_startpage.contenttype will be added" -! echo `date` +select now(),'field user_startpage.contenttype will be added' +from xdummy; alter table user_startpage add ( contenttype NCHAR(255) ); @@ -4882,8 +5194,8 @@ alter table user_startpage add ( contenttype NCHAR(255) ); <#if !fields?seq_contains("user_startpage.extra1") > -! echo "field user_startpage.extra1 will be added" -! echo `date` +select now(),'field user_startpage.extra1 will be added' +from xdummy; alter table user_startpage add ( extra1 NCHAR(255) ); @@ -4892,8 +5204,8 @@ alter table user_startpage add ( extra1 NCHAR(255) ); <#if !fields?seq_contains("user_startpage.extra2") > -! echo "field user_startpage.extra2 will be added" -! echo `date` +select now(),'field user_startpage.extra2 will be added' +from xdummy; alter table user_startpage add ( extra2 NCHAR(255) ); @@ -4902,8 +5214,8 @@ alter table user_startpage add ( extra2 NCHAR(255) ); <#if !fields?seq_contains("user_startpage.active") > -! echo "field user_startpage.active will be added" -! echo `date` +select now(),'field user_startpage.active will be added' +from xdummy; alter table user_startpage add ( active integer not null); @@ -4912,8 +5224,8 @@ alter table user_startpage add ( active integer not null); <#if !fields?seq_contains("user_startfields.tid") > -! echo "field user_startfields.tid will be added" -! echo `date` +select now(),'field user_startfields.tid will be added' +from xdummy; alter table user_startfields add ( tid serial not null); @@ -4922,8 +5234,8 @@ alter table user_startfields add ( tid serial not null); <#if !fields?seq_contains("user_startfields.userid") > -! echo "field user_startfields.userid will be added" -! echo `date` +select now(),'field user_startfields.userid will be added' +from xdummy; alter table user_startfields add ( userid INTEGER not null); @@ -4932,8 +5244,8 @@ alter table user_startfields add ( userid INTEGER not null); <#if !fields?seq_contains("user_startfields.fieldname") > -! echo "field user_startfields.fieldname will be added" -! echo `date` +select now(),'field user_startfields.fieldname will be added' +from xdummy; alter table user_startfields add ( fieldname NCHAR(255) not null); @@ -4942,8 +5254,8 @@ alter table user_startfields add ( fieldname NCHAR(255) not null); <#if !fields?seq_contains("user_startfields.value") > -! echo "field user_startfields.value will be added" -! echo `date` +select now(),'field user_startfields.value will be added' +from xdummy; alter table user_startfields add ( value NCHAR(255) ); @@ -4952,8 +5264,8 @@ alter table user_startfields add ( value NCHAR(255) ); <#if !fields?seq_contains("user_startfields.active") > -! echo "field user_startfields.active will be added" -! echo `date` +select now(),'field user_startfields.active will be added' +from xdummy; alter table user_startfields add ( active integer not null); @@ -4962,8 +5274,8 @@ alter table user_startfields add ( active integer not null); <#if !fields?seq_contains("user_dialog.id") > -! echo "field user_dialog.id will be added" -! echo `date` +select now(),'field user_dialog.id will be added' +from xdummy; alter table user_dialog add ( id SERIAL not null); @@ -4972,8 +5284,8 @@ alter table user_dialog add ( id SERIAL not null); <#if !fields?seq_contains("user_dialog.identifier") > -! echo "field user_dialog.identifier will be added" -! echo `date` +select now(),'field user_dialog.identifier will be added' +from xdummy; alter table user_dialog add ( identifier NVARCHAR(255) not null); @@ -4982,8 +5294,8 @@ alter table user_dialog add ( identifier NVARCHAR(255) not null); <#if !fields?seq_contains("user_dialog.headline") > -! echo "field user_dialog.headline will be added" -! echo `date` +select now(),'field user_dialog.headline will be added' +from xdummy; alter table user_dialog add ( headline TEXT ); @@ -4992,8 +5304,8 @@ alter table user_dialog add ( headline TEXT ); <#if !fields?seq_contains("user_dialog.url") > -! echo "field user_dialog.url will be added" -! echo `date` +select now(),'field user_dialog.url will be added' +from xdummy; alter table user_dialog add ( url NVARCHAR(255) not null); @@ -5002,8 +5314,8 @@ alter table user_dialog add ( url NVARCHAR(255) not null); <#if !fields?seq_contains("user_dialog.hint_version") > -! echo "field user_dialog.hint_version will be added" -! echo `date` +select now(),'field user_dialog.hint_version will be added' +from xdummy; alter table user_dialog add ( hint_version SMALLINT ); @@ -5012,8 +5324,8 @@ alter table user_dialog add ( hint_version SMALLINT ); <#if !fields?seq_contains("user_dialog.annotation") > -! echo "field user_dialog.annotation will be added" -! echo `date` +select now(),'field user_dialog.annotation will be added' +from xdummy; alter table user_dialog add ( annotation TEXT ); @@ -5022,8 +5334,8 @@ alter table user_dialog add ( annotation TEXT ); <#if !fields?seq_contains("user_dialog.confirm") > -! echo "field user_dialog.confirm will be added" -! echo `date` +select now(),'field user_dialog.confirm will be added' +from xdummy; alter table user_dialog add ( confirm SMALLINT ); @@ -5032,8 +5344,8 @@ alter table user_dialog add ( confirm SMALLINT ); <#if !fields?seq_contains("user_dialog.confirm_prompt") > -! echo "field user_dialog.confirm_prompt will be added" -! echo `date` +select now(),'field user_dialog.confirm_prompt will be added' +from xdummy; alter table user_dialog add ( confirm_prompt TEXT ); @@ -5042,8 +5354,8 @@ alter table user_dialog add ( confirm_prompt TEXT ); <#if !fields?seq_contains("user_dialog.created") > -! echo "field user_dialog.created will be added" -! echo `date` +select now(),'field user_dialog.created will be added' +from xdummy; alter table user_dialog add ( created DATE ); @@ -5052,8 +5364,8 @@ alter table user_dialog add ( created DATE ); <#if !fields?seq_contains("user_dialog.valid_from") > -! echo "field user_dialog.valid_from will be added" -! echo `date` +select now(),'field user_dialog.valid_from will be added' +from xdummy; alter table user_dialog add ( valid_from DATE ); @@ -5062,8 +5374,8 @@ alter table user_dialog add ( valid_from DATE ); <#if !fields?seq_contains("user_dialog.valid_till") > -! echo "field user_dialog.valid_till will be added" -! echo `date` +select now(),'field user_dialog.valid_till will be added' +from xdummy; alter table user_dialog add ( valid_till DATE ); @@ -5072,8 +5384,8 @@ alter table user_dialog add ( valid_till DATE ); <#if !fields?seq_contains("user_dialog.category") > -! echo "field user_dialog.category will be added" -! echo `date` +select now(),'field user_dialog.category will be added' +from xdummy; alter table user_dialog add ( category NVARCHAR(255) ); @@ -5082,8 +5394,8 @@ alter table user_dialog add ( category NVARCHAR(255) ); <#if !fields?seq_contains("user_dialog.nature") > -! echo "field user_dialog.nature will be added" -! echo `date` +select now(),'field user_dialog.nature will be added' +from xdummy; alter table user_dialog add ( nature NVARCHAR(255) ); @@ -5092,8 +5404,8 @@ alter table user_dialog add ( nature NVARCHAR(255) ); <#if !fields?seq_contains("user_dialog.attrib1") > -! echo "field user_dialog.attrib1 will be added" -! echo `date` +select now(),'field user_dialog.attrib1 will be added' +from xdummy; alter table user_dialog add ( attrib1 INTEGER ); @@ -5102,8 +5414,8 @@ alter table user_dialog add ( attrib1 INTEGER ); <#if !fields?seq_contains("user_dialog.attrib2") > -! echo "field user_dialog.attrib2 will be added" -! echo `date` +select now(),'field user_dialog.attrib2 will be added' +from xdummy; alter table user_dialog add ( attrib2 NVARCHAR(255) ); @@ -5112,8 +5424,8 @@ alter table user_dialog add ( attrib2 NVARCHAR(255) ); <#if !fields?seq_contains("user_dialog.attrib3") > -! echo "field user_dialog.attrib3 will be added" -! echo `date` +select now(),'field user_dialog.attrib3 will be added' +from xdummy; alter table user_dialog add ( attrib3 NVARCHAR(255) ); @@ -5122,8 +5434,8 @@ alter table user_dialog add ( attrib3 NVARCHAR(255) ); <#if !fields?seq_contains("user_dialog_accept.id") > -! echo "field user_dialog_accept.id will be added" -! echo `date` +select now(),'field user_dialog_accept.id will be added' +from xdummy; alter table user_dialog_accept add ( id SERIAL not null); @@ -5132,8 +5444,8 @@ alter table user_dialog_accept add ( id SERIAL not null); <#if !fields?seq_contains("user_dialog_accept.userinfo_id") > -! echo "field user_dialog_accept.userinfo_id will be added" -! echo `date` +select now(),'field user_dialog_accept.userinfo_id will be added' +from xdummy; alter table user_dialog_accept add ( userinfo_id INTEGER not null); @@ -5142,8 +5454,8 @@ alter table user_dialog_accept add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("user_dialog_accept.user_dialog_id") > -! echo "field user_dialog_accept.user_dialog_id will be added" -! echo `date` +select now(),'field user_dialog_accept.user_dialog_id will be added' +from xdummy; alter table user_dialog_accept add ( user_dialog_id INTEGER not null); @@ -5152,8 +5464,8 @@ alter table user_dialog_accept add ( user_dialog_id INTEGER not null); <#if !fields?seq_contains("user_dialog_accept.ip_address") > -! echo "field user_dialog_accept.ip_address will be added" -! echo `date` +select now(),'field user_dialog_accept.ip_address will be added' +from xdummy; alter table user_dialog_accept add ( ip_address NVARCHAR(100) ); @@ -5162,8 +5474,8 @@ alter table user_dialog_accept add ( ip_address NVARCHAR(100) ); <#if !fields?seq_contains("user_dialog_accept.client_name") > -! echo "field user_dialog_accept.client_name will be added" -! echo `date` +select now(),'field user_dialog_accept.client_name will be added' +from xdummy; alter table user_dialog_accept add ( client_name NVARCHAR(255) ); @@ -5172,8 +5484,8 @@ alter table user_dialog_accept add ( client_name NVARCHAR(255) ); <#if !fields?seq_contains("user_dialog_accept.timestamp") > -! echo "field user_dialog_accept.timestamp will be added" -! echo `date` +select now(),'field user_dialog_accept.timestamp will be added' +from xdummy; alter table user_dialog_accept add ( timestamp datetime year to second not null); @@ -5182,8 +5494,8 @@ alter table user_dialog_accept add ( timestamp datetime year to second not null <#if !fields?seq_contains("user_hinweis.userinfo_id") > -! echo "field user_hinweis.userinfo_id will be added" -! echo `date` +select now(),'field user_hinweis.userinfo_id will be added' +from xdummy; alter table user_hinweis add ( userinfo_id INTEGER not null); @@ -5192,8 +5504,8 @@ alter table user_hinweis add ( userinfo_id INTEGER not null); <#if !fields?seq_contains("user_hinweis.hinweise_id") > -! echo "field user_hinweis.hinweise_id will be added" -! echo `date` +select now(),'field user_hinweis.hinweise_id will be added' +from xdummy; alter table user_hinweis add ( hinweise_id integer not null); @@ -5202,8 +5514,8 @@ alter table user_hinweis add ( hinweise_id integer not null); <#if !fields?seq_contains("group_hinweis.groupinfo_id") > -! echo "field group_hinweis.groupinfo_id will be added" -! echo `date` +select now(),'field group_hinweis.groupinfo_id will be added' +from xdummy; alter table group_hinweis add ( groupinfo_id INTEGER not null); @@ -5212,8 +5524,8 @@ alter table group_hinweis add ( groupinfo_id INTEGER not null); <#if !fields?seq_contains("group_hinweis.hinweise_id") > -! echo "field group_hinweis.hinweise_id will be added" -! echo `date` +select now(),'field group_hinweis.hinweise_id will be added' +from xdummy; alter table group_hinweis add ( hinweise_id integer not null); @@ -5222,8 +5534,8 @@ alter table group_hinweis add ( hinweise_id integer not null); <#if !fields?seq_contains("unload_params.tid") > -! echo "field unload_params.tid will be added" -! echo `date` +select now(),'field unload_params.tid will be added' +from xdummy; alter table unload_params add ( tid SERIAL not null); @@ -5232,8 +5544,8 @@ alter table unload_params add ( tid SERIAL not null); <#if !fields?seq_contains("unload_params.param_id") > -! echo "field unload_params.param_id will be added" -! echo `date` +select now(),'field unload_params.param_id will be added' +from xdummy; alter table unload_params add ( param_id NVARCHAR(255) not null); @@ -5242,8 +5554,8 @@ alter table unload_params add ( param_id NVARCHAR(255) not null); <#if !fields?seq_contains("unload_params.param_val") > -! echo "field unload_params.param_val will be added" -! echo `date` +select now(),'field unload_params.param_val will be added' +from xdummy; alter table unload_params add ( param_val NVARCHAR(255) ); @@ -5252,8 +5564,8 @@ alter table unload_params add ( param_val NVARCHAR(255) ); <#if !fields?seq_contains("unload_params.default_val") > -! echo "field unload_params.default_val will be added" -! echo `date` +select now(),'field unload_params.default_val will be added' +from xdummy; alter table unload_params add ( default_val NVARCHAR(255) ); @@ -5262,8 +5574,8 @@ alter table unload_params add ( default_val NVARCHAR(255) ); <#if !fields?seq_contains("unload_params.description") > -! echo "field unload_params.description will be added" -! echo `date` +select now(),'field unload_params.description will be added' +from xdummy; alter table unload_params add ( description NVARCHAR(255) ); @@ -5272,18 +5584,68 @@ alter table unload_params add ( description NVARCHAR(255) ); <#if !fields?seq_contains("unload_params.systeminfo_id") > -! echo "field unload_params.systeminfo_id will be added" -! echo `date` +select now(),'field unload_params.systeminfo_id will be added' +from xdummy; alter table unload_params add ( systeminfo_id INTEGER ); +<#if !fields?seq_contains("unload_params.priority") > + + +select now(),'field unload_params.priority will be added' +from xdummy; + +alter table unload_params add ( priority INTEGER ); + + + +<#if !fields?seq_contains("unload_params.sourcesystem") > + + +select now(),'field unload_params.sourcesystem will be added' +from xdummy; + +alter table unload_params add ( sourcesystem INTEGER ); + + + +<#if !fields?seq_contains("unload_params.wertebereich") > + + +select now(),'field unload_params.wertebereich will be added' +from xdummy; + +alter table unload_params add ( wertebereich NVARCHAR(255) ); + + + +<#if !fields?seq_contains("unload_params.ab_version") > + + +select now(),'field unload_params.ab_version will be added' +from xdummy; + +alter table unload_params add ( ab_version VARCHAR(20) ); + + + +<#if !fields?seq_contains("unload_params.gruppe") > + + +select now(),'field unload_params.gruppe will be added' +from xdummy; + +alter table unload_params add ( gruppe NVARCHAR(100) ); + + + <#if !fields?seq_contains("sx_tables.tid") > -! echo "field sx_tables.tid will be added" -! echo `date` +select now(),'field sx_tables.tid will be added' +from xdummy; alter table sx_tables add ( tid SERIAL not null); @@ -5292,8 +5654,8 @@ alter table sx_tables add ( tid SERIAL not null); <#if !fields?seq_contains("sx_tables.name") > -! echo "field sx_tables.name will be added" -! echo `date` +select now(),'field sx_tables.name will be added' +from xdummy; alter table sx_tables add ( name NVARCHAR(255) ); @@ -5302,8 +5664,8 @@ alter table sx_tables add ( name NVARCHAR(255) ); <#if !fields?seq_contains("sx_tables.caption") > -! echo "field sx_tables.caption will be added" -! echo `date` +select now(),'field sx_tables.caption will be added' +from xdummy; alter table sx_tables add ( caption NVARCHAR(255) ); @@ -5312,8 +5674,8 @@ alter table sx_tables add ( caption NVARCHAR(255) ); <#if !fields?seq_contains("sx_tables.description") > -! echo "field sx_tables.description will be added" -! echo `date` +select now(),'field sx_tables.description will be added' +from xdummy; alter table sx_tables add ( description NVARCHAR(255) ); @@ -5322,8 +5684,8 @@ alter table sx_tables add ( description NVARCHAR(255) ); <#if !fields?seq_contains("sx_tables.table_type") > -! echo "field sx_tables.table_type will be added" -! echo `date` +select now(),'field sx_tables.table_type will be added' +from xdummy; alter table sx_tables add ( table_type NVARCHAR(255) ); @@ -5332,8 +5694,8 @@ alter table sx_tables add ( table_type NVARCHAR(255) ); <#if !fields?seq_contains("sx_tables.systeminfo_id") > -! echo "field sx_tables.systeminfo_id will be added" -! echo `date` +select now(),'field sx_tables.systeminfo_id will be added' +from xdummy; alter table sx_tables add ( systeminfo_id INTEGER ); @@ -5342,8 +5704,8 @@ alter table sx_tables add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("sx_tables.systeminfo_orig") > -! echo "field sx_tables.systeminfo_orig will be added" -! echo `date` +select now(),'field sx_tables.systeminfo_orig will be added' +from xdummy; alter table sx_tables add ( systeminfo_orig INTEGER ); @@ -5352,8 +5714,8 @@ alter table sx_tables add ( systeminfo_orig INTEGER ); <#if !fields?seq_contains("sx_tables.thema") > -! echo "field sx_tables.thema will be added" -! echo `date` +select now(),'field sx_tables.thema will be added' +from xdummy; alter table sx_tables add ( thema NVARCHAR(255) ); @@ -5362,8 +5724,8 @@ alter table sx_tables add ( thema NVARCHAR(255) ); <#if !fields?seq_contains("sx_tables.sachgebiete_id") > -! echo "field sx_tables.sachgebiete_id will be added" -! echo `date` +select now(),'field sx_tables.sachgebiete_id will be added' +from xdummy; alter table sx_tables add ( sachgebiete_id NVARCHAR(255) ); @@ -5372,8 +5734,8 @@ alter table sx_tables add ( sachgebiete_id NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.tid") > -! echo "field sx_fields.tid will be added" -! echo `date` +select now(),'field sx_fields.tid will be added' +from xdummy; alter table sx_fields add ( tid SERIAL not null); @@ -5382,8 +5744,8 @@ alter table sx_fields add ( tid SERIAL not null); <#if !fields?seq_contains("sx_fields.table_name") > -! echo "field sx_fields.table_name will be added" -! echo `date` +select now(),'field sx_fields.table_name will be added' +from xdummy; alter table sx_fields add ( table_name NVARCHAR(255) not null); @@ -5392,8 +5754,8 @@ alter table sx_fields add ( table_name NVARCHAR(255) not null); <#if !fields?seq_contains("sx_fields.name") > -! echo "field sx_fields.name will be added" -! echo `date` +select now(),'field sx_fields.name will be added' +from xdummy; alter table sx_fields add ( name NVARCHAR(255) not null); @@ -5402,8 +5764,8 @@ alter table sx_fields add ( name NVARCHAR(255) not null); <#if !fields?seq_contains("sx_fields.caption") > -! echo "field sx_fields.caption will be added" -! echo `date` +select now(),'field sx_fields.caption will be added' +from xdummy; alter table sx_fields add ( caption NVARCHAR(255) ); @@ -5412,8 +5774,8 @@ alter table sx_fields add ( caption NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.description") > -! echo "field sx_fields.description will be added" -! echo `date` +select now(),'field sx_fields.description will be added' +from xdummy; alter table sx_fields add ( description NVARCHAR(255) ); @@ -5422,8 +5784,8 @@ alter table sx_fields add ( description NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.field_type") > -! echo "field sx_fields.field_type will be added" -! echo `date` +select now(),'field sx_fields.field_type will be added' +from xdummy; alter table sx_fields add ( field_type NVARCHAR(255) not null); @@ -5432,8 +5794,8 @@ alter table sx_fields add ( field_type NVARCHAR(255) not null); <#if !fields?seq_contains("sx_fields.field_size") > -! echo "field sx_fields.field_size will be added" -! echo `date` +select now(),'field sx_fields.field_size will be added' +from xdummy; alter table sx_fields add ( field_size NVARCHAR(255) ); @@ -5442,8 +5804,8 @@ alter table sx_fields add ( field_size NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.field_not_null") > -! echo "field sx_fields.field_not_null will be added" -! echo `date` +select now(),'field sx_fields.field_not_null will be added' +from xdummy; alter table sx_fields add ( field_not_null SMALLINT ); @@ -5452,8 +5814,8 @@ alter table sx_fields add ( field_not_null SMALLINT ); <#if !fields?seq_contains("sx_fields.currentlyused") > -! echo "field sx_fields.currentlyused will be added" -! echo `date` +select now(),'field sx_fields.currentlyused will be added' +from xdummy; alter table sx_fields add ( currentlyused SMALLINT ); @@ -5462,8 +5824,8 @@ alter table sx_fields add ( currentlyused SMALLINT ); <#if !fields?seq_contains("sx_fields.is_primarykey") > -! echo "field sx_fields.is_primarykey will be added" -! echo `date` +select now(),'field sx_fields.is_primarykey will be added' +from xdummy; alter table sx_fields add ( is_primarykey SMALLINT default 0 ); @@ -5472,8 +5834,8 @@ alter table sx_fields add ( is_primarykey SMALLINT default 0 ); <#if !fields?seq_contains("sx_fields.foreignkey_tab") > -! echo "field sx_fields.foreignkey_tab will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_tab will be added' +from xdummy; alter table sx_fields add ( foreignkey_tab NVARCHAR(255) ); @@ -5482,8 +5844,8 @@ alter table sx_fields add ( foreignkey_tab NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.foreignkey_col") > -! echo "field sx_fields.foreignkey_col will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_col will be added' +from xdummy; alter table sx_fields add ( foreignkey_col NVARCHAR(255) ); @@ -5492,8 +5854,8 @@ alter table sx_fields add ( foreignkey_col NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.foreignkey_int") > -! echo "field sx_fields.foreignkey_int will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_int will be added' +from xdummy; alter table sx_fields add ( foreignkey_int NVARCHAR(255) ); @@ -5502,8 +5864,8 @@ alter table sx_fields add ( foreignkey_int NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.foreignkey_cap") > -! echo "field sx_fields.foreignkey_cap will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_cap will be added' +from xdummy; alter table sx_fields add ( foreignkey_cap NVARCHAR(255) ); @@ -5512,8 +5874,8 @@ alter table sx_fields add ( foreignkey_cap NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.foreignkey_cond") > -! echo "field sx_fields.foreignkey_cond will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_cond will be added' +from xdummy; alter table sx_fields add ( foreignkey_cond NVARCHAR(255) ); @@ -5522,8 +5884,8 @@ alter table sx_fields add ( foreignkey_cond NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.foreignkey_func") > -! echo "field sx_fields.foreignkey_func will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_func will be added' +from xdummy; alter table sx_fields add ( foreignkey_func NVARCHAR(255) ); @@ -5532,8 +5894,8 @@ alter table sx_fields add ( foreignkey_func NVARCHAR(255) ); <#if !fields?seq_contains("sx_fields.check_integrity") > -! echo "field sx_fields.check_integrity will be added" -! echo `date` +select now(),'field sx_fields.check_integrity will be added' +from xdummy; alter table sx_fields add ( check_integrity SMALLINT default 0 ); @@ -5542,8 +5904,8 @@ alter table sx_fields add ( check_integrity SMALLINT default 0 ); <#if !fields?seq_contains("sx_fields.is_sum") > -! echo "field sx_fields.is_sum will be added" -! echo `date` +select now(),'field sx_fields.is_sum will be added' +from xdummy; alter table sx_fields add ( is_sum SMALLINT default 1 ); @@ -5552,8 +5914,8 @@ alter table sx_fields add ( is_sum SMALLINT default 1 ); <#if !fields?seq_contains("sx_fields.foreignkey_uniquename") > -! echo "field sx_fields.foreignkey_uniquename will be added" -! echo `date` +select now(),'field sx_fields.foreignkey_uniquename will be added' +from xdummy; alter table sx_fields add ( foreignkey_uniquename NVARCHAR(255) ); @@ -5562,8 +5924,8 @@ alter table sx_fields add ( foreignkey_uniquename NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.tid") > -! echo "field dimension_bp.tid will be added" -! echo `date` +select now(),'field dimension_bp.tid will be added' +from xdummy; alter table dimension_bp add ( tid SERIAL not null); @@ -5572,8 +5934,8 @@ alter table dimension_bp add ( tid SERIAL not null); <#if !fields?seq_contains("dimension_bp.apnr") > -! echo "field dimension_bp.apnr will be added" -! echo `date` +select now(),'field dimension_bp.apnr will be added' +from xdummy; alter table dimension_bp add ( apnr NVARCHAR(255) not null); @@ -5582,8 +5944,8 @@ alter table dimension_bp add ( apnr NVARCHAR(255) not null); <#if !fields?seq_contains("dimension_bp.d_akt_von") > -! echo "field dimension_bp.d_akt_von will be added" -! echo `date` +select now(),'field dimension_bp.d_akt_von will be added' +from xdummy; alter table dimension_bp add ( d_akt_von DATE ); @@ -5592,8 +5954,8 @@ alter table dimension_bp add ( d_akt_von DATE ); <#if !fields?seq_contains("dimension_bp.d_akt_bis") > -! echo "field dimension_bp.d_akt_bis will be added" -! echo `date` +select now(),'field dimension_bp.d_akt_bis will be added' +from xdummy; alter table dimension_bp add ( d_akt_bis DATE ); @@ -5602,8 +5964,8 @@ alter table dimension_bp add ( d_akt_bis DATE ); <#if !fields?seq_contains("dimension_bp.kurz") > -! echo "field dimension_bp.kurz will be added" -! echo `date` +select now(),'field dimension_bp.kurz will be added' +from xdummy; alter table dimension_bp add ( kurz NVARCHAR(255) ); @@ -5612,8 +5974,8 @@ alter table dimension_bp add ( kurz NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.druck") > -! echo "field dimension_bp.druck will be added" -! echo `date` +select now(),'field dimension_bp.druck will be added' +from xdummy; alter table dimension_bp add ( druck NVARCHAR(255) ); @@ -5622,8 +5984,8 @@ alter table dimension_bp add ( druck NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.lang_1") > -! echo "field dimension_bp.lang_1 will be added" -! echo `date` +select now(),'field dimension_bp.lang_1 will be added' +from xdummy; alter table dimension_bp add ( lang_1 NVARCHAR(255) ); @@ -5632,8 +5994,8 @@ alter table dimension_bp add ( lang_1 NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.lang_2") > -! echo "field dimension_bp.lang_2 will be added" -! echo `date` +select now(),'field dimension_bp.lang_2 will be added' +from xdummy; alter table dimension_bp add ( lang_2 NVARCHAR(255) ); @@ -5642,8 +6004,8 @@ alter table dimension_bp add ( lang_2 NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.lang_3") > -! echo "field dimension_bp.lang_3 will be added" -! echo `date` +select now(),'field dimension_bp.lang_3 will be added' +from xdummy; alter table dimension_bp add ( lang_3 NVARCHAR(255) ); @@ -5652,8 +6014,8 @@ alter table dimension_bp add ( lang_3 NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.keyfield") > -! echo "field dimension_bp.keyfield will be added" -! echo `date` +select now(),'field dimension_bp.keyfield will be added' +from xdummy; alter table dimension_bp add ( keyfield NVARCHAR(255) ); @@ -5662,8 +6024,8 @@ alter table dimension_bp add ( keyfield NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.keyfieldtype") > -! echo "field dimension_bp.keyfieldtype will be added" -! echo `date` +select now(),'field dimension_bp.keyfieldtype will be added' +from xdummy; alter table dimension_bp add ( keyfieldtype NVARCHAR(255) ); @@ -5672,8 +6034,8 @@ alter table dimension_bp add ( keyfieldtype NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.datatype") > -! echo "field dimension_bp.datatype will be added" -! echo `date` +select now(),'field dimension_bp.datatype will be added' +from xdummy; alter table dimension_bp add ( datatype NVARCHAR(255) ); @@ -5682,8 +6044,8 @@ alter table dimension_bp add ( datatype NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.captionfield") > -! echo "field dimension_bp.captionfield will be added" -! echo `date` +select now(),'field dimension_bp.captionfield will be added' +from xdummy; alter table dimension_bp add ( captionfield NVARCHAR(255) ); @@ -5692,8 +6054,8 @@ alter table dimension_bp add ( captionfield NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.sortfield") > -! echo "field dimension_bp.sortfield will be added" -! echo `date` +select now(),'field dimension_bp.sortfield will be added' +from xdummy; alter table dimension_bp add ( sortfield NVARCHAR(255) ); @@ -5702,8 +6064,8 @@ alter table dimension_bp add ( sortfield NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.source") > -! echo "field dimension_bp.source will be added" -! echo `date` +select now(),'field dimension_bp.source will be added' +from xdummy; alter table dimension_bp add ( source NVARCHAR(255) ); @@ -5712,8 +6074,8 @@ alter table dimension_bp add ( source NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.sourcefilter") > -! echo "field dimension_bp.sourcefilter will be added" -! echo `date` +select now(),'field dimension_bp.sourcefilter will be added' +from xdummy; alter table dimension_bp add ( sourcefilter NVARCHAR(255) ); @@ -5722,8 +6084,8 @@ alter table dimension_bp add ( sourcefilter NVARCHAR(255) ); <#if !fields?seq_contains("dimension_bp.system_key") > -! echo "field dimension_bp.system_key will be added" -! echo `date` +select now(),'field dimension_bp.system_key will be added' +from xdummy; alter table dimension_bp add ( system_key NVARCHAR(255) ); @@ -5732,8 +6094,8 @@ alter table dimension_bp add ( system_key NVARCHAR(255) ); <#if !fields?seq_contains("dimension.tid") > -! echo "field dimension.tid will be added" -! echo `date` +select now(),'field dimension.tid will be added' +from xdummy; alter table dimension add ( tid SERIAL not null); @@ -5742,8 +6104,8 @@ alter table dimension add ( tid SERIAL not null); <#if !fields?seq_contains("dimension.dimension_bp_id") > -! echo "field dimension.dimension_bp_id will be added" -! echo `date` +select now(),'field dimension.dimension_bp_id will be added' +from xdummy; alter table dimension add ( dimension_bp_id INTEGER not null); @@ -5752,8 +6114,8 @@ alter table dimension add ( dimension_bp_id INTEGER not null); <#if !fields?seq_contains("dimension.fact_table") > -! echo "field dimension.fact_table will be added" -! echo `date` +select now(),'field dimension.fact_table will be added' +from xdummy; alter table dimension add ( fact_table NVARCHAR(255) ); @@ -5762,8 +6124,8 @@ alter table dimension add ( fact_table NVARCHAR(255) ); <#if !fields?seq_contains("dimension.d_akt_von") > -! echo "field dimension.d_akt_von will be added" -! echo `date` +select now(),'field dimension.d_akt_von will be added' +from xdummy; alter table dimension add ( d_akt_von DATE ); @@ -5772,8 +6134,8 @@ alter table dimension add ( d_akt_von DATE ); <#if !fields?seq_contains("dimension.d_akt_bis") > -! echo "field dimension.d_akt_bis will be added" -! echo `date` +select now(),'field dimension.d_akt_bis will be added' +from xdummy; alter table dimension add ( d_akt_bis DATE ); @@ -5782,8 +6144,8 @@ alter table dimension add ( d_akt_bis DATE ); <#if !fields?seq_contains("dimension.name") > -! echo "field dimension.name will be added" -! echo `date` +select now(),'field dimension.name will be added' +from xdummy; alter table dimension add ( name NVARCHAR(255) ); @@ -5792,8 +6154,8 @@ alter table dimension add ( name NVARCHAR(255) ); <#if !fields?seq_contains("dimension.druck") > -! echo "field dimension.druck will be added" -! echo `date` +select now(),'field dimension.druck will be added' +from xdummy; alter table dimension add ( druck NVARCHAR(255) ); @@ -5802,8 +6164,8 @@ alter table dimension add ( druck NVARCHAR(255) ); <#if !fields?seq_contains("dimension.lang_1") > -! echo "field dimension.lang_1 will be added" -! echo `date` +select now(),'field dimension.lang_1 will be added' +from xdummy; alter table dimension add ( lang_1 NVARCHAR(255) ); @@ -5812,8 +6174,8 @@ alter table dimension add ( lang_1 NVARCHAR(255) ); <#if !fields?seq_contains("dimension.lang_2") > -! echo "field dimension.lang_2 will be added" -! echo `date` +select now(),'field dimension.lang_2 will be added' +from xdummy; alter table dimension add ( lang_2 NVARCHAR(255) ); @@ -5822,8 +6184,8 @@ alter table dimension add ( lang_2 NVARCHAR(255) ); <#if !fields?seq_contains("dimension.lang_3") > -! echo "field dimension.lang_3 will be added" -! echo `date` +select now(),'field dimension.lang_3 will be added' +from xdummy; alter table dimension add ( lang_3 NVARCHAR(255) ); @@ -5832,8 +6194,8 @@ alter table dimension add ( lang_3 NVARCHAR(255) ); <#if !fields?seq_contains("dimension.sourcefilter") > -! echo "field dimension.sourcefilter will be added" -! echo `date` +select now(),'field dimension.sourcefilter will be added' +from xdummy; alter table dimension add ( sourcefilter NVARCHAR(255) ); @@ -5842,8 +6204,8 @@ alter table dimension add ( sourcefilter NVARCHAR(255) ); <#if !fields?seq_contains("dimension.system_key") > -! echo "field dimension.system_key will be added" -! echo `date` +select now(),'field dimension.system_key will be added' +from xdummy; alter table dimension add ( system_key NVARCHAR(255) ); @@ -5852,8 +6214,8 @@ alter table dimension add ( system_key NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.dimension_bp_id") > -! echo "field dim_bp_apnr.dimension_bp_id will be added" -! echo `date` +select now(),'field dim_bp_apnr.dimension_bp_id will be added' +from xdummy; alter table dim_bp_apnr add ( dimension_bp_id INTEGER not null); @@ -5862,8 +6224,8 @@ alter table dim_bp_apnr add ( dimension_bp_id INTEGER not null); <#if !fields?seq_contains("dim_bp_apnr.apnr") > -! echo "field dim_bp_apnr.apnr will be added" -! echo `date` +select now(),'field dim_bp_apnr.apnr will be added' +from xdummy; alter table dim_bp_apnr add ( apnr INTEGER not null); @@ -5872,8 +6234,8 @@ alter table dim_bp_apnr add ( apnr INTEGER not null); <#if !fields?seq_contains("dim_bp_apnr.parent") > -! echo "field dim_bp_apnr.parent will be added" -! echo `date` +select now(),'field dim_bp_apnr.parent will be added' +from xdummy; alter table dim_bp_apnr add ( parent INTEGER ); @@ -5882,8 +6244,8 @@ alter table dim_bp_apnr add ( parent INTEGER ); <#if !fields?seq_contains("dim_bp_apnr.druck") > -! echo "field dim_bp_apnr.druck will be added" -! echo `date` +select now(),'field dim_bp_apnr.druck will be added' +from xdummy; alter table dim_bp_apnr add ( druck NVARCHAR(255) ); @@ -5892,8 +6254,8 @@ alter table dim_bp_apnr add ( druck NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.systeminfo_id") > -! echo "field dim_bp_apnr.systeminfo_id will be added" -! echo `date` +select now(),'field dim_bp_apnr.systeminfo_id will be added' +from xdummy; alter table dim_bp_apnr add ( systeminfo_id INTEGER ); @@ -5902,8 +6264,8 @@ alter table dim_bp_apnr add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("dim_bp_apnr.kurztext") > -! echo "field dim_bp_apnr.kurztext will be added" -! echo `date` +select now(),'field dim_bp_apnr.kurztext will be added' +from xdummy; alter table dim_bp_apnr add ( kurztext NVARCHAR(255) ); @@ -5912,8 +6274,8 @@ alter table dim_bp_apnr add ( kurztext NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.langtext") > -! echo "field dim_bp_apnr.langtext will be added" -! echo `date` +select now(),'field dim_bp_apnr.langtext will be added' +from xdummy; alter table dim_bp_apnr add ( langtext NVARCHAR(255) ); @@ -5922,8 +6284,8 @@ alter table dim_bp_apnr add ( langtext NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.uniquename") > -! echo "field dim_bp_apnr.uniquename will be added" -! echo `date` +select now(),'field dim_bp_apnr.uniquename will be added' +from xdummy; alter table dim_bp_apnr add ( uniquename NCHAR(255) ); @@ -5932,8 +6294,8 @@ alter table dim_bp_apnr add ( uniquename NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level1_int") > -! echo "field dim_bp_apnr.level1_int will be added" -! echo `date` +select now(),'field dim_bp_apnr.level1_int will be added' +from xdummy; alter table dim_bp_apnr add ( level1_int INTEGER ); @@ -5942,8 +6304,8 @@ alter table dim_bp_apnr add ( level1_int INTEGER ); <#if !fields?seq_contains("dim_bp_apnr.level1_char") > -! echo "field dim_bp_apnr.level1_char will be added" -! echo `date` +select now(),'field dim_bp_apnr.level1_char will be added' +from xdummy; alter table dim_bp_apnr add ( level1_char NCHAR(255) ); @@ -5952,8 +6314,8 @@ alter table dim_bp_apnr add ( level1_char NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level1_str") > -! echo "field dim_bp_apnr.level1_str will be added" -! echo `date` +select now(),'field dim_bp_apnr.level1_str will be added' +from xdummy; alter table dim_bp_apnr add ( level1_str NCHAR(255) ); @@ -5962,8 +6324,8 @@ alter table dim_bp_apnr add ( level1_str NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level2_int") > -! echo "field dim_bp_apnr.level2_int will be added" -! echo `date` +select now(),'field dim_bp_apnr.level2_int will be added' +from xdummy; alter table dim_bp_apnr add ( level2_int INTEGER ); @@ -5972,8 +6334,8 @@ alter table dim_bp_apnr add ( level2_int INTEGER ); <#if !fields?seq_contains("dim_bp_apnr.level2_char") > -! echo "field dim_bp_apnr.level2_char will be added" -! echo `date` +select now(),'field dim_bp_apnr.level2_char will be added' +from xdummy; alter table dim_bp_apnr add ( level2_char NCHAR(255) ); @@ -5982,8 +6344,8 @@ alter table dim_bp_apnr add ( level2_char NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level2_str") > -! echo "field dim_bp_apnr.level2_str will be added" -! echo `date` +select now(),'field dim_bp_apnr.level2_str will be added' +from xdummy; alter table dim_bp_apnr add ( level2_str NCHAR(255) ); @@ -5992,8 +6354,8 @@ alter table dim_bp_apnr add ( level2_str NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level3_int") > -! echo "field dim_bp_apnr.level3_int will be added" -! echo `date` +select now(),'field dim_bp_apnr.level3_int will be added' +from xdummy; alter table dim_bp_apnr add ( level3_int INTEGER ); @@ -6002,8 +6364,8 @@ alter table dim_bp_apnr add ( level3_int INTEGER ); <#if !fields?seq_contains("dim_bp_apnr.level3_char") > -! echo "field dim_bp_apnr.level3_char will be added" -! echo `date` +select now(),'field dim_bp_apnr.level3_char will be added' +from xdummy; alter table dim_bp_apnr add ( level3_char NCHAR(255) ); @@ -6012,8 +6374,8 @@ alter table dim_bp_apnr add ( level3_char NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.level3_str") > -! echo "field dim_bp_apnr.level3_str will be added" -! echo `date` +select now(),'field dim_bp_apnr.level3_str will be added' +from xdummy; alter table dim_bp_apnr add ( level3_str NCHAR(255) ); @@ -6022,8 +6384,8 @@ alter table dim_bp_apnr add ( level3_str NCHAR(255) ); <#if !fields?seq_contains("dim_bp_apnr.sortorder") > -! echo "field dim_bp_apnr.sortorder will be added" -! echo `date` +select now(),'field dim_bp_apnr.sortorder will be added' +from xdummy; alter table dim_bp_apnr add ( sortorder INTEGER ); @@ -6032,8 +6394,8 @@ alter table dim_bp_apnr add ( sortorder INTEGER ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.hierarchie_id") > -! echo "field dim_bp_altsicht_apnr.hierarchie_id will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.hierarchie_id will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( hierarchie_id NVARCHAR(200) not null); @@ -6042,8 +6404,8 @@ alter table dim_bp_altsicht_apnr add ( hierarchie_id NVARCHAR(200) not null); <#if !fields?seq_contains("dim_bp_altsicht_apnr.apnrchar") > -! echo "field dim_bp_altsicht_apnr.apnrchar will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.apnrchar will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( apnrchar NVARCHAR(255) ); @@ -6052,8 +6414,8 @@ alter table dim_bp_altsicht_apnr add ( apnrchar NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.apnr") > -! echo "field dim_bp_altsicht_apnr.apnr will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.apnr will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( apnr INTEGER ); @@ -6062,8 +6424,8 @@ alter table dim_bp_altsicht_apnr add ( apnr INTEGER ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.parentchar") > -! echo "field dim_bp_altsicht_apnr.parentchar will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.parentchar will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( parentchar NVARCHAR(255) ); @@ -6072,8 +6434,8 @@ alter table dim_bp_altsicht_apnr add ( parentchar NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.parent") > -! echo "field dim_bp_altsicht_apnr.parent will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.parent will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( parent INTEGER ); @@ -6082,8 +6444,8 @@ alter table dim_bp_altsicht_apnr add ( parent INTEGER ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.druck") > -! echo "field dim_bp_altsicht_apnr.druck will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.druck will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( druck NVARCHAR(255) ); @@ -6092,8 +6454,8 @@ alter table dim_bp_altsicht_apnr add ( druck NVARCHAR(255) ); <#if !fields?seq_contains("dim_bp_altsicht_apnr.systeminfo_id") > -! echo "field dim_bp_altsicht_apnr.systeminfo_id will be added" -! echo `date` +select now(),'field dim_bp_altsicht_apnr.systeminfo_id will be added' +from xdummy; alter table dim_bp_altsicht_apnr add ( systeminfo_id INTEGER ); @@ -6102,8 +6464,8 @@ alter table dim_bp_altsicht_apnr add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("dim_closure.dimension_bp_id") > -! echo "field dim_closure.dimension_bp_id will be added" -! echo `date` +select now(),'field dim_closure.dimension_bp_id will be added' +from xdummy; alter table dim_closure add ( dimension_bp_id INTEGER ); @@ -6112,8 +6474,8 @@ alter table dim_closure add ( dimension_bp_id INTEGER ); <#if !fields?seq_contains("dim_closure.hierarchie_id") > -! echo "field dim_closure.hierarchie_id will be added" -! echo `date` +select now(),'field dim_closure.hierarchie_id will be added' +from xdummy; alter table dim_closure add ( hierarchie_id NVARCHAR(200) ); @@ -6122,8 +6484,8 @@ alter table dim_closure add ( hierarchie_id NVARCHAR(200) ); <#if !fields?seq_contains("dim_closure.key") > -! echo "field dim_closure.key will be added" -! echo `date` +select now(),'field dim_closure.key will be added' +from xdummy; alter table dim_closure add ( key INTEGER not null); @@ -6132,8 +6494,8 @@ alter table dim_closure add ( key INTEGER not null); <#if !fields?seq_contains("dim_closure.parent") > -! echo "field dim_closure.parent will be added" -! echo `date` +select now(),'field dim_closure.parent will be added' +from xdummy; alter table dim_closure add ( parent INTEGER not null); @@ -6142,8 +6504,8 @@ alter table dim_closure add ( parent INTEGER not null); <#if !fields?seq_contains("dim_closure.distance") > -! echo "field dim_closure.distance will be added" -! echo `date` +select now(),'field dim_closure.distance will be added' +from xdummy; alter table dim_closure add ( distance INTEGER ); @@ -6152,8 +6514,8 @@ alter table dim_closure add ( distance INTEGER ); <#if !fields?seq_contains("mondrian_schema.id") > -! echo "field mondrian_schema.id will be added" -! echo `date` +select now(),'field mondrian_schema.id will be added' +from xdummy; alter table mondrian_schema add ( id SERIAL ); @@ -6162,8 +6524,8 @@ alter table mondrian_schema add ( id SERIAL ); <#if !fields?seq_contains("mondrian_schema.schema") > -! echo "field mondrian_schema.schema will be added" -! echo `date` +select now(),'field mondrian_schema.schema will be added' +from xdummy; alter table mondrian_schema add ( schema TEXT ); @@ -6172,8 +6534,8 @@ alter table mondrian_schema add ( schema TEXT ); <#if !fields?seq_contains("mondrian_schema.original_schema") > -! echo "field mondrian_schema.original_schema will be added" -! echo `date` +select now(),'field mondrian_schema.original_schema will be added' +from xdummy; alter table mondrian_schema add ( original_schema TEXT ); @@ -6182,8 +6544,8 @@ alter table mondrian_schema add ( original_schema TEXT ); <#if !fields?seq_contains("mondrian_schema.customization") > -! echo "field mondrian_schema.customization will be added" -! echo `date` +select now(),'field mondrian_schema.customization will be added' +from xdummy; alter table mondrian_schema add ( customization TEXT ); @@ -6192,8 +6554,8 @@ alter table mondrian_schema add ( customization TEXT ); <#if !fields?seq_contains("mondrian_schema.created") > -! echo "field mondrian_schema.created will be added" -! echo `date` +select now(),'field mondrian_schema.created will be added' +from xdummy; alter table mondrian_schema add ( created datetime year to second ); @@ -6202,8 +6564,8 @@ alter table mondrian_schema add ( created datetime year to second ); <#if !fields?seq_contains("mondrian_schema.node") > -! echo "field mondrian_schema.node will be added" -! echo `date` +select now(),'field mondrian_schema.node will be added' +from xdummy; alter table mondrian_schema add ( node NVARCHAR(255) ); @@ -6212,8 +6574,8 @@ alter table mondrian_schema add ( node NVARCHAR(255) ); <#if !fields?seq_contains("trans_dim_bp_apnr.dimension_bp_id") > -! echo "field trans_dim_bp_apnr.dimension_bp_id will be added" -! echo `date` +select now(),'field trans_dim_bp_apnr.dimension_bp_id will be added' +from xdummy; alter table trans_dim_bp_apnr add ( dimension_bp_id INTEGER not null); @@ -6222,8 +6584,8 @@ alter table trans_dim_bp_apnr add ( dimension_bp_id INTEGER not null); <#if !fields?seq_contains("trans_dim_bp_apnr.apnr") > -! echo "field trans_dim_bp_apnr.apnr will be added" -! echo `date` +select now(),'field trans_dim_bp_apnr.apnr will be added' +from xdummy; alter table trans_dim_bp_apnr add ( apnr INTEGER not null); @@ -6232,8 +6594,8 @@ alter table trans_dim_bp_apnr add ( apnr INTEGER not null); <#if !fields?seq_contains("trans_dim_bp_apnr.sourcesystem_id") > -! echo "field trans_dim_bp_apnr.sourcesystem_id will be added" -! echo `date` +select now(),'field trans_dim_bp_apnr.sourcesystem_id will be added' +from xdummy; alter table trans_dim_bp_apnr add ( sourcesystem_id NVARCHAR(255) ); @@ -6242,8 +6604,8 @@ alter table trans_dim_bp_apnr add ( sourcesystem_id NVARCHAR(255) ); <#if !fields?seq_contains("trans_dim_bp_apnr.systeminfo_id") > -! echo "field trans_dim_bp_apnr.systeminfo_id will be added" -! echo `date` +select now(),'field trans_dim_bp_apnr.systeminfo_id will be added' +from xdummy; alter table trans_dim_bp_apnr add ( systeminfo_id INTEGER ); @@ -6252,8 +6614,8 @@ alter table trans_dim_bp_apnr add ( systeminfo_id INTEGER ); <#if !fields?seq_contains("masken_protokoll.tid") > -! echo "field masken_protokoll.tid will be added" -! echo `date` +select now(),'field masken_protokoll.tid will be added' +from xdummy; alter table masken_protokoll add ( tid SERIAL not null); @@ -6262,8 +6624,8 @@ alter table masken_protokoll add ( tid SERIAL not null); <#if !fields?seq_contains("masken_protokoll.maskeninfo_id") > -! echo "field masken_protokoll.maskeninfo_id will be added" -! echo `date` +select now(),'field masken_protokoll.maskeninfo_id will be added' +from xdummy; alter table masken_protokoll add ( maskeninfo_id INTEGER not null); @@ -6272,8 +6634,8 @@ alter table masken_protokoll add ( maskeninfo_id INTEGER not null); <#if !fields?seq_contains("masken_protokoll.user_id") > -! echo "field masken_protokoll.user_id will be added" -! echo `date` +select now(),'field masken_protokoll.user_id will be added' +from xdummy; alter table masken_protokoll add ( user_id INTEGER not null); @@ -6282,8 +6644,8 @@ alter table masken_protokoll add ( user_id INTEGER not null); <#if !fields?seq_contains("masken_protokoll.zeitpunkt") > -! echo "field masken_protokoll.zeitpunkt will be added" -! echo `date` +select now(),'field masken_protokoll.zeitpunkt will be added' +from xdummy; alter table masken_protokoll add ( zeitpunkt datetime year to second not null); @@ -6292,8 +6654,8 @@ alter table masken_protokoll add ( zeitpunkt datetime year to second not null); <#if !fields?seq_contains("masken_protokoll.kommentar") > -! echo "field masken_protokoll.kommentar will be added" -! echo `date` +select now(),'field masken_protokoll.kommentar will be added' +from xdummy; alter table masken_protokoll add ( kommentar NVARCHAR(255) ); @@ -6302,8 +6664,8 @@ alter table masken_protokoll add ( kommentar NVARCHAR(255) ); <#if !fields?seq_contains("masken_prot_feld.tid") > -! echo "field masken_prot_feld.tid will be added" -! echo `date` +select now(),'field masken_prot_feld.tid will be added' +from xdummy; alter table masken_prot_feld add ( tid SERIAL not null); @@ -6312,8 +6674,8 @@ alter table masken_prot_feld add ( tid SERIAL not null); <#if !fields?seq_contains("masken_prot_feld.protokoll_id") > -! echo "field masken_prot_feld.protokoll_id will be added" -! echo `date` +select now(),'field masken_prot_feld.protokoll_id will be added' +from xdummy; alter table masken_prot_feld add ( protokoll_id INTEGER not null); @@ -6322,8 +6684,8 @@ alter table masken_prot_feld add ( protokoll_id INTEGER not null); <#if !fields?seq_contains("masken_prot_feld.felderinfo_id") > -! echo "field masken_prot_feld.felderinfo_id will be added" -! echo `date` +select now(),'field masken_prot_feld.felderinfo_id will be added' +from xdummy; alter table masken_prot_feld add ( felderinfo_id INTEGER not null); @@ -6332,8 +6694,8 @@ alter table masken_prot_feld add ( felderinfo_id INTEGER not null); <#if !fields?seq_contains("masken_prot_feld.wert") > -! echo "field masken_prot_feld.wert will be added" -! echo `date` +select now(),'field masken_prot_feld.wert will be added' +from xdummy; alter table masken_prot_feld add ( wert NVARCHAR(255) not null); @@ -6342,8 +6704,8 @@ alter table masken_prot_feld add ( wert NVARCHAR(255) not null); <#if !fields?seq_contains("masken_prot_feld.type") > -! echo "field masken_prot_feld.type will be added" -! echo `date` +select now(),'field masken_prot_feld.type will be added' +from xdummy; alter table masken_prot_feld add ( type VARCHAR(20) not null); @@ -6352,8 +6714,8 @@ alter table masken_prot_feld add ( type VARCHAR(20) not null); <#if !fields?seq_contains("masken_prot_feld.caption") > -! echo "field masken_prot_feld.caption will be added" -! echo `date` +select now(),'field masken_prot_feld.caption will be added' +from xdummy; alter table masken_prot_feld add ( caption NVARCHAR(255) ); @@ -6362,8 +6724,8 @@ alter table masken_prot_feld add ( caption NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.tid") > -! echo "field data_upload.tid will be added" -! echo `date` +select now(),'field data_upload.tid will be added' +from xdummy; alter table data_upload add ( tid SERIAL not null); @@ -6372,8 +6734,8 @@ alter table data_upload add ( tid SERIAL not null); <#if !fields?seq_contains("data_upload.tablename") > -! echo "field data_upload.tablename will be added" -! echo `date` +select now(),'field data_upload.tablename will be added' +from xdummy; alter table data_upload add ( tablename NVARCHAR(255) not null); @@ -6382,8 +6744,8 @@ alter table data_upload add ( tablename NVARCHAR(255) not null); <#if !fields?seq_contains("data_upload.filename") > -! echo "field data_upload.filename will be added" -! echo `date` +select now(),'field data_upload.filename will be added' +from xdummy; alter table data_upload add ( filename char(255) ); @@ -6392,8 +6754,8 @@ alter table data_upload add ( filename char(255) ); <#if !fields?seq_contains("data_upload.datatype") > -! echo "field data_upload.datatype will be added" -! echo `date` +select now(),'field data_upload.datatype will be added' +from xdummy; alter table data_upload add ( datatype NVARCHAR(255) ); @@ -6402,8 +6764,8 @@ alter table data_upload add ( datatype NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.datadelimiter") > -! echo "field data_upload.datadelimiter will be added" -! echo `date` +select now(),'field data_upload.datadelimiter will be added' +from xdummy; alter table data_upload add ( datadelimiter NVARCHAR(255) ); @@ -6412,8 +6774,8 @@ alter table data_upload add ( datadelimiter NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.dataencoding") > -! echo "field data_upload.dataencoding will be added" -! echo `date` +select now(),'field data_upload.dataencoding will be added' +from xdummy; alter table data_upload add ( dataencoding NVARCHAR(255) ); @@ -6422,8 +6784,8 @@ alter table data_upload add ( dataencoding NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.withheader") > -! echo "field data_upload.withheader will be added" -! echo `date` +select now(),'field data_upload.withheader will be added' +from xdummy; alter table data_upload add ( withheader SMALLINT default 0 ); @@ -6432,8 +6794,8 @@ alter table data_upload add ( withheader SMALLINT default 0 ); <#if !fields?seq_contains("data_upload.rownumber") > -! echo "field data_upload.rownumber will be added" -! echo `date` +select now(),'field data_upload.rownumber will be added' +from xdummy; alter table data_upload add ( rownumber INTEGER ); @@ -6442,8 +6804,8 @@ alter table data_upload add ( rownumber INTEGER ); <#if !fields?seq_contains("data_upload.zipped") > -! echo "field data_upload.zipped will be added" -! echo `date` +select now(),'field data_upload.zipped will be added' +from xdummy; alter table data_upload add ( zipped SMALLINT default 0 ); @@ -6452,8 +6814,8 @@ alter table data_upload add ( zipped SMALLINT default 0 ); <#if !fields?seq_contains("data_upload.ch110_institut") > -! echo "field data_upload.ch110_institut will be added" -! echo `date` +select now(),'field data_upload.ch110_institut will be added' +from xdummy; alter table data_upload add ( ch110_institut CHAR(10) ); @@ -6462,8 +6824,8 @@ alter table data_upload add ( ch110_institut CHAR(10) ); <#if !fields?seq_contains("data_upload.submission_userid") > -! echo "field data_upload.submission_userid will be added" -! echo `date` +select now(),'field data_upload.submission_userid will be added' +from xdummy; alter table data_upload add ( submission_userid INTEGER ); @@ -6472,8 +6834,8 @@ alter table data_upload add ( submission_userid INTEGER ); <#if !fields?seq_contains("data_upload.submission_email") > -! echo "field data_upload.submission_email will be added" -! echo `date` +select now(),'field data_upload.submission_email will be added' +from xdummy; alter table data_upload add ( submission_email NVARCHAR(255) ); @@ -6482,8 +6844,8 @@ alter table data_upload add ( submission_email NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.submission_date") > -! echo "field data_upload.submission_date will be added" -! echo `date` +select now(),'field data_upload.submission_date will be added' +from xdummy; alter table data_upload add ( submission_date datetime year to second ); @@ -6492,8 +6854,8 @@ alter table data_upload add ( submission_date datetime year to second ); <#if !fields?seq_contains("data_upload.submission_mode") > -! echo "field data_upload.submission_mode will be added" -! echo `date` +select now(),'field data_upload.submission_mode will be added' +from xdummy; alter table data_upload add ( submission_mode SMALLINT ); @@ -6502,8 +6864,8 @@ alter table data_upload add ( submission_mode SMALLINT ); <#if !fields?seq_contains("data_upload.submission_comm") > -! echo "field data_upload.submission_comm will be added" -! echo `date` +select now(),'field data_upload.submission_comm will be added' +from xdummy; alter table data_upload add ( submission_comm TEXT ); @@ -6512,8 +6874,8 @@ alter table data_upload add ( submission_comm TEXT ); <#if !fields?seq_contains("data_upload.submission_noted") > -! echo "field data_upload.submission_noted will be added" -! echo `date` +select now(),'field data_upload.submission_noted will be added' +from xdummy; alter table data_upload add ( submission_noted SMALLINT default 0 ); @@ -6522,8 +6884,8 @@ alter table data_upload add ( submission_noted SMALLINT default 0 ); <#if !fields?seq_contains("data_upload.uploaded") > -! echo "field data_upload.uploaded will be added" -! echo `date` +select now(),'field data_upload.uploaded will be added' +from xdummy; alter table data_upload add ( uploaded SMALLINT default 0 ); @@ -6532,8 +6894,8 @@ alter table data_upload add ( uploaded SMALLINT default 0 ); <#if !fields?seq_contains("data_upload.processed") > -! echo "field data_upload.processed will be added" -! echo `date` +select now(),'field data_upload.processed will be added' +from xdummy; alter table data_upload add ( processed SMALLINT default 0 ); @@ -6542,8 +6904,8 @@ alter table data_upload add ( processed SMALLINT default 0 ); <#if !fields?seq_contains("data_upload.processor_email") > -! echo "field data_upload.processor_email will be added" -! echo `date` +select now(),'field data_upload.processor_email will be added' +from xdummy; alter table data_upload add ( processor_email NVARCHAR(255) ); @@ -6552,8 +6914,8 @@ alter table data_upload add ( processor_email NVARCHAR(255) ); <#if !fields?seq_contains("data_upload.processed_date") > -! echo "field data_upload.processed_date will be added" -! echo `date` +select now(),'field data_upload.processed_date will be added' +from xdummy; alter table data_upload add ( processed_date DATE ); @@ -6562,8 +6924,8 @@ alter table data_upload add ( processed_date DATE ); <#if !fields?seq_contains("data_upload.processed_noted") > -! echo "field data_upload.processed_noted will be added" -! echo `date` +select now(),'field data_upload.processed_noted will be added' +from xdummy; alter table data_upload add ( processed_noted SMALLINT default 0 ); @@ -6572,8 +6934,8 @@ alter table data_upload add ( processed_noted SMALLINT default 0 ); <#if !fields?seq_contains("update_prot.tid") > -! echo "field update_prot.tid will be added" -! echo `date` +select now(),'field update_prot.tid will be added' +from xdummy; alter table update_prot add ( tid SERIAL not null); @@ -6582,8 +6944,8 @@ alter table update_prot add ( tid SERIAL not null); <#if !fields?seq_contains("update_prot.systeminfo_id") > -! echo "field update_prot.systeminfo_id will be added" -! echo `date` +select now(),'field update_prot.systeminfo_id will be added' +from xdummy; alter table update_prot add ( systeminfo_id INTEGER default 0 not null); @@ -6592,8 +6954,8 @@ alter table update_prot add ( systeminfo_id INTEGER default 0 not null); <#if !fields?seq_contains("update_prot.update_entity") > -! echo "field update_prot.update_entity will be added" -! echo `date` +select now(),'field update_prot.update_entity will be added' +from xdummy; alter table update_prot add ( update_entity CHAR(40) ); @@ -6602,8 +6964,8 @@ alter table update_prot add ( update_entity CHAR(40) ); <#if !fields?seq_contains("update_prot.update_id") > -! echo "field update_prot.update_id will be added" -! echo `date` +select now(),'field update_prot.update_id will be added' +from xdummy; alter table update_prot add ( update_id INTEGER default 10 ); @@ -6612,8 +6974,8 @@ alter table update_prot add ( update_id INTEGER default 10 ); <#if !fields?seq_contains("update_prot.updated_at") > -! echo "field update_prot.updated_at will be added" -! echo `date` +select now(),'field update_prot.updated_at will be added' +from xdummy; alter table update_prot add ( updated_at datetime year to second ); @@ -6622,8 +6984,8 @@ alter table update_prot add ( updated_at datetime year to second ); <#if !fields?seq_contains("update_prot.update_time") > -! echo "field update_prot.update_time will be added" -! echo `date` +select now(),'field update_prot.update_time will be added' +from xdummy; alter table update_prot add ( update_time datetime year to second ); @@ -6632,8 +6994,8 @@ alter table update_prot add ( update_time datetime year to second ); <#if !fields?seq_contains("update_prot_neu.systeminfo_id") > -! echo "field update_prot_neu.systeminfo_id will be added" -! echo `date` +select now(),'field update_prot_neu.systeminfo_id will be added' +from xdummy; alter table update_prot_neu add ( systeminfo_id INTEGER default 0 not null); @@ -6642,8 +7004,8 @@ alter table update_prot_neu add ( systeminfo_id INTEGER default 0 not null); <#if !fields?seq_contains("update_prot_neu.update_entity") > -! echo "field update_prot_neu.update_entity will be added" -! echo `date` +select now(),'field update_prot_neu.update_entity will be added' +from xdummy; alter table update_prot_neu add ( update_entity CHAR(40) ); @@ -6652,8 +7014,8 @@ alter table update_prot_neu add ( update_entity CHAR(40) ); <#if !fields?seq_contains("update_prot_neu.update_id") > -! echo "field update_prot_neu.update_id will be added" -! echo `date` +select now(),'field update_prot_neu.update_id will be added' +from xdummy; alter table update_prot_neu add ( update_id INTEGER default 10 ); @@ -6662,8 +7024,8 @@ alter table update_prot_neu add ( update_id INTEGER default 10 ); <#if !fields?seq_contains("update_prot_neu.updated_at") > -! echo "field update_prot_neu.updated_at will be added" -! echo `date` +select now(),'field update_prot_neu.updated_at will be added' +from xdummy; alter table update_prot_neu add ( updated_at datetime year to second ); @@ -6672,8 +7034,8 @@ alter table update_prot_neu add ( updated_at datetime year to second ); <#if !fields?seq_contains("personattribute_neu.id") > -! echo "field personattribute_neu.id will be added" -! echo `date` +select now(),'field personattribute_neu.id will be added' +from xdummy; alter table personattribute_neu add ( id INTEGER not null); @@ -6682,8 +7044,8 @@ alter table personattribute_neu add ( id INTEGER not null); <#if !fields?seq_contains("personattribute_neu.person_id") > -! echo "field personattribute_neu.person_id will be added" -! echo `date` +select now(),'field personattribute_neu.person_id will be added' +from xdummy; alter table personattribute_neu add ( person_id INTEGER not null); @@ -6692,8 +7054,8 @@ alter table personattribute_neu add ( person_id INTEGER not null); <#if !fields?seq_contains("personattribute_neu.matrikel_nr") > -! echo "field personattribute_neu.matrikel_nr will be added" -! echo `date` +select now(),'field personattribute_neu.matrikel_nr will be added' +from xdummy; alter table personattribute_neu add ( matrikel_nr INTEGER not null); @@ -6702,8 +7064,8 @@ alter table personattribute_neu add ( matrikel_nr INTEGER not null); <#if !fields?seq_contains("personattribute_neu.systeminfo_id") > -! echo "field personattribute_neu.systeminfo_id will be added" -! echo `date` +select now(),'field personattribute_neu.systeminfo_id will be added' +from xdummy; alter table personattribute_neu add ( systeminfo_id INTEGER default 0 not null); @@ -6712,8 +7074,8 @@ alter table personattribute_neu add ( systeminfo_id INTEGER default 0 not null <#if !fields?seq_contains("personattribute_neu.personattributetype_id") > -! echo "field personattribute_neu.personattributetype_id will be added" -! echo `date` +select now(),'field personattribute_neu.personattributetype_id will be added' +from xdummy; alter table personattribute_neu add ( personattributetype_id INTEGER not null); @@ -6722,8 +7084,8 @@ alter table personattribute_neu add ( personattributetype_id INTEGER not null); <#if !fields?seq_contains("personattribute_neu.attributevalue") > -! echo "field personattribute_neu.attributevalue will be added" -! echo `date` +select now(),'field personattribute_neu.attributevalue will be added' +from xdummy; alter table personattribute_neu add ( attributevalue NVARCHAR(255) ); @@ -6732,8 +7094,8 @@ alter table personattribute_neu add ( attributevalue NVARCHAR(255) ); <#if !fields?seq_contains("personattribute_neu.valid_from") > -! echo "field personattribute_neu.valid_from will be added" -! echo `date` +select now(),'field personattribute_neu.valid_from will be added' +from xdummy; alter table personattribute_neu add ( valid_from DATE ); @@ -6742,8 +7104,8 @@ alter table personattribute_neu add ( valid_from DATE ); <#if !fields?seq_contains("personattribute_neu.valid_to") > -! echo "field personattribute_neu.valid_to will be added" -! echo `date` +select now(),'field personattribute_neu.valid_to will be added' +from xdummy; alter table personattribute_neu add ( valid_to DATE ); @@ -6752,8 +7114,8 @@ alter table personattribute_neu add ( valid_to DATE ); <#if !fields?seq_contains("personattribute_neu.semester_von") > -! echo "field personattribute_neu.semester_von will be added" -! echo `date` +select now(),'field personattribute_neu.semester_von will be added' +from xdummy; alter table personattribute_neu add ( semester_von INTEGER ); @@ -6762,8 +7124,8 @@ alter table personattribute_neu add ( semester_von INTEGER ); <#if !fields?seq_contains("personattribute_neu.semester_bis") > -! echo "field personattribute_neu.semester_bis will be added" -! echo `date` +select now(),'field personattribute_neu.semester_bis will be added' +from xdummy; alter table personattribute_neu add ( semester_bis INTEGER ); @@ -6772,8 +7134,8 @@ alter table personattribute_neu add ( semester_bis INTEGER ); <#if !fields?seq_contains("personattribute.person_id") > -! echo "field personattribute.person_id will be added" -! echo `date` +select now(),'field personattribute.person_id will be added' +from xdummy; alter table personattribute add ( person_id INTEGER not null); @@ -6782,8 +7144,8 @@ alter table personattribute add ( person_id INTEGER not null); <#if !fields?seq_contains("personattribute.matrikel_nr") > -! echo "field personattribute.matrikel_nr will be added" -! echo `date` +select now(),'field personattribute.matrikel_nr will be added' +from xdummy; alter table personattribute add ( matrikel_nr INTEGER not null); @@ -6792,8 +7154,8 @@ alter table personattribute add ( matrikel_nr INTEGER not null); <#if !fields?seq_contains("personattribute.systeminfo_id") > -! echo "field personattribute.systeminfo_id will be added" -! echo `date` +select now(),'field personattribute.systeminfo_id will be added' +from xdummy; alter table personattribute add ( systeminfo_id INTEGER default 0 not null); @@ -6802,8 +7164,8 @@ alter table personattribute add ( systeminfo_id INTEGER default 0 not null); <#if !fields?seq_contains("personattribute.personattributetype_id") > -! echo "field personattribute.personattributetype_id will be added" -! echo `date` +select now(),'field personattribute.personattributetype_id will be added' +from xdummy; alter table personattribute add ( personattributetype_id INTEGER not null); @@ -6812,8 +7174,8 @@ alter table personattribute add ( personattributetype_id INTEGER not null); <#if !fields?seq_contains("personattribute.attributevalue") > -! echo "field personattribute.attributevalue will be added" -! echo `date` +select now(),'field personattribute.attributevalue will be added' +from xdummy; alter table personattribute add ( attributevalue NVARCHAR(255) ); @@ -6822,8 +7184,8 @@ alter table personattribute add ( attributevalue NVARCHAR(255) ); <#if !fields?seq_contains("personattribute.valid_from") > -! echo "field personattribute.valid_from will be added" -! echo `date` +select now(),'field personattribute.valid_from will be added' +from xdummy; alter table personattribute add ( valid_from DATE ); @@ -6832,8 +7194,8 @@ alter table personattribute add ( valid_from DATE ); <#if !fields?seq_contains("personattribute.valid_to") > -! echo "field personattribute.valid_to will be added" -! echo `date` +select now(),'field personattribute.valid_to will be added' +from xdummy; alter table personattribute add ( valid_to DATE ); @@ -6842,8 +7204,8 @@ alter table personattribute add ( valid_to DATE ); <#if !fields?seq_contains("personattribute.semester_von") > -! echo "field personattribute.semester_von will be added" -! echo `date` +select now(),'field personattribute.semester_von will be added' +from xdummy; alter table personattribute add ( semester_von INTEGER ); @@ -6852,8 +7214,8 @@ alter table personattribute add ( semester_von INTEGER ); <#if !fields?seq_contains("personattribute.semester_bis") > -! echo "field personattribute.semester_bis will be added" -! echo `date` +select now(),'field personattribute.semester_bis will be added' +from xdummy; alter table personattribute add ( semester_bis INTEGER ); @@ -6862,8 +7224,8 @@ alter table personattribute add ( semester_bis INTEGER ); <#if !fields?seq_contains("personattributetype.personattributetype_id") > -! echo "field personattributetype.personattributetype_id will be added" -! echo `date` +select now(),'field personattributetype.personattributetype_id will be added' +from xdummy; alter table personattributetype add ( personattributetype_id INTEGER not null); @@ -6872,8 +7234,8 @@ alter table personattributetype add ( personattributetype_id INTEGER not null); <#if !fields?seq_contains("personattributetype.attributevalue") > -! echo "field personattributetype.attributevalue will be added" -! echo `date` +select now(),'field personattributetype.attributevalue will be added' +from xdummy; alter table personattributetype add ( attributevalue NVARCHAR(255) ); @@ -6882,8 +7244,8 @@ alter table personattributetype add ( attributevalue NVARCHAR(255) ); <#if !fields?seq_contains("personattribute_value_list.personattributetype_id") > -! echo "field personattribute_value_list.personattributetype_id will be added" -! echo `date` +select now(),'field personattribute_value_list.personattributetype_id will be added' +from xdummy; alter table personattribute_value_list add ( personattributetype_id INTEGER not null); @@ -6892,8 +7254,8 @@ alter table personattribute_value_list add ( personattributetype_id INTEGER not <#if !fields?seq_contains("personattribute_value_list.attributevalue") > -! echo "field personattribute_value_list.attributevalue will be added" -! echo `date` +select now(),'field personattribute_value_list.attributevalue will be added' +from xdummy; alter table personattribute_value_list add ( attributevalue NVARCHAR(255) ); @@ -6902,8 +7264,8 @@ alter table personattribute_value_list add ( attributevalue NVARCHAR(255) ); <#if !fields?seq_contains("personattribute_value_list.shorttext") > -! echo "field personattribute_value_list.shorttext will be added" -! echo `date` +select now(),'field personattribute_value_list.shorttext will be added' +from xdummy; alter table personattribute_value_list add ( shorttext NVARCHAR(255) ); @@ -6912,8 +7274,8 @@ alter table personattribute_value_list add ( shorttext NVARCHAR(255) ); <#if !fields?seq_contains("personattribute_value_list.defaulttext") > -! echo "field personattribute_value_list.defaulttext will be added" -! echo `date` +select now(),'field personattribute_value_list.defaulttext will be added' +from xdummy; alter table personattribute_value_list add ( defaulttext NVARCHAR(255) ); @@ -6922,8 +7284,8 @@ alter table personattribute_value_list add ( defaulttext NVARCHAR(255) ); <#if !fields?seq_contains("personattribute_value_list.longtext") > -! echo "field personattribute_value_list.longtext will be added" -! echo `date` +select now(),'field personattribute_value_list.longtext will be added' +from xdummy; alter table personattribute_value_list add ( longtext NVARCHAR(255) ); @@ -6932,8 +7294,8 @@ alter table personattribute_value_list add ( longtext NVARCHAR(255) ); <#if !fields?seq_contains("user_preset_values.userinfo_id") > -! echo "field user_preset_values.userinfo_id will be added" -! echo `date` +select now(),'field user_preset_values.userinfo_id will be added' +from xdummy; alter table user_preset_values add ( userinfo_id INTEGER ); @@ -6942,8 +7304,8 @@ alter table user_preset_values add ( userinfo_id INTEGER ); <#if !fields?seq_contains("user_preset_values.felderinfo_id") > -! echo "field user_preset_values.felderinfo_id will be added" -! echo `date` +select now(),'field user_preset_values.felderinfo_id will be added' +from xdummy; alter table user_preset_values add ( felderinfo_id INTEGER ); @@ -6952,8 +7314,8 @@ alter table user_preset_values add ( felderinfo_id INTEGER ); <#if !fields?seq_contains("user_preset_values.field_value") > -! echo "field user_preset_values.field_value will be added" -! echo `date` +select now(),'field user_preset_values.field_value will be added' +from xdummy; alter table user_preset_values add ( field_value NVARCHAR(255) ); @@ -6962,8 +7324,8 @@ alter table user_preset_values add ( field_value NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.tid") > -! echo "field sx_portlet.tid will be added" -! echo `date` +select now(),'field sx_portlet.tid will be added' +from xdummy; alter table sx_portlet add ( tid SERIAL not null); @@ -6972,8 +7334,8 @@ alter table sx_portlet add ( tid SERIAL not null); <#if !fields?seq_contains("sx_portlet.name") > -! echo "field sx_portlet.name will be added" -! echo `date` +select now(),'field sx_portlet.name will be added' +from xdummy; alter table sx_portlet add ( name NVARCHAR(255) ); @@ -6982,8 +7344,8 @@ alter table sx_portlet add ( name NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.type") > -! echo "field sx_portlet.type will be added" -! echo `date` +select now(),'field sx_portlet.type will be added' +from xdummy; alter table sx_portlet add ( type NVARCHAR(255) ); @@ -6992,8 +7354,8 @@ alter table sx_portlet add ( type NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.class") > -! echo "field sx_portlet.class will be added" -! echo `date` +select now(),'field sx_portlet.class will be added' +from xdummy; alter table sx_portlet add ( class NVARCHAR(255) ); @@ -7002,8 +7364,8 @@ alter table sx_portlet add ( class NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.icon") > -! echo "field sx_portlet.icon will be added" -! echo `date` +select now(),'field sx_portlet.icon will be added' +from xdummy; alter table sx_portlet add ( icon NVARCHAR(255) ); @@ -7012,8 +7374,8 @@ alter table sx_portlet add ( icon NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.content") > -! echo "field sx_portlet.content will be added" -! echo `date` +select now(),'field sx_portlet.content will be added' +from xdummy; alter table sx_portlet add ( content TEXT ); @@ -7022,8 +7384,8 @@ alter table sx_portlet add ( content TEXT ); <#if !fields?seq_contains("sx_portlet.sortnr_initial") > -! echo "field sx_portlet.sortnr_initial will be added" -! echo `date` +select now(),'field sx_portlet.sortnr_initial will be added' +from xdummy; alter table sx_portlet add ( sortnr_initial INTEGER ); @@ -7032,8 +7394,8 @@ alter table sx_portlet add ( sortnr_initial INTEGER ); <#if !fields?seq_contains("sx_portlet.visible") > -! echo "field sx_portlet.visible will be added" -! echo `date` +select now(),'field sx_portlet.visible will be added' +from xdummy; alter table sx_portlet add ( visible NVARCHAR(255) ); @@ -7042,8 +7404,8 @@ alter table sx_portlet add ( visible NVARCHAR(255) ); <#if !fields?seq_contains("sx_portlet.gueltig_von") > -! echo "field sx_portlet.gueltig_von will be added" -! echo `date` +select now(),'field sx_portlet.gueltig_von will be added' +from xdummy; alter table sx_portlet add ( gueltig_von DATE default '01.01.1900' not null); @@ -7052,8 +7414,8 @@ alter table sx_portlet add ( gueltig_von DATE default '01.01.1900' not null); <#if !fields?seq_contains("sx_portlet.gueltig_bis") > -! echo "field sx_portlet.gueltig_bis will be added" -! echo `date` +select now(),'field sx_portlet.gueltig_bis will be added' +from xdummy; alter table sx_portlet add ( gueltig_bis DATE default '01.01.3000' not null); @@ -7062,8 +7424,8 @@ alter table sx_portlet add ( gueltig_bis DATE default '01.01.3000' not null); <#if !fields?seq_contains("user_portlet_bez.userinfo_id") > -! echo "field user_portlet_bez.userinfo_id will be added" -! echo `date` +select now(),'field user_portlet_bez.userinfo_id will be added' +from xdummy; alter table user_portlet_bez add ( userinfo_id INTEGER ); @@ -7072,8 +7434,8 @@ alter table user_portlet_bez add ( userinfo_id INTEGER ); <#if !fields?seq_contains("user_portlet_bez.portlet_id") > -! echo "field user_portlet_bez.portlet_id will be added" -! echo `date` +select now(),'field user_portlet_bez.portlet_id will be added' +from xdummy; alter table user_portlet_bez add ( portlet_id INTEGER ); @@ -7082,8 +7444,8 @@ alter table user_portlet_bez add ( portlet_id INTEGER ); <#if !fields?seq_contains("group_portlet_bez.groupinfo_id") > -! echo "field group_portlet_bez.groupinfo_id will be added" -! echo `date` +select now(),'field group_portlet_bez.groupinfo_id will be added' +from xdummy; alter table group_portlet_bez add ( groupinfo_id INTEGER ); @@ -7092,238 +7454,448 @@ alter table group_portlet_bez add ( groupinfo_id INTEGER ); <#if !fields?seq_contains("group_portlet_bez.portlet_id") > -! echo "field group_portlet_bez.portlet_id will be added" -! echo `date` +select now(),'field group_portlet_bez.portlet_id will be added' +from xdummy; alter table group_portlet_bez add ( portlet_id INTEGER ); -<#if !fields?seq_contains("sieve.tid") > +<#if !fields?seq_contains("kern_cifx_neu.key") > -! echo "field sieve.tid will be added" -! echo `date` +select now(),'field kern_cifx_neu.key will be added' +from xdummy; -alter table sieve add ( tid SERIAL not null); +alter table kern_cifx_neu add ( key SMALLINT not null); -<#if !fields?seq_contains("sieve.name") > +<#if !fields?seq_contains("kern_cifx_neu.hs") > -! echo "field sieve.name will be added" -! echo `date` +select now(),'field kern_cifx_neu.hs will be added' +from xdummy; -alter table sieve add ( name NVARCHAR(255) not null); +alter table kern_cifx_neu add ( hs INTEGER not null); -<#if !fields?seq_contains("sieve.main_table") > +<#if !fields?seq_contains("kern_cifx_neu.apnr") > -! echo "field sieve.main_table will be added" -! echo `date` +select now(),'field kern_cifx_neu.apnr will be added' +from xdummy; -alter table sieve add ( main_table VARCHAR(50) not null); +alter table kern_cifx_neu add ( apnr NVARCHAR(255) ); -<#if !fields?seq_contains("sieve.order_by") > +<#if !fields?seq_contains("kern_cifx_neu.kurz") > -! echo "field sieve.order_by will be added" -! echo `date` +select now(),'field kern_cifx_neu.kurz will be added' +from xdummy; -alter table sieve add ( order_by NVARCHAR(255) ); +alter table kern_cifx_neu add ( kurz CHAR(10) ); -<#if !fields?seq_contains("sieve.sachgebiete_id") > +<#if !fields?seq_contains("kern_cifx_neu.druck") > -! echo "field sieve.sachgebiete_id will be added" -! echo `date` +select now(),'field kern_cifx_neu.druck will be added' +from xdummy; -alter table sieve add ( sachgebiete_id INTEGER not null); +alter table kern_cifx_neu add ( druck NVARCHAR(200) ); -<#if !fields?seq_contains("sieve.systeminfo_id") > +<#if !fields?seq_contains("kern_cifx_neu.lang_1") > -! echo "field sieve.systeminfo_id will be added" -! echo `date` +select now(),'field kern_cifx_neu.lang_1 will be added' +from xdummy; -alter table sieve add ( systeminfo_id INTEGER not null); +alter table kern_cifx_neu add ( lang_1 NCHAR(255) ); -<#if !fields?seq_contains("sieve.active") > +<#if !fields?seq_contains("kern_cifx_neu.astat") > -! echo "field sieve.active will be added" -! echo `date` +select now(),'field kern_cifx_neu.astat will be added' +from xdummy; -alter table sieve add ( active SMALLINT default 1 ); +alter table kern_cifx_neu add ( astat CHAR(50) ); -<#if !fields?seq_contains("sieve.hsnr") > +<#if !fields?seq_contains("kern_cifx_neu.parent") > -! echo "field sieve.hsnr will be added" -! echo `date` +select now(),'field kern_cifx_neu.parent will be added' +from xdummy; -alter table sieve add ( hsnr SMALLINT ); +alter table kern_cifx_neu add ( parent NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.tid") > +<#if !fields?seq_contains("kern_cifx_neu.uniquename") > -! echo "field sieve_column_def.tid will be added" -! echo `date` +select now(),'field kern_cifx_neu.uniquename will be added' +from xdummy; -alter table sieve_column_def add ( tid SERIAL not null); +alter table kern_cifx_neu add ( uniquename NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.m_id") > +<#if !fields?seq_contains("kern_cifx_neu.bund_apnr") > -! echo "field sieve_column_def.m_id will be added" -! echo `date` +select now(),'field kern_cifx_neu.bund_apnr will be added' +from xdummy; -alter table sieve_column_def add ( m_id NVARCHAR(255) ); +alter table kern_cifx_neu add ( bund_apnr CHAR(10) ); -<#if !fields?seq_contains("sieve_column_def.bi_table") > +<#if !fields?seq_contains("kern_cifx_neu.d_akt_von") > -! echo "field sieve_column_def.bi_table will be added" -! echo `date` +select now(),'field kern_cifx_neu.d_akt_von will be added' +from xdummy; -alter table sieve_column_def add ( bi_table NVARCHAR(255) ); +alter table kern_cifx_neu add ( d_akt_von DATE ); -<#if !fields?seq_contains("sieve_column_def.columnname") > +<#if !fields?seq_contains("kern_cifx_neu.d_akt_bis") > -! echo "field sieve_column_def.columnname will be added" -! echo `date` +select now(),'field kern_cifx_neu.d_akt_bis will be added' +from xdummy; -alter table sieve_column_def add ( columnname NVARCHAR(255) ); +alter table kern_cifx_neu add ( d_akt_bis DATE ); -<#if !fields?seq_contains("sieve_column_def.datatype") > +<#if !fields?seq_contains("kern_cifx_neu.sourcesystem_id") > -! echo "field sieve_column_def.datatype will be added" -! echo `date` +select now(),'field kern_cifx_neu.sourcesystem_id will be added' +from xdummy; -alter table sieve_column_def add ( datatype NVARCHAR(255) ); +alter table kern_cifx_neu add ( sourcesystem_id NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.caption") > +<#if !fields?seq_contains("kern_cifx_neu.hiskey_id") > -! echo "field sieve_column_def.caption will be added" -! echo `date` +select now(),'field kern_cifx_neu.hiskey_id will be added' +from xdummy; -alter table sieve_column_def add ( caption NVARCHAR(255) ); +alter table kern_cifx_neu add ( hiskey_id NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.explanation") > +<#if !fields?seq_contains("kern_cifx_neu.struktur_c") > -! echo "field sieve_column_def.explanation will be added" -! echo `date` +select now(),'field kern_cifx_neu.struktur_c will be added' +from xdummy; -alter table sieve_column_def add ( explanation NVARCHAR(255) ); +alter table kern_cifx_neu add ( struktur_c CHAR(50) ); -<#if !fields?seq_contains("sieve_column_def.xil_width") > +<#if !fields?seq_contains("kern_cifx_neu.lid") > -! echo "field sieve_column_def.xil_width will be added" -! echo `date` +select now(),'field kern_cifx_neu.lid will be added' +from xdummy; -alter table sieve_column_def add ( xil_width SMALLINT default 30 ); +alter table kern_cifx_neu add ( lid NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.lookup_tab") > +<#if !fields?seq_contains("kern_cifx_neu.parent_lid") > -! echo "field sieve_column_def.lookup_tab will be added" -! echo `date` +select now(),'field kern_cifx_neu.parent_lid will be added' +from xdummy; -alter table sieve_column_def add ( lookup_tab NVARCHAR(255) ); +alter table kern_cifx_neu add ( parent_lid NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.lookup_joinsource") > +<#if !fields?seq_contains("kern_cifx_neu.sortorder") > -! echo "field sieve_column_def.lookup_joinsource will be added" -! echo `date` +select now(),'field kern_cifx_neu.sortorder will be added' +from xdummy; -alter table sieve_column_def add ( lookup_joinsource NVARCHAR(255) ); +alter table kern_cifx_neu add ( sortorder INTEGER ); -<#if !fields?seq_contains("sieve_column_def.lookup_jointarget") > +<#if !fields?seq_contains("sieve.tid") > -! echo "field sieve_column_def.lookup_jointarget will be added" -! echo `date` +select now(),'field sieve.tid will be added' +from xdummy; -alter table sieve_column_def add ( lookup_jointarget NVARCHAR(255) ); +alter table sieve add ( tid SERIAL not null); -<#if !fields?seq_contains("sieve_column_def.lookup_target") > +<#if !fields?seq_contains("sieve.name") > -! echo "field sieve_column_def.lookup_target will be added" -! echo `date` +select now(),'field sieve.name will be added' +from xdummy; -alter table sieve_column_def add ( lookup_target NVARCHAR(255) ); +alter table sieve add ( name NVARCHAR(255) not null); -<#if !fields?seq_contains("sieve_column_def.lookup_cond") > +<#if !fields?seq_contains("sieve.main_table") > -! echo "field sieve_column_def.lookup_cond will be added" -! echo `date` +select now(),'field sieve.main_table will be added' +from xdummy; -alter table sieve_column_def add ( lookup_cond TEXT ); +alter table sieve add ( main_table VARCHAR(50) not null); -<#if !fields?seq_contains("sieve_column_def.lookup_func") > +<#if !fields?seq_contains("sieve.order_by") > -! echo "field sieve_column_def.lookup_func will be added" -! echo `date` +select now(),'field sieve.order_by will be added' +from xdummy; -alter table sieve_column_def add ( lookup_func NVARCHAR(255) ); +alter table sieve add ( order_by NVARCHAR(255) ); -<#if !fields?seq_contains("sieve_column_def.hinweis") > +<#if !fields?seq_contains("sieve.sachgebiete_id") > + + +select now(),'field sieve.sachgebiete_id will be added' +from xdummy; + +alter table sieve add ( sachgebiete_id INTEGER not null); + + + +<#if !fields?seq_contains("sieve.systeminfo_id") > + + +select now(),'field sieve.systeminfo_id will be added' +from xdummy; + +alter table sieve add ( systeminfo_id INTEGER not null); + + + +<#if !fields?seq_contains("sieve.post_processing") > + + +select now(),'field sieve.post_processing will be added' +from xdummy; + +alter table sieve add ( post_processing TEXT ); + + + +<#if !fields?seq_contains("sieve.post_insert") > + + +select now(),'field sieve.post_insert will be added' +from xdummy; + +alter table sieve add ( post_insert TEXT ); + + + +<#if !fields?seq_contains("sieve.finalize") > + + +select now(),'field sieve.finalize will be added' +from xdummy; + +alter table sieve add ( finalize TEXT ); + + + +<#if !fields?seq_contains("sieve.active") > + + +select now(),'field sieve.active will be added' +from xdummy; + +alter table sieve add ( active SMALLINT default 1 ); + + + +<#if !fields?seq_contains("sieve.hsnr") > + + +select now(),'field sieve.hsnr will be added' +from xdummy; + +alter table sieve add ( hsnr SMALLINT ); + + + +<#if !fields?seq_contains("sieve_column_def.tid") > + + +select now(),'field sieve_column_def.tid will be added' +from xdummy; + +alter table sieve_column_def add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("sieve_column_def.m_id") > + + +select now(),'field sieve_column_def.m_id will be added' +from xdummy; + +alter table sieve_column_def add ( m_id NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.bi_table") > + + +select now(),'field sieve_column_def.bi_table will be added' +from xdummy; + +alter table sieve_column_def add ( bi_table NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.columnname") > + + +select now(),'field sieve_column_def.columnname will be added' +from xdummy; + +alter table sieve_column_def add ( columnname NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.datatype") > + + +select now(),'field sieve_column_def.datatype will be added' +from xdummy; + +alter table sieve_column_def add ( datatype NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.caption") > + + +select now(),'field sieve_column_def.caption will be added' +from xdummy; + +alter table sieve_column_def add ( caption NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.explanation") > + + +select now(),'field sieve_column_def.explanation will be added' +from xdummy; + +alter table sieve_column_def add ( explanation NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.xil_width") > + + +select now(),'field sieve_column_def.xil_width will be added' +from xdummy; + +alter table sieve_column_def add ( xil_width SMALLINT default 30 ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_tab") > + + +select now(),'field sieve_column_def.lookup_tab will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_tab NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_joinsource") > + + +select now(),'field sieve_column_def.lookup_joinsource will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_joinsource NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_jointarget") > + + +select now(),'field sieve_column_def.lookup_jointarget will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_jointarget NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_target") > + + +select now(),'field sieve_column_def.lookup_target will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_target NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_cond") > + + +select now(),'field sieve_column_def.lookup_cond will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_cond NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.lookup_func") > + + +select now(),'field sieve_column_def.lookup_func will be added' +from xdummy; + +alter table sieve_column_def add ( lookup_func NVARCHAR(255) ); + + + +<#if !fields?seq_contains("sieve_column_def.hinweis") > -! echo "field sieve_column_def.hinweis will be added" -! echo `date` +select now(),'field sieve_column_def.hinweis will be added' +from xdummy; alter table sieve_column_def add ( hinweis NVARCHAR(255) ); @@ -7332,8 +7904,8 @@ alter table sieve_column_def add ( hinweis NVARCHAR(255) ); <#if !fields?seq_contains("sieve_column.tid") > -! echo "field sieve_column.tid will be added" -! echo `date` +select now(),'field sieve_column.tid will be added' +from xdummy; alter table sieve_column add ( tid SERIAL not null); @@ -7342,8 +7914,8 @@ alter table sieve_column add ( tid SERIAL not null); <#if !fields?seq_contains("sieve_column.sieve_id") > -! echo "field sieve_column.sieve_id will be added" -! echo `date` +select now(),'field sieve_column.sieve_id will be added' +from xdummy; alter table sieve_column add ( sieve_id INTEGER ); @@ -7352,8 +7924,8 @@ alter table sieve_column add ( sieve_id INTEGER ); <#if !fields?seq_contains("sieve_column.def_id") > -! echo "field sieve_column.def_id will be added" -! echo `date` +select now(),'field sieve_column.def_id will be added' +from xdummy; alter table sieve_column add ( def_id INTEGER ); @@ -7362,8 +7934,8 @@ alter table sieve_column add ( def_id INTEGER ); <#if !fields?seq_contains("sieve_column.in_output") > -! echo "field sieve_column.in_output will be added" -! echo `date` +select now(),'field sieve_column.in_output will be added' +from xdummy; alter table sieve_column add ( in_output SMALLINT default 1 ); @@ -7372,8 +7944,8 @@ alter table sieve_column add ( in_output SMALLINT default 1 ); <#if !fields?seq_contains("sieve_column.sortnr") > -! echo "field sieve_column.sortnr will be added" -! echo `date` +select now(),'field sieve_column.sortnr will be added' +from xdummy; alter table sieve_column add ( sortnr INTEGER ); @@ -7382,8 +7954,8 @@ alter table sieve_column add ( sortnr INTEGER ); <#if !fields?seq_contains("sieve_column.active") > -! echo "field sieve_column.active will be added" -! echo `date` +select now(),'field sieve_column.active will be added' +from xdummy; alter table sieve_column add ( active SMALLINT default 1 ); @@ -7392,8 +7964,8 @@ alter table sieve_column add ( active SMALLINT default 1 ); <#if !fields?seq_contains("sieve_field.tid") > -! echo "field sieve_field.tid will be added" -! echo `date` +select now(),'field sieve_field.tid will be added' +from xdummy; alter table sieve_field add ( tid SERIAL not null); @@ -7402,8 +7974,8 @@ alter table sieve_field add ( tid SERIAL not null); <#if !fields?seq_contains("sieve_field.sieve_id") > -! echo "field sieve_field.sieve_id will be added" -! echo `date` +select now(),'field sieve_field.sieve_id will be added' +from xdummy; alter table sieve_field add ( sieve_id INTEGER not null); @@ -7412,8 +7984,8 @@ alter table sieve_field add ( sieve_id INTEGER not null); <#if !fields?seq_contains("sieve_field.felderinfo_id") > -! echo "field sieve_field.felderinfo_id will be added" -! echo `date` +select now(),'field sieve_field.felderinfo_id will be added' +from xdummy; alter table sieve_field add ( felderinfo_id INTEGER not null); @@ -7422,8 +7994,8 @@ alter table sieve_field add ( felderinfo_id INTEGER not null); <#if !fields?seq_contains("sieve_field.obligatorisch") > -! echo "field sieve_field.obligatorisch will be added" -! echo `date` +select now(),'field sieve_field.obligatorisch will be added' +from xdummy; alter table sieve_field add ( obligatorisch SMALLINT not null); @@ -7432,8 +8004,8 @@ alter table sieve_field add ( obligatorisch SMALLINT not null); <#if !fields?seq_contains("sieve_field.nummer") > -! echo "field sieve_field.nummer will be added" -! echo `date` +select now(),'field sieve_field.nummer will be added' +from xdummy; alter table sieve_field add ( nummer INTEGER ); @@ -7442,8 +8014,8 @@ alter table sieve_field add ( nummer INTEGER ); <#if !fields?seq_contains("sieve_field.restriction_maintable") > -! echo "field sieve_field.restriction_maintable will be added" -! echo `date` +select now(),'field sieve_field.restriction_maintable will be added' +from xdummy; alter table sieve_field add ( restriction_maintable TEXT ); @@ -7452,8 +8024,8 @@ alter table sieve_field add ( restriction_maintable TEXT ); <#if !fields?seq_contains("sieve_field.restriction_othertable") > -! echo "field sieve_field.restriction_othertable will be added" -! echo `date` +select now(),'field sieve_field.restriction_othertable will be added' +from xdummy; alter table sieve_field add ( restriction_othertable TEXT ); @@ -7462,8 +8034,8 @@ alter table sieve_field add ( restriction_othertable TEXT ); <#if !fields?seq_contains("sieve_field.active") > -! echo "field sieve_field.active will be added" -! echo `date` +select now(),'field sieve_field.active will be added' +from xdummy; alter table sieve_field add ( active SMALLINT default 1 ); @@ -7472,8 +8044,8 @@ alter table sieve_field add ( active SMALLINT default 1 ); <#if !fields?seq_contains("sx_jobs.tid") > -! echo "field sx_jobs.tid will be added" -! echo `date` +select now(),'field sx_jobs.tid will be added' +from xdummy; alter table sx_jobs add ( tid SERIAL not null); @@ -7482,8 +8054,8 @@ alter table sx_jobs add ( tid SERIAL not null); <#if !fields?seq_contains("sx_jobs.uniquename") > -! echo "field sx_jobs.uniquename will be added" -! echo `date` +select now(),'field sx_jobs.uniquename will be added' +from xdummy; alter table sx_jobs add ( uniquename NVARCHAR(255) ); @@ -7492,8 +8064,8 @@ alter table sx_jobs add ( uniquename NVARCHAR(255) ); <#if !fields?seq_contains("sx_jobs.caption") > -! echo "field sx_jobs.caption will be added" -! echo `date` +select now(),'field sx_jobs.caption will be added' +from xdummy; alter table sx_jobs add ( caption NVARCHAR(255) ); @@ -7502,8 +8074,8 @@ alter table sx_jobs add ( caption NVARCHAR(255) ); <#if !fields?seq_contains("sx_jobs.filepath") > -! echo "field sx_jobs.filepath will be added" -! echo `date` +select now(),'field sx_jobs.filepath will be added' +from xdummy; alter table sx_jobs add ( filepath NVARCHAR(255) not null); @@ -7512,8 +8084,8 @@ alter table sx_jobs add ( filepath NVARCHAR(255) not null); <#if !fields?seq_contains("sx_jobs.sachgebiete_id") > -! echo "field sx_jobs.sachgebiete_id will be added" -! echo `date` +select now(),'field sx_jobs.sachgebiete_id will be added' +from xdummy; alter table sx_jobs add ( sachgebiete_id INTEGER default 0 not null); @@ -7522,8 +8094,8 @@ alter table sx_jobs add ( sachgebiete_id INTEGER default 0 not null); <#if !fields?seq_contains("sx_jobs.kenn_profil") > -! echo "field sx_jobs.kenn_profil will be added" -! echo `date` +select now(),'field sx_jobs.kenn_profil will be added' +from xdummy; alter table sx_jobs add ( kenn_profil INTEGER ); @@ -7532,8 +8104,8 @@ alter table sx_jobs add ( kenn_profil INTEGER ); <#if !fields?seq_contains("sx_jobs.hs_nr") > -! echo "field sx_jobs.hs_nr will be added" -! echo `date` +select now(),'field sx_jobs.hs_nr will be added' +from xdummy; alter table sx_jobs add ( hs_nr INTEGER ); @@ -7542,8 +8114,8 @@ alter table sx_jobs add ( hs_nr INTEGER ); <#if !fields?seq_contains("sx_jobs.modus_supported") > -! echo "field sx_jobs.modus_supported will be added" -! echo `date` +select now(),'field sx_jobs.modus_supported will be added' +from xdummy; alter table sx_jobs add ( modus_supported SMALLINT default 0 ); @@ -7552,8 +8124,8 @@ alter table sx_jobs add ( modus_supported SMALLINT default 0 ); <#if !fields?seq_contains("sx_jobs.params") > -! echo "field sx_jobs.params will be added" -! echo `date` +select now(),'field sx_jobs.params will be added' +from xdummy; alter table sx_jobs add ( params NVARCHAR(255) ); @@ -7562,18 +8134,1138 @@ alter table sx_jobs add ( params NVARCHAR(255) ); <#if !fields?seq_contains("sx_jobs.check_sql") > -! echo "field sx_jobs.check_sql will be added" -! echo `date` +select now(),'field sx_jobs.check_sql will be added' +from xdummy; alter table sx_jobs add ( check_sql TEXT ); +<#if !fields?seq_contains("orgunit_mapping.apnr") > + + +select now(),'field orgunit_mapping.apnr will be added' +from xdummy; + +alter table orgunit_mapping add ( apnr NVARCHAR(255) ); + + + +<#if !fields?seq_contains("orgunit_mapping.mapped_id") > + + +select now(),'field orgunit_mapping.mapped_id will be added' +from xdummy; + +alter table orgunit_mapping add ( mapped_id NVARCHAR(255) ); + + + +<#if !fields?seq_contains("orgunit_mapping.uniquename") > + + +select now(),'field orgunit_mapping.uniquename will be added' +from xdummy; + +alter table orgunit_mapping add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("orgunit_mapping.lid") > + + +select now(),'field orgunit_mapping.lid will be added' +from xdummy; + +alter table orgunit_mapping add ( lid NVARCHAR(255) ); + + + +<#if !fields?seq_contains("implicit_orgunit_rights.userinfo_id") > + + +select now(),'field implicit_orgunit_rights.userinfo_id will be added' +from xdummy; + +alter table implicit_orgunit_rights add ( userinfo_id INTEGER ); + + + +<#if !fields?seq_contains("implicit_orgunit_rights.apnr") > + + +select now(),'field implicit_orgunit_rights.apnr will be added' +from xdummy; + +alter table implicit_orgunit_rights add ( apnr NVARCHAR(255) ); + + + +<#if !fields?seq_contains("implicit_orgunit_rights.uniquename") > + + +select now(),'field implicit_orgunit_rights.uniquename will be added' +from xdummy; + +alter table implicit_orgunit_rights add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("implicit_orgunit_rights.lid") > + + +select now(),'field implicit_orgunit_rights.lid will be added' +from xdummy; + +alter table implicit_orgunit_rights add ( lid NVARCHAR(255) ); + + + +<#if !fields?seq_contains("kern_pruefrout.tid") > + + +select now(),'field kern_pruefrout.tid will be added' +from xdummy; + +alter table kern_pruefrout add ( tid SERIAL ); + + + +<#if !fields?seq_contains("kern_pruefrout.datum") > + + +select now(),'field kern_pruefrout.datum will be added' +from xdummy; + +alter table kern_pruefrout add ( datum DATE ); + + + +<#if !fields?seq_contains("kern_pruefrout.gueltig_von") > + + +select now(),'field kern_pruefrout.gueltig_von will be added' +from xdummy; + +alter table kern_pruefrout add ( gueltig_von DATE ); + + + +<#if !fields?seq_contains("kern_pruefrout.gueltig_bis") > + + +select now(),'field kern_pruefrout.gueltig_bis will be added' +from xdummy; + +alter table kern_pruefrout add ( gueltig_bis DATE ); + + + +<#if !fields?seq_contains("kern_pruefrout.tabelle_quelle") > + + +select now(),'field kern_pruefrout.tabelle_quelle will be added' +from xdummy; + +alter table kern_pruefrout add ( tabelle_quelle CHAR(18) ); + + + +<#if !fields?seq_contains("kern_pruefrout.tabelle") > + + +select now(),'field kern_pruefrout.tabelle will be added' +from xdummy; + +alter table kern_pruefrout add ( tabelle CHAR(18) ); + + + +<#if !fields?seq_contains("kern_pruefrout.problem") > + + +select now(),'field kern_pruefrout.problem will be added' +from xdummy; + +alter table kern_pruefrout add ( problem NCHAR(255) ); + + + +<#if !fields?seq_contains("kern_pruefrout.aktion") > + + +select now(),'field kern_pruefrout.aktion will be added' +from xdummy; + +alter table kern_pruefrout add ( aktion NCHAR(255) ); + + + +<#if !fields?seq_contains("masken_statistik.id") > + + +select now(),'field masken_statistik.id will be added' +from xdummy; + +alter table masken_statistik add ( id SERIAL not null); + + + +<#if !fields?seq_contains("masken_statistik.tid") > + + +select now(),'field masken_statistik.tid will be added' +from xdummy; + +alter table masken_statistik add ( tid INTEGER not null); + + + +<#if !fields?seq_contains("masken_statistik.counter") > + + +select now(),'field masken_statistik.counter will be added' +from xdummy; + +alter table masken_statistik add ( counter INTEGER ); + + + +<#if !fields?seq_contains("masken_statistik.first_call") > + + +select now(),'field masken_statistik.first_call will be added' +from xdummy; + +alter table masken_statistik add ( first_call DATE ); + + + +<#if !fields?seq_contains("masken_statistik.last_call") > + + +select now(),'field masken_statistik.last_call will be added' +from xdummy; + +alter table masken_statistik add ( last_call DATE ); + + + +<#if !fields?seq_contains("dim_datum.id") > + + +select now(),'field dim_datum.id will be added' +from xdummy; + +alter table dim_datum add ( id INTEGER not null); + + + +<#if !fields?seq_contains("dim_datum.year") > + + +select now(),'field dim_datum.year will be added' +from xdummy; + +alter table dim_datum add ( year INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.month") > + + +select now(),'field dim_datum.month will be added' +from xdummy; + +alter table dim_datum add ( month INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.day_of_month") > + + +select now(),'field dim_datum.day_of_month will be added' +from xdummy; + +alter table dim_datum add ( day_of_month INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.day_of_week") > + + +select now(),'field dim_datum.day_of_week will be added' +from xdummy; + +alter table dim_datum add ( day_of_week INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.day_of_year") > + + +select now(),'field dim_datum.day_of_year will be added' +from xdummy; + +alter table dim_datum add ( day_of_year INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.week_of_year") > + + +select now(),'field dim_datum.week_of_year will be added' +from xdummy; + +alter table dim_datum add ( week_of_year INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.day_name") > + + +select now(),'field dim_datum.day_name will be added' +from xdummy; + +alter table dim_datum add ( day_name VARCHAR(25) ); + + + +<#if !fields?seq_contains("dim_datum.month_name") > + + +select now(),'field dim_datum.month_name will be added' +from xdummy; + +alter table dim_datum add ( month_name VARCHAR(25) ); + + + +<#if !fields?seq_contains("dim_datum.quarter") > + + +select now(),'field dim_datum.quarter will be added' +from xdummy; + +alter table dim_datum add ( quarter INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.weekend_ind") > + + +select now(),'field dim_datum.weekend_ind will be added' +from xdummy; + +alter table dim_datum add ( weekend_ind CHAR(1) ); + + + +<#if !fields?seq_contains("dim_datum.days_in_month") > + + +select now(),'field dim_datum.days_in_month will be added' +from xdummy; + +alter table dim_datum add ( days_in_month INTEGER ); + + + +<#if !fields?seq_contains("dim_datum.day_desc") > + + +select now(),'field dim_datum.day_desc will be added' +from xdummy; + +alter table dim_datum add ( day_desc VARCHAR(25) ); + + + +<#if !fields?seq_contains("dim_datum.day_date") > + + +select now(),'field dim_datum.day_date will be added' +from xdummy; + +alter table dim_datum add ( day_date DATE ); + + + +<#if !fields?seq_contains("dim_datum.semester") > + + +select now(),'field dim_datum.semester will be added' +from xdummy; + +alter table dim_datum add ( semester VARCHAR(25) ); + + + +<#if !fields?seq_contains("dim_datum.semester_key") > + + +select now(),'field dim_datum.semester_key will be added' +from xdummy; + +alter table dim_datum add ( semester_key INTEGER ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.person_id") > + + +select now(),'field hisinone_deleted_entity.person_id will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( person_id INTEGER ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.matrikel_nr") > + + +select now(),'field hisinone_deleted_entity.matrikel_nr will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( matrikel_nr INTEGER ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.entity") > + + +select now(),'field hisinone_deleted_entity.entity will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( entity NVARCHAR(255) ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.deleted_in_hisinone") > + + +select now(),'field hisinone_deleted_entity.deleted_in_hisinone will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( deleted_in_hisinone datetime year to second ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.deleted_in_bi") > + + +select now(),'field hisinone_deleted_entity.deleted_in_bi will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( deleted_in_bi datetime year to second ); + + + +<#if !fields?seq_contains("hisinone_deleted_entity.job") > + + +select now(),'field hisinone_deleted_entity.job will be added' +from xdummy; + +alter table hisinone_deleted_entity add ( job NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step.tid") > + + +select now(),'field etl_step.tid will be added' +from xdummy; + +alter table etl_step add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_step.uniquename") > + + +select now(),'field etl_step.uniquename will be added' +from xdummy; + +alter table etl_step add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("etl_step.caption") > + + +select now(),'field etl_step.caption will be added' +from xdummy; + +alter table etl_step add ( caption NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step.systeminfo_id") > + + +select now(),'field etl_step.systeminfo_id will be added' +from xdummy; + +alter table etl_step add ( systeminfo_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step.step_type_id") > + + +select now(),'field etl_step.step_type_id will be added' +from xdummy; + +alter table etl_step add ( step_type_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step.logfile") > + + +select now(),'field etl_step.logfile will be added' +from xdummy; + +alter table etl_step add ( logfile NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step.custom_step") > + + +select now(),'field etl_step.custom_step will be added' +from xdummy; + +alter table etl_step add ( custom_step SMALLINT default 1 ); + + + +<#if !fields?seq_contains("etl_step_type.tid") > + + +select now(),'field etl_step_type.tid will be added' +from xdummy; + +alter table etl_step_type add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_step_type.uniquename") > + + +select now(),'field etl_step_type.uniquename will be added' +from xdummy; + +alter table etl_step_type add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("etl_step_type.caption") > + + +select now(),'field etl_step_type.caption will be added' +from xdummy; + +alter table etl_step_type add ( caption NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step_type.handler") > + + +select now(),'field etl_step_type.handler will be added' +from xdummy; + +alter table etl_step_type add ( handler NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step_type_param.tid") > + + +select now(),'field etl_step_type_param.tid will be added' +from xdummy; + +alter table etl_step_type_param add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_step_type_param.etl_step_type_id") > + + +select now(),'field etl_step_type_param.etl_step_type_id will be added' +from xdummy; + +alter table etl_step_type_param add ( etl_step_type_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step_type_param.uniquename") > + + +select now(),'field etl_step_type_param.uniquename will be added' +from xdummy; + +alter table etl_step_type_param add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("etl_step_type_param.name") > + + +select now(),'field etl_step_type_param.name will be added' +from xdummy; + +alter table etl_step_type_param add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step_type_param.param_default") > + + +select now(),'field etl_step_type_param.param_default will be added' +from xdummy; + +alter table etl_step_type_param add ( param_default NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step_property.tid") > + + +select now(),'field etl_step_property.tid will be added' +from xdummy; + +alter table etl_step_property add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_step_property.etl_step_id") > + + +select now(),'field etl_step_property.etl_step_id will be added' +from xdummy; + +alter table etl_step_property add ( etl_step_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step_property.prop_name") > + + +select now(),'field etl_step_property.prop_name will be added' +from xdummy; + +alter table etl_step_property add ( prop_name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_step_property.prop_value") > + + +select now(),'field etl_step_property.prop_value will be added' +from xdummy; + +alter table etl_step_property add ( prop_value TEXT ); + + + +<#if !fields?seq_contains("etl_step_relation.tid") > + + +select now(),'field etl_step_relation.tid will be added' +from xdummy; + +alter table etl_step_relation add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_step_relation.step_id") > + + +select now(),'field etl_step_relation.step_id will be added' +from xdummy; + +alter table etl_step_relation add ( step_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step_relation.parent_step_id") > + + +select now(),'field etl_step_relation.parent_step_id will be added' +from xdummy; + +alter table etl_step_relation add ( parent_step_id INTEGER ); + + + +<#if !fields?seq_contains("etl_step_relation.job_id") > + + +select now(),'field etl_step_relation.job_id will be added' +from xdummy; + +alter table etl_step_relation add ( job_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_step_relation.force_continue") > + + +select now(),'field etl_step_relation.force_continue will be added' +from xdummy; + +alter table etl_step_relation add ( force_continue SMALLINT default 1 ); + + + +<#if !fields?seq_contains("etl_step_relation.step_active") > + + +select now(),'field etl_step_relation.step_active will be added' +from xdummy; + +alter table etl_step_relation add ( step_active SMALLINT default 1 ); + + + +<#if !fields?seq_contains("etl_step_relation.sortnr") > + + +select now(),'field etl_step_relation.sortnr will be added' +from xdummy; + +alter table etl_step_relation add ( sortnr INTEGER default 1 ); + + + +<#if !fields?seq_contains("etl_step_relation.custom_step") > + + +select now(),'field etl_step_relation.custom_step will be added' +from xdummy; + +alter table etl_step_relation add ( custom_step SMALLINT default 1 ); + + + +<#if !fields?seq_contains("etl_job.tid") > + + +select now(),'field etl_job.tid will be added' +from xdummy; + +alter table etl_job add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_job.uniquename") > + + +select now(),'field etl_job.uniquename will be added' +from xdummy; + +alter table etl_job add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("etl_job.caption") > + + +select now(),'field etl_job.caption will be added' +from xdummy; + +alter table etl_job add ( caption NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_job.systeminfo_id") > + + +select now(),'field etl_job.systeminfo_id will be added' +from xdummy; + +alter table etl_job add ( systeminfo_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_job.logfile") > + + +select now(),'field etl_job.logfile will be added' +from xdummy; + +alter table etl_job add ( logfile NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_job.custom_job") > + + +select now(),'field etl_job.custom_job will be added' +from xdummy; + +alter table etl_job add ( custom_job SMALLINT default 1 ); + + + +<#if !fields?seq_contains("etl_job_param.tid") > + + +select now(),'field etl_job_param.tid will be added' +from xdummy; + +alter table etl_job_param add ( tid SERIAL not null); + + + +<#if !fields?seq_contains("etl_job_param.etl_job_id") > + + +select now(),'field etl_job_param.etl_job_id will be added' +from xdummy; + +alter table etl_job_param add ( etl_job_id INTEGER not null); + + + +<#if !fields?seq_contains("etl_job_param.uniquename") > + + +select now(),'field etl_job_param.uniquename will be added' +from xdummy; + +alter table etl_job_param add ( uniquename NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("etl_job_param.name") > + + +select now(),'field etl_job_param.name will be added' +from xdummy; + +alter table etl_job_param add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("etl_job_param.param_default") > + + +select now(),'field etl_job_param.param_default will be added' +from xdummy; + +alter table etl_job_param add ( param_default NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.schluessel") > + + +select now(),'field k_astat_studienfach_land.schluessel will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( schluessel NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.gueltig_ab") > + + +select now(),'field k_astat_studienfach_land.gueltig_ab will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( gueltig_ab INTEGER ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.land") > + + +select now(),'field k_astat_studienfach_land.land will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( land INTEGER ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.version") > + + +select now(),'field k_astat_studienfach_land.version will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( version INTEGER ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.sortkey") > + + +select now(),'field k_astat_studienfach_land.sortkey will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( sortkey INTEGER ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.gueltig_bis") > + + +select now(),'field k_astat_studienfach_land.gueltig_bis will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( gueltig_bis INTEGER ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.name") > + + +select now(),'field k_astat_studienfach_land.name will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.isced") > + + +select now(),'field k_astat_studienfach_land.isced will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( isced NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach_land.keybund") > + + +select now(),'field k_astat_studienfach_land.keybund will be added' +from xdummy; + +alter table k_astat_studienfach_land add ( keybund NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.schluessel") > + + +select now(),'field k_astat_abschluss3steller_land.schluessel will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( schluessel NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.gueltig_ab") > + + +select now(),'field k_astat_abschluss3steller_land.gueltig_ab will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( gueltig_ab INTEGER ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.land") > + + +select now(),'field k_astat_abschluss3steller_land.land will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( land INTEGER ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.version") > + + +select now(),'field k_astat_abschluss3steller_land.version will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( version INTEGER ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.sortkey") > + + +select now(),'field k_astat_abschluss3steller_land.sortkey will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( sortkey INTEGER ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.gueltig_bis") > + + +select now(),'field k_astat_abschluss3steller_land.gueltig_bis will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( gueltig_bis INTEGER ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.name") > + + +select now(),'field k_astat_abschluss3steller_land.name will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.sig2steller") > + + +select now(),'field k_astat_abschluss3steller_land.sig2steller will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( sig2steller NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_abschluss3steller_land.keybund") > + + +select now(),'field k_astat_abschluss3steller_land.keybund will be added' +from xdummy; + +alter table k_astat_abschluss3steller_land add ( keybund NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_abschluss2steller.schluessel") > + + +select now(),'field k_astat_abschluss2steller.schluessel will be added' +from xdummy; + +alter table k_astat_abschluss2steller add ( schluessel NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("k_astat_abschluss2steller.name") > + + +select now(),'field k_astat_abschluss2steller.name will be added' +from xdummy; + +alter table k_astat_abschluss2steller add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienbereich.schluessel") > + + +select now(),'field k_astat_studienbereich.schluessel will be added' +from xdummy; + +alter table k_astat_studienbereich add ( schluessel NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("k_astat_studienbereich.name") > + + +select now(),'field k_astat_studienbereich.name will be added' +from xdummy; + +alter table k_astat_studienbereich add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienbereich.fgr") > + + +select now(),'field k_astat_studienbereich.fgr will be added' +from xdummy; + +alter table k_astat_studienbereich add ( fgr NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach.schluessel") > + + +select now(),'field k_astat_studienfach.schluessel will be added' +from xdummy; + +alter table k_astat_studienfach add ( schluessel NVARCHAR(255) not null); + + + +<#if !fields?seq_contains("k_astat_studienfach.name") > + + +select now(),'field k_astat_studienfach.name will be added' +from xdummy; + +alter table k_astat_studienfach add ( name NVARCHAR(255) ); + + + +<#if !fields?seq_contains("k_astat_studienfach.sb") > + + +select now(),'field k_astat_studienfach.sb will be added' +from xdummy; + +alter table k_astat_studienfach add ( sb NVARCHAR(255) ); + + + +<#if !fields?seq_contains("colorscheme.id") > + + +select now(),'field colorscheme.id will be added' +from xdummy; + +alter table colorscheme add ( id SERIAL not null); + + + +<#if !fields?seq_contains("colorscheme.caption") > + + +select now(),'field colorscheme.caption will be added' +from xdummy; + +alter table colorscheme add ( caption NVARCHAR(255) ); + + + +<#if !fields?seq_contains("colorscheme.sortorder") > + + +select now(),'field colorscheme.sortorder will be added' +from xdummy; + +alter table colorscheme add ( sortorder INTEGER ); + + + +<#if !fields?seq_contains("colorscheme.colors") > + + +select now(),'field colorscheme.colors will be added' +from xdummy; + +alter table colorscheme add ( colors NVARCHAR(255) ); + + + <#if !fields?seq_contains("sx_mail.tid") > -! echo "field sx_mail.tid will be added" -! echo `date` +select now(),'field sx_mail.tid will be added' +from xdummy; alter table sx_mail add ( tid SERIAL not null); @@ -7582,8 +9274,8 @@ alter table sx_mail add ( tid SERIAL not null); <#if !fields?seq_contains("sx_mail.pop3_host") > -! echo "field sx_mail.pop3_host will be added" -! echo `date` +select now(),'field sx_mail.pop3_host will be added' +from xdummy; alter table sx_mail add ( pop3_host NVARCHAR(255) ); @@ -7592,8 +9284,8 @@ alter table sx_mail add ( pop3_host NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.pop3_port") > -! echo "field sx_mail.pop3_port will be added" -! echo `date` +select now(),'field sx_mail.pop3_port will be added' +from xdummy; alter table sx_mail add ( pop3_port SMALLINT ); @@ -7602,8 +9294,8 @@ alter table sx_mail add ( pop3_port SMALLINT ); <#if !fields?seq_contains("sx_mail.pop3_starttls_enable") > -! echo "field sx_mail.pop3_starttls_enable will be added" -! echo `date` +select now(),'field sx_mail.pop3_starttls_enable will be added' +from xdummy; alter table sx_mail add ( pop3_starttls_enable SMALLINT ); @@ -7612,8 +9304,8 @@ alter table sx_mail add ( pop3_starttls_enable SMALLINT ); <#if !fields?seq_contains("sx_mail.smtp_host") > -! echo "field sx_mail.smtp_host will be added" -! echo `date` +select now(),'field sx_mail.smtp_host will be added' +from xdummy; alter table sx_mail add ( smtp_host NVARCHAR(255) ); @@ -7622,8 +9314,8 @@ alter table sx_mail add ( smtp_host NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.smtp_port") > -! echo "field sx_mail.smtp_port will be added" -! echo `date` +select now(),'field sx_mail.smtp_port will be added' +from xdummy; alter table sx_mail add ( smtp_port SMALLINT ); @@ -7632,8 +9324,8 @@ alter table sx_mail add ( smtp_port SMALLINT ); <#if !fields?seq_contains("sx_mail.smtp_auth") > -! echo "field sx_mail.smtp_auth will be added" -! echo `date` +select now(),'field sx_mail.smtp_auth will be added' +from xdummy; alter table sx_mail add ( smtp_auth SMALLINT ); @@ -7642,8 +9334,8 @@ alter table sx_mail add ( smtp_auth SMALLINT ); <#if !fields?seq_contains("sx_mail.smtp_starttls_enable") > -! echo "field sx_mail.smtp_starttls_enable will be added" -! echo `date` +select now(),'field sx_mail.smtp_starttls_enable will be added' +from xdummy; alter table sx_mail add ( smtp_starttls_enable SMALLINT ); @@ -7652,8 +9344,8 @@ alter table sx_mail add ( smtp_starttls_enable SMALLINT ); <#if !fields?seq_contains("sx_mail.username") > -! echo "field sx_mail.username will be added" -! echo `date` +select now(),'field sx_mail.username will be added' +from xdummy; alter table sx_mail add ( username NVARCHAR(255) ); @@ -7662,8 +9354,8 @@ alter table sx_mail add ( username NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.password") > -! echo "field sx_mail.password will be added" -! echo `date` +select now(),'field sx_mail.password will be added' +from xdummy; alter table sx_mail add ( password NVARCHAR(255) ); @@ -7672,8 +9364,8 @@ alter table sx_mail add ( password NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.userinfo_id") > -! echo "field sx_mail.userinfo_id will be added" -! echo `date` +select now(),'field sx_mail.userinfo_id will be added' +from xdummy; alter table sx_mail add ( userinfo_id INTEGER ); @@ -7682,8 +9374,8 @@ alter table sx_mail add ( userinfo_id INTEGER ); <#if !fields?seq_contains("sx_mail.type") > -! echo "field sx_mail.type will be added" -! echo `date` +select now(),'field sx_mail.type will be added' +from xdummy; alter table sx_mail add ( type NVARCHAR(255) ); @@ -7692,8 +9384,8 @@ alter table sx_mail add ( type NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.daemon1") > -! echo "field sx_mail.daemon1 will be added" -! echo `date` +select now(),'field sx_mail.daemon1 will be added' +from xdummy; alter table sx_mail add ( daemon1 NVARCHAR(255) ); @@ -7702,8 +9394,8 @@ alter table sx_mail add ( daemon1 NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.daemon1_interval") > -! echo "field sx_mail.daemon1_interval will be added" -! echo `date` +select now(),'field sx_mail.daemon1_interval will be added' +from xdummy; alter table sx_mail add ( daemon1_interval INTEGER ); @@ -7712,8 +9404,8 @@ alter table sx_mail add ( daemon1_interval INTEGER ); <#if !fields?seq_contains("sx_mail.daemon1_loglevel") > -! echo "field sx_mail.daemon1_loglevel will be added" -! echo `date` +select now(),'field sx_mail.daemon1_loglevel will be added' +from xdummy; alter table sx_mail add ( daemon1_loglevel NVARCHAR(255) ); @@ -7722,8 +9414,8 @@ alter table sx_mail add ( daemon1_loglevel NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.daemon2") > -! echo "field sx_mail.daemon2 will be added" -! echo `date` +select now(),'field sx_mail.daemon2 will be added' +from xdummy; alter table sx_mail add ( daemon2 NVARCHAR(255) ); @@ -7732,8 +9424,8 @@ alter table sx_mail add ( daemon2 NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.daemon2_interval") > -! echo "field sx_mail.daemon2_interval will be added" -! echo `date` +select now(),'field sx_mail.daemon2_interval will be added' +from xdummy; alter table sx_mail add ( daemon2_interval INTEGER ); @@ -7742,8 +9434,8 @@ alter table sx_mail add ( daemon2_interval INTEGER ); <#if !fields?seq_contains("sx_mail.daemon3") > -! echo "field sx_mail.daemon3 will be added" -! echo `date` +select now(),'field sx_mail.daemon3 will be added' +from xdummy; alter table sx_mail add ( daemon3 NVARCHAR(255) ); @@ -7752,8 +9444,8 @@ alter table sx_mail add ( daemon3 NVARCHAR(255) ); <#if !fields?seq_contains("sx_mail.daemon3_interval") > -! echo "field sx_mail.daemon3_interval will be added" -! echo `date` +select now(),'field sx_mail.daemon3_interval will be added' +from xdummy; alter table sx_mail add ( daemon3_interval INTEGER ); diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_pg.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_pg.sql index 41b5f98..f139e9f 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_pg.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_fields_pg.sql @@ -3156,7 +3156,7 @@ alter table dbconnections add column testsql VARCHAR(255) ; select now(),'field organigramm.tid will be added' from xdummy; -alter table organigramm add column tid INTEGER not null; +alter table organigramm add column tid SERIAL not null; @@ -3186,7 +3186,7 @@ alter table organigramm add column parent CHAR(10) ; select now(),'field organigramm.drucktext will be added' from xdummy; -alter table organigramm add column drucktext CHAR(50) ; +alter table organigramm add column drucktext VARCHAR(255) ; @@ -3196,7 +3196,7 @@ alter table organigramm add column drucktext CHAR(50) ; select now(),'field organigramm.name will be added' from xdummy; -alter table organigramm add column name CHAR(150) ; +alter table organigramm add column name VARCHAR(255) ; @@ -3356,7 +3356,7 @@ alter table organigramm_bak add column parent CHAR(10) ; select now(),'field organigramm_bak.drucktext will be added' from xdummy; -alter table organigramm_bak add column drucktext CHAR(50) ; +alter table organigramm_bak add column drucktext VARCHAR(255) ; @@ -3366,7 +3366,7 @@ alter table organigramm_bak add column drucktext CHAR(50) ; select now(),'field organigramm_bak.name will be added' from xdummy; -alter table organigramm_bak add column name CHAR(150) ; +alter table organigramm_bak add column name VARCHAR(255) ; diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_functions_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_functions_ids.sql index 29ca471..90ba710 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_functions_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_functions_ids.sql @@ -3,65 +3,65 @@ --Funktion / Prozedur sp_user_themen -! echo "Erzeuge Funktion sp_user_themen" -! echo `date` +select now(),'Erzeuge Funktion sp_user_themen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_themen_ids.sql --Funktion / Prozedur sp_user_orga -! echo "Erzeuge Funktion sp_user_orga" -! echo `date` +select now(),'Erzeuge Funktion sp_user_orga' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_orga_ids.sql --Funktion / Prozedur sp_user_orga_child -! echo "Erzeuge Funktion sp_user_orga_child" -! echo `date` +select now(),'Erzeuge Funktion sp_user_orga_child' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_user_orga_child_ids.sql --Funktion / Prozedur day -! echo "Erzeuge Funktion day" -! echo `date` +select now(),'Erzeuge Funktion day' +from xdummy; --Funktion / Prozedur day -! echo "Erzeuge Funktion day" -! echo `date` +select now(),'Erzeuge Funktion day' +from xdummy; --Funktion / Prozedur month -! echo "Erzeuge Funktion month" -! echo `date` +select now(),'Erzeuge Funktion month' +from xdummy; --Funktion / Prozedur month -! echo "Erzeuge Funktion month" -! echo `date` +select now(),'Erzeuge Funktion month' +from xdummy; --Funktion / Prozedur year -! echo "Erzeuge Funktion year" -! echo `date` +select now(),'Erzeuge Funktion year' +from xdummy; --Funktion / Prozedur year -! echo "Erzeuge Funktion year" -! echo `date` +select now(),'Erzeuge Funktion year' +from xdummy; --Funktion / Prozedur week -! echo "Erzeuge Funktion week" -! echo `date` +select now(),'Erzeuge Funktion week' +from xdummy; CREATE FUNCTION week(dt date) @@ -81,86 +81,86 @@ END FUNCTION; --Funktion / Prozedur week -! echo "Erzeuge Funktion week" -! echo `date` +select now(),'Erzeuge Funktion week' +from xdummy; --Funktion / Prozedur second -! echo "Erzeuge Funktion second" -! echo `date` +select now(),'Erzeuge Funktion second' +from xdummy; --Funktion / Prozedur second -! echo "Erzeuge Funktion second" -! echo `date` +select now(),'Erzeuge Funktion second' +from xdummy; --Funktion / Prozedur minute -! echo "Erzeuge Funktion minute" -! echo `date` +select now(),'Erzeuge Funktion minute' +from xdummy; --Funktion / Prozedur minute -! echo "Erzeuge Funktion minute" -! echo `date` +select now(),'Erzeuge Funktion minute' +from xdummy; --Funktion / Prozedur hour -! echo "Erzeuge Funktion hour" -! echo `date` +select now(),'Erzeuge Funktion hour' +from xdummy; --Funktion / Prozedur hour -! echo "Erzeuge Funktion hour" -! echo `date` +select now(),'Erzeuge Funktion hour' +from xdummy; --Funktion / Prozedur current -! echo "Erzeuge Funktion current" -! echo `date` +select now(),'Erzeuge Funktion current' +from xdummy; --Funktion / Prozedur today -! echo "Erzeuge Funktion today" -! echo `date` +select now(),'Erzeuge Funktion today' +from xdummy; --Funktion / Prozedur suchen_ersetzen -! echo "Erzeuge Funktion suchen_ersetzen" -! echo `date` +select now(),'Erzeuge Funktion suchen_ersetzen' +from xdummy; --Funktion / Prozedur weekday -! echo "Erzeuge Funktion weekday" -! echo `date` +select now(),'Erzeuge Funktion weekday' +from xdummy; --Funktion / Prozedur weekday -! echo "Erzeuge Funktion weekday" -! echo `date` +select now(),'Erzeuge Funktion weekday' +from xdummy; --Funktion / Prozedur time_stamp -! echo "Erzeuge Funktion time_stamp" -! echo `date` +select now(),'Erzeuge Funktion time_stamp' +from xdummy; --Funktion / Prozedur date_val -! echo "Erzeuge Funktion date_val" -! echo `date` +select now(),'Erzeuge Funktion date_val' +from xdummy; create procedure date_val(datstr char(100)) returning date; @@ -172,50 +172,50 @@ END FUNCTION; --Funktion / Prozedur date -! echo "Erzeuge Funktion date" -! echo `date` +select now(),'Erzeuge Funktion date' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur now -! echo "Erzeuge Funktion now" -! echo `date` +select now(),'Erzeuge Funktion now' +from xdummy; create procedure now() returning datetime year to second; @@ -225,14 +225,14 @@ end procedure; --Funktion / Prozedur timestamp_to_date -! echo "Erzeuge Funktion timestamp_to_date" -! echo `date` +select now(),'Erzeuge Funktion timestamp_to_date' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; create procedure string_not_null(p_str char(255)) returning char(255); @@ -242,32 +242,32 @@ end procedure; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur string_not_null -! echo "Erzeuge Funktion string_not_null" -! echo `date` +select now(),'Erzeuge Funktion string_not_null' +from xdummy; --Funktion / Prozedur timestamp_str -! echo "Erzeuge Funktion timestamp_str" -! echo `date` +select now(),'Erzeuge Funktion timestamp_str' +from xdummy; --Funktion / Prozedur date_str -! echo "Erzeuge Funktion date_str" -! echo `date` +select now(),'Erzeuge Funktion date_str' +from xdummy; CREATE procedure date_str(datum date) RETURNING varchar(255); return '' || datum; @@ -275,14 +275,14 @@ end procedure; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; create procedure val(p_str char(255)) @@ -294,26 +294,26 @@ end procedure; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur val -! echo "Erzeuge Funktion val" -! echo `date` +select now(),'Erzeuge Funktion val' +from xdummy; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; create procedure decval(p_str varchar(255)) @@ -324,14 +324,14 @@ end procedure; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; --Funktion / Prozedur decval -! echo "Erzeuge Funktion decval" -! echo `date` +select now(),'Erzeuge Funktion decval' +from xdummy; create procedure decval(p_str char(255)) @@ -342,134 +342,147 @@ end procedure; --Funktion / Prozedur sp_filter_orga -! echo "Erzeuge Funktion sp_filter_orga" -! echo `date` +select now(),'Erzeuge Funktion sp_filter_orga' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_filter_orga_ids.sql --Funktion / Prozedur sp_update_sequence -! echo "Erzeuge Funktion sp_update_sequence" -! echo `date` +select now(),'Erzeuge Funktion sp_update_sequence' +from xdummy; --Funktion / Prozedur sp_bool_to_smallint -! echo "Erzeuge Funktion sp_bool_to_smallint" -! echo `date` +select now(),'Erzeuge Funktion sp_bool_to_smallint' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur nvl -! echo "Erzeuge Funktion nvl" -! echo `date` +select now(),'Erzeuge Funktion nvl' +from xdummy; --Funktion / Prozedur sp_get_subquery_str -! echo "Erzeuge Funktion sp_get_subquery_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_subquery_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_subquery_str_ids.sql --Funktion / Prozedur sp_get_keylist_str -! echo "Erzeuge Funktion sp_get_keylist_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_keylist_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_keylist_str_ids.sql --Funktion / Prozedur sp_get_keylist_str -! echo "Erzeuge Funktion sp_get_keylist_str" -! echo `date` +select now(),'Erzeuge Funktion sp_get_keylist_str' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_keylist_str_short_ids.sql --Funktion / Prozedur sp_get_benutzer -! echo "Erzeuge Funktion sp_get_benutzer" -! echo `date` +select now(),'Erzeuge Funktion sp_get_benutzer' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_benutzer_ids.sql --Funktion / Prozedur sp_trunc_string -! echo "Erzeuge Funktion sp_trunc_string" -! echo `date` +select now(),'Erzeuge Funktion sp_trunc_string' +from xdummy; --Funktion / Prozedur sp_trunc_string -! echo "Erzeuge Funktion sp_trunc_string" -! echo `date` +select now(),'Erzeuge Funktion sp_trunc_string' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_trunc_string_ids.sql --Funktion / Prozedur sp_table_exists -! echo "Erzeuge Funktion sp_table_exists" -! echo `date` +select now(),'Erzeuge Funktion sp_table_exists' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_table_exists_ids.sql --Funktion / Prozedur sp_view_exists -! echo "Erzeuge Funktion sp_view_exists" -! echo `date` +select now(),'Erzeuge Funktion sp_view_exists' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_sp_view_exists_ids.sql --Funktion / Prozedur today -! echo "Erzeuge Funktion today" -! echo `date` +select now(),'Erzeuge Funktion today' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_today_ids.sql --Funktion / Prozedur to_number -! echo "Erzeuge Funktion to_number" -! echo `date` +select now(),'Erzeuge Funktion to_number' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_to_number_ids.sql --Funktion / Prozedur sp_get_dbform_right -! echo "Erzeuge Funktion sp_get_dbform_right" -! echo `date` +select now(),'Erzeuge Funktion sp_get_dbform_right' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_get_dbform_right_ids.sql - --Funktion / Prozedur sp_set_organigramm_eb + --Funktion / Prozedur add_sem -! echo "Erzeuge Funktion sp_set_organigramm_eb" -! echo `date` +select now(),'Erzeuge Funktion add_sem' +from xdummy; + +--Funktion / Prozedur sp_set_organigramm_eb + + +select now(),'Erzeuge Funktion sp_set_organigramm_eb' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_set_organigramm_eb_ids.sql --Funktion / Prozedur sp_set_organigramm_lehr -! echo "Erzeuge Funktion sp_set_organigramm_lehr" -! echo `date` +select now(),'Erzeuge Funktion sp_set_organigramm_lehr' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/prozeduren/proc_set_organigramm_lehr_ids.sql + --Funktion / Prozedur trim_all_whitespace + + +select now(),'Erzeuge Funktion trim_all_whitespace' +from xdummy; + +! DOSQL $SUPERX_DIR/db/install/prozeduren/trim_all_whitespace_ids.sql \ No newline at end of file diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_ids.sql index 2036846..b223e7f 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_ids.sql @@ -1,353 +1,396 @@ --SQL Script automatisch generiert von SuperX module_upgrade.xsl +! DOSQL $SUPERX_DIR/db/install/conf/sx_fields_fuellen.sql + -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/macro_masken_bez_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_droppen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_droppen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_droppen.sql -! echo "SQL-Script $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_erzeugen_ids.sql ausführen" -! echo `date` +select now(),'SQL-Script $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_erzeugen_ids.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/dimension_view_erzeugen_ids.sql -! echo "SQL-Ausdruck create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; ausführen' +from xdummy; -create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; +create table tmp_templates(tid integer, id char(200) not null, content text not null, description char(200) , comment char(200) , version integer ) ; -! echo "SQL-Ausdruck CREATE TABLE tmp_menu_element ( id integer NOT NULL, element character(255), element_value character(255), description character(255), nature character(255), annotation character(255) ); ausführen" -! echo `date` +select now(),'SQL-Ausdruck CREATE TABLE tmp_menu_element ( id integer NOT NULL, element character(255), element_value character(255), description character(255), nature character(255), annotation character(255) ); ausführen' +from xdummy; CREATE TABLE tmp_menu_element ( id integer NOT NULL, element character(255), element_value character(255), description character(255), nature character(255), annotation character(255) ); -! echo "SQL-Ausdruck create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); ausführen' +from xdummy; -create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); +create table tmp_captions ( tid INTEGER, id CHAR(200) , table_name CHAR(200) , field_name CHAR(200) , record_no INTEGER , locale CHAR(10) , contents_short CHAR(255) , contents_long text , equalitystatus SMALLINT , sachgebiete_id INTEGER, doku_link VARCHAR, export_to_glossar INTEGER ); -! echo "SQL-Ausdruck create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); ausführen' +from xdummy; -create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); +create table tmp_repository( tid SERIAL not null, id CHAR(200) not null, content TEXT , caption CHAR(200) , comment TEXT , version SMALLINT , art CHAR(200) , art2 CHAR(200) , art3 CHAR(200) , sachgebiete_id INTEGER , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , geaendert_am DATE , aktiv smallint , gueltig_seit DATE , gueltig_bis DATE ); -! echo "Lade Tabelle tmp_templates" -! echo `date` +select now(),'Lade Tabelle tmp_templates' +from xdummy; !sx_auto_upload_table.x tmp_templates $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/fm_templates.unl -! echo "Lade Tabelle tmp_menu_element" -! echo `date` +select now(),'Lade Tabelle tmp_menu_element' +from xdummy; !sx_upload_records.x tmp_menu_element $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/menu_element.unl -! echo "Lade Tabelle tmp_captions" -! echo `date` +select now(),'Lade Tabelle tmp_captions' +from xdummy; !sx_auto_upload_table.x tmp_captions $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_captions.unl -! echo "SQL-Script $SUPERX_DIR/db/install/upgrade/kern_drop_views_ids.sql ausführen" -! echo `date` +select now(),'Lade Tabelle k_astat_studienfach_land' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienfach_land $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach_land.unl + + +select now(),'Lade Tabelle k_astat_abschluss3steller_land' +from xdummy; + +!sx_auto_upload_table.x k_astat_abschluss3steller_land $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss3steller_land.unl + + +select now(),'Lade Tabelle k_astat_abschluss2steller' +from xdummy; + +!sx_auto_upload_table.x k_astat_abschluss2steller $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_abschluss2steller.unl + + +select now(),'Lade Tabelle k_astat_studienfach' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienfach $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienfach.unl + + +select now(),'Lade Tabelle k_astat_studienbereich' +from xdummy; + +!sx_auto_upload_table.x k_astat_studienbereich $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/k_astat_studienbereich.unl + + +select now(),'SQL-Script $SUPERX_DIR/db/install/upgrade/kern_drop_views_ids.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/kern_drop_views_ids.sql -! echo "Scriptfile $SUPERX_DIR/db/install/upgrade/kernmodul_upgrade_man.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/upgrade/kernmodul_upgrade_man.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/kernmodul_upgrade_man.sql -! echo "SQL-Script $SUPERX_DIR/db/install/upgrade/kern_upgrade_views_ids.sql ausführen" -! echo `date` +select now(),'SQL-Script $SUPERX_DIR/db/install/upgrade/kern_upgrade_views_ids.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/kern_upgrade_views_ids.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/fm_templates_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/fm_templates_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/fm_templates_fuellen.sql -! echo "SQL-Ausdruck drop table tmp_templates; ausführen" -! echo `date` +select now(),'SQL-Ausdruck drop table tmp_templates; ausführen' +from xdummy; drop table tmp_templates; -! echo "Scriptfile $SUPERX_DIR/db/install/upgrade/sx_caption_hs_name.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/upgrade/sx_caption_hs_name.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/sx_caption_hs_name.sql -! echo "Scriptfile $SUPERX_DIR/db/install/upgrade/hinweise_entfernen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/upgrade/hinweise_entfernen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/hinweise_entfernen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/kern_feste_konstanten_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/kern_feste_konstanten_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/kern_feste_konstanten_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/proto_funktion_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/proto_funktion_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/proto_funktion_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/dbforms_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/dbforms_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/dbforms_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/kern_stylesheet_upgrade.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/kern_stylesheet_upgrade.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/kern_stylesheet_upgrade.sql -! echo "Scriptfile $SUPERX_DIR/db/install/upgrade/alter_tid_integer_to_serial.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/upgrade/alter_tid_integer_to_serial.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/alter_tid_integer_to_serial.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sichten_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sichten_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sichten_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/captions_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/captions_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/captions_fuellen.sql -! echo "SQL-Ausdruck alter table groupinfo modify (name char(255)); ausführen" -! echo `date` +select now(),'SQL-Ausdruck alter table groupinfo modify (name char(255)); ausführen' +from xdummy; alter table groupinfo modify (name char(255)); -! echo "SQL-Ausdruck alter table db_tabellen modify (name char(50)); ausführen" -! echo `date` +select now(),'SQL-Ausdruck alter table db_tabellen modify (name char(50)); ausführen' +from xdummy; alter table db_tabellen modify (name char(50)); -! echo "SQL-Ausdruck alter table sx_fields modify (is_primarykey integer default 0); ausführen" -! echo `date` +select now(),'SQL-Ausdruck alter table sx_fields modify (is_primarykey integer default 0); ausführen' +from xdummy; alter table sx_fields modify (is_primarykey integer default 0); -! echo "SQL-Ausdruck create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); ausführen' +from xdummy; -create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); +create table tmp_cifx_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr CHAR(10) not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250) , parent CHAR(10) , parent_int integer, filter CHAR(10) , refapnr CHAR(10) , astat CHAR(10) , bund_apnr CHAR(10) , land_apnr CHAR(10) , hiskey_id VARCHAR(255) , uniquename VARCHAR(255) , sort1 INTEGER , sort2 INTEGER , sort3 INTEGER , sortc1 CHAR(10) , sortc2 CHAR(10) , sourcesystem integer , sourcesystem_id VARCHAR(255) , intern_int INTEGER , intern_c CHAR(10) , sprache CHAR(3) , struktur_int INTEGER , struktur_c CHAR(50) , ebene INTEGER, lid VARCHAR(255), parent_lid VARCHAR(255) ); -! echo "SQL-Ausdruck create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; ausführen' +from xdummy; -create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; +create table tmp_cif_load ( tid INTEGER not null, hs INTEGER not null, key SMALLINT not null, apnr INTEGER not null, d_akt_von DATE , d_akt_bis DATE , kurz CHAR(10) , druck CHAR(100) , lang_1 CHAR(100) , lang_2 CHAR(150) , lang_3 CHAR(250), sort1 INTEGER ) ; -! echo "SQL-Ausdruck create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; ausführen" -! echo `date` +select now(),'SQL-Ausdruck create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; ausführen' +from xdummy; -create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; +create table tmp_portlet( tid SERIAL not null, name VARCHAR(255) , type VARCHAR(255) , class VARCHAR(255) , icon VARCHAR(255) , content TEXT , sortnr_initial INTEGER , visible VARCHAR(255) , gueltig_von DATE, gueltig_bis DATE ) ; -! echo "Lade Tabelle tmp_cifx_load" -! echo `date` +select now(),'Lade Tabelle tmp_cifx_load' +from xdummy; !sx_auto_upload_table.x tmp_cifx_load $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/cifx.unl -! echo "Lade Tabelle tmp_cif_load" -! echo `date` +select now(),'Lade Tabelle tmp_cif_load' +from xdummy; !sx_auto_upload_table.x tmp_cif_load $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/cif.unl -! echo "Lade Tabelle tmp_portlet" -! echo `date` +select now(),'Lade Tabelle tmp_portlet' +from xdummy; !sx_auto_upload_table.x tmp_portlet $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_portlet.unl -! echo "Lade Tabelle tmp_repository" -! echo `date` +select now(),'Lade Tabelle tmp_repository' +from xdummy; !sx_auto_upload_table.x tmp_repository $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/sx_repository.unl -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/cifx_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/cifx_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/cifx_fuellen.sql -! echo "SQL-Ausdruck alter table trans_inst modify (tid serial); ausführen" -! echo `date` +select now(),'SQL-Ausdruck alter table trans_inst modify (tid serial); ausführen' +from xdummy; alter table trans_inst modify (tid serial); -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sx_stylesheets_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_portlet_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_portlet_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sx_portlet_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/menu_element_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/menu_element_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/menu_element_fuellen.sql -! echo "SQL-Ausdruck update sx_fields set is_primarykey=0 where is_primarykey is null; ausführen" -! echo `date` +select now(),'SQL-Ausdruck update sx_fields set is_primarykey=0 where is_primarykey is null; ausführen' +from xdummy; update sx_fields set is_primarykey=0 where is_primarykey is null; -! echo "SQL-Ausdruck drop table tmp_cifx_load; ausführen" -! echo `date` +select now(),'SQL-Ausdruck drop table tmp_cifx_load; ausführen' +from xdummy; drop table tmp_cifx_load; -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/cif_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/cif_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/cif_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/upgrade/menu_element_upgrade.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/upgrade/menu_element_upgrade.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/upgrade/menu_element_upgrade.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_captions_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_captions_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sx_captions_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_repository_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sx_repository_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sx_repository_fuellen.sql -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sachgebiete_fuellen.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/sachgebiete_fuellen.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/sachgebiete_fuellen.sql -! echo "SQL-Ausdruck drop table tmp_cif_load; ausführen" -! echo `date` +select now(),'SQL-Ausdruck drop table tmp_cif_load; ausführen' +from xdummy; drop table tmp_cif_load; -! echo "Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/adapt_target_platform.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/schluesseltabellen/adapt_target_platform.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/schluesseltabellen/adapt_target_platform.sql -! echo "Scriptfile $SUPERX_DIR/db/install/masken/remove_obsolete_masks.sql ausführen" -! echo `date` +select now(),'Scriptfile $SUPERX_DIR/db/install/masken/remove_obsolete_masks.sql ausführen' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/masken/remove_obsolete_masks.sql -! echo "Fülle db_version" -! echo `date` +select now(),'Lade Tabelle dim_datum' +from xdummy; + +!sx_auto_upload_table.x dim_datum $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/dim_datum.unl + + +select now(),'Lade Tabelle aggre_bland' +from xdummy; + +!sx_auto_upload_table.x aggre_bland $SUPERX_DIR/db/install/schluesseltabellen/release_unloads/aggre_bland.unl + + +select now(),'Fülle db_version' +from xdummy; delete from db_version where his_system='kern'; -insert into db_version (his_system,version) values('kern','4.9'); +insert into db_version (his_system,version,systeminfo_id) values('kern','5.0',9); -! echo "Fülle sx_tables, sx_fields und unload_params" -! echo `date` +select now(),'Fülle sx_tables und unload_params' +from xdummy; ! DOSQL $SUPERX_DIR/db/install/conf/sx_tables_fuellen.sql -! DOSQL $SUPERX_DIR/db/install/conf/sx_fields_fuellen.sql ! DOSQL $SUPERX_DIR/db/install/conf/unload_params_fuellen.sql -! echo "Fülle db_forms" -! echo `date` +select now(),'Fülle db_forms' +from xdummy; -! echo "db_forms einfügen" -! echo `date` +select now(),'db_forms einfügen' +from xdummy; CREATE temp TABLE tmp_db_forms ( @@ -359,109 +402,115 @@ CREATE temp TABLE tmp_db_forms ( description character(255) ); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten','In diesem Formular können Sie Sachgebiete verwalten.'); +values ('sachgebiete','sachgebiete','/edit/kern/sachgebiete_edit.jsp','Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Sachgebiete verwalten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten'::varchar(200),'In diesem Formular können Sie XSL-Stylesheets verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_stylesheets','sx_stylesheets','/edit/kern/sx_stylesheets_edit.jsp','Stylesheets verwalten','In diesem Formular können Sie XSL-Stylesheets verwalten.'); +values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten'::varchar(200),'In diesem Formular können Sie Organisationseinheiten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm','organigramm','/edit/kern/organigramm_edit.jsp','Organigramm verwalten','In diesem Formular können Sie Institutionen verwalten.'); +values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten'::varchar(200),'In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_nodeattrib','organigramm','/edit/kern/organigramm_editnodeattrib.jsp','Organigramm Sichtbarkeit verwalten','In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten.'); +values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten'::varchar(200),'In diesem Formular können Sie Maskendefinitionen verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maskeninfo','maskeninfo','/edit/kern/maskeninfo_edit.jsp','Maskeninfo verwalten','In diesem Formular können Sie Masken verwalten.'); +values ('macro_feld_wert_list','macro_feld_wert','/edit/kern/macro_feld_wert_list.jsp','Feld-Vorbelegung von Makro-Masken'::varchar(200),'In diesem Formular können Sie Feld-Vorbelegung von Makro-Masken verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten','In diesem Formular können Sie Felder verwalten.'); +values ('felderinfo','felderinfo','/edit/kern/felderinfo_edit.jsp','Felderinfo verwalten'::varchar(200),'In diesem Formular können Sie Felder verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten','In diesem Formular können Sie Quellsysteme verwalten.'); +values ('systeminfo','systeminfo','/edit/kern/systeminfo_edit.jsp','Systeminfo verwalten'::varchar(200),'In diesem Formular können Sie Quellsysteme verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten','In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_sachgeb_bez','user_sachgeb_bez','/edit/kern/user_sachgeb_bez_edit.jsp','Benutzer und Sachgebiete verwalten'::varchar(200),'In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten','In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_group_bez','user_group_bez','/edit/kern/user_group_bez_edit.jsp','Benutzer und Gruppen verwalten'::varchar(200),'In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'); +values ('user_masken_bez','user_masken_bez','/edit/kern/user_masken_bez_edit.jsp','Maskenrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern','In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'); +values ('user_institution','user_institution','/edit/kern/user_institution_edit.jsp','Institutionsrechte von Benutzern'::varchar(200),'In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum','In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('themenbaum_edit','themenbaum','/edit/kern/themenbaum_edit.jsp','Themenbaum'::varchar(200),'In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten','In diesem Formular können Sie Sichten auf das Organigramm verwalten.'); +values ('sichten','sichten','/edit/kern/sichten_edit.jsp','Sichten'::varchar(200),'In diesem Formular können Sie Sichten auf das Organigramm verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete','In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'); +values ('sachgeb_maske_bez','sachgeb_maske_bez','/edit/kern/sachgeb_maske_bez_edit.jsp','Masken und Sachgebiete'::varchar(200),'In diesem Formular können Sie Masken zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder','In diesem Formular können Sie Felder zu Masken zuordnen.'); +values ('masken_felder_bez','masken_felder_bez','/edit/kern/masken_felder_bez_edit.jsp','Masken und Felder'::varchar(200),'In diesem Formular können Sie Felder zu Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme','In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'); +values ('maske_system_bez','maske_system_bez','/edit/kern/maske_system_bez_edit.jsp','Masken und Systeme'::varchar(200),'In diesem Formular können Sie Masken zu Quellsystemen zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros (Einzelbearbeitung)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('macro_masken_bez','macro_masken_bez','/edit/kern/macro_masken_bez_edit.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros (Liste)','In diesem Formular können Sie Masken zu Makros zuordnen.'); +values ('macro_masken_bez_list','macro_masken_bez','/edit/kern/macro_masken_bez_list.jsp','Masken und Makros'::varchar(200),'In diesem Formular können Sie Masken zu Makros zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten','In diesem Formular können Sie Konstanten verwalten.'); +values ('konstanten','konstanten','/edit/kern/konstanten_edit.jsp','Konstanten'::varchar(200),'In diesem Formular können Sie Konstanten verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten',''); +values ('konstante','konstanten','/edit/kern/konstante_edit.jsp','Konstante verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo','In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'); +values ('hochschulinfo','hochschulinfo','/edit/kern/hochschulinfo_edit.jsp','Hochschulinfo'::varchar(200),'In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete','In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'); +values ('group_sachgeb_bez','group_sachgeb_bez','/edit/kern/group_sachgeb_bez_edit.jsp','Gruppen und Sachgebiete'::varchar(200),'In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken','In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'); +values ('group_masken_bez','group_masken_bez','/edit/kern/group_masken_bez_edit.jsp','Gruppen und Masken'::varchar(200),'In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten','In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('user_sichten','user_sichten','/edit/kern/user_sichten_edit.jsp','Benutzer und Sichten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten','In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('group_sichten','group_sichten','/edit/kern/group_sichten_edit.jsp','Gruppen und Sichten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen','In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'); +values ('sx_captions','sx_captions','/edit/kern/sx_captions_edit.jsp','Beschriftungen'::varchar(200),'In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten','In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('user_sichtarten','user_sichtarten','/edit/kern/user_sichtarten_edit.jsp','Benutzer und Sichtarten'::varchar(200),'In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten','In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'); +values ('group_sichtarten','group_sichtarten','/edit/kern/group_sichtarten_edit.jsp','Gruppen und Sichtarten'::varchar(200),'In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager)'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_repository_edit','sx_repository','/edit/kern/sx_repository_edit.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository','In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'); +values ('sx_repository_list','sx_repository','/edit/kern/sx_repository_list.jsp','Hochschul-Repository'::varchar(200),'In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads','In diesem Formular können Sie Downloads bearbeiten. '); +values ('sx_downloads','sx_downloads','/edit/kern/sx_downloads_edit.jsp','Downloads'::varchar(200),'In diesem Formular können Sie Downloads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte','In diesem Formular können Sie Stichworte bearbeiten. '); +values ('sx_keywords','sx_keywords','/edit/kern/sx_keywords_edit.jsp','Stichworte'::varchar(200),'In diesem Formular können Sie Stichworte bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten','In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '); +values ('sachgeb_sichten','sachgeb_sichten','/edit/kern/sachgeb_sichten_edit.jsp','Zuordnung Sichten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten','In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '); +values ('sachgeb_sichtarten','sachgeb_sichtarten','/edit/kern/sachgeb_sichtarten_edit.jsp','Zuordnung Sichtarten zu Sachgebieten'::varchar(200),'In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten',''); +values ('unload_params','unload_params','/edit/kern/unload_params_edit.jsp','Entladeparameter verwalten'::varchar(200),''::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('trans_inst_list','trans_inst','/edit/kern/trans_inst_list.jsp','Kostenstellen transformieren (Liste)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)','In diesem Formular können Sie Kostenstellen umschlüsseln.'); +values ('trans_inst_edit','trans_inst','/edit/kern/trans_inst_edit.jsp','Kostenstellen transformieren (Details)'::varchar(200),'In diesem Formular können Sie Kostenstellen umschlüsseln.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads','In diesem Formular können Sie Uploads bearbeiten. '); +values ('data_upload_edit','data_upload','/edit/kern/data_upload_edit.jsp','Verzeichnis der Datei-Uploads'::varchar(200),'In diesem Formular können Sie Uploads bearbeiten. '::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('stylesheet_field_edit','stylesheet_field','/edit/kern/stylesheet_field_edit.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder','In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'); +values ('stylesheet_field_list','stylesheet_field','/edit/kern/stylesheet_field_list.jsp','Stylesheets und zugehörige Felder'::varchar(200),'In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('group_field_pref_edit','group_field_pref','/edit/kern/group_field_pref_edit.jsp','Gruppen Feldattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen','In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'); +values ('group_field_pref_list','group_field_pref','/edit/kern/group_field_pref_list.jsp','Gruppen Felderattribute zuweisen'::varchar(200),'In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('fm_templates_list','fm_templates','/edit/kern/fm_templates_list.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten','In diesem Formular können Sie Freemarker-Templates verwalten.'); +values ('fm_templates_edit','fm_templates','/edit/kern/fm_templates_edit.jsp','Freemarker-Templates bearbeiten'::varchar(200),'In diesem Formular können Sie Freemarker-Templates verwalten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections','In diesem Formular können Sie DB Connections bearbeiten.'); +values ('dbconnections_list','dbconnections','/edit/kern/dbconnections_list.jsp','DB-Connections'::varchar(200),'In diesem Formular können Sie DB Connections bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets','In diesem Formular können Sie Portlets bearbeiten.'); +values ('portlets_list','sx_portlet','/edit/kern/portlets_list.jsp','Portlets'::varchar(200),'In diesem Formular können Sie Portlets bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sichtart_rechttabelle_list','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_list.jsp','Spezielle Sichtart-Rechte'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung','In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'); +values ('sichtart_rechttabelle_edit','sichtart_rechttabelle','/edit/kern/sichtart_rechttabelle_edit.jsp','Spezielle Sichtart-Rechte Einzelbarbeitung'::varchar(200),'In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten.'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('sx_jobs_edit','sx_jobs','/edit/kern/sx_jobs_edit.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten','In diesem Formular können Sie Ladejobs verwalten'); +values ('sx_jobs_list','sx_jobs','/edit/kern/sx_jobs_list.jsp','Ladejobs verwalten'::varchar(200),'In diesem Formular können Sie Ladejobs verwalten'::varchar(255)); insert into tmp_db_forms (name, tablename,form_path,caption,description) -values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm','In diesem Formular können Sie das Organigramm aufrufen'); +values ('organigramm_list','organigramm','/edit/kern/organigramm_list.jsp','Organigramm'::varchar(200),'In diesem Formular können Sie das Organigramm aufrufen'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('sx_stylesheet_param_edit','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_edit.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); +insert into tmp_db_forms (name, tablename,form_path,caption,description) +values ('sx_stylesheet_param_list','sx_stylesheet_param','/edit/kern/sx_stylesheet_param_list.jsp','Stylesheet-Parameter'::varchar(200),'In diesem Formular können Sie Stylesheet-Parameter bearbeiten.'::varchar(255)); create temp table tmp_hilf(tid integer); insert into tmp_hilf select max(tid) from db_forms; @@ -475,5 +524,3 @@ from tmp_db_forms D, tmp_hilf H; drop table tmp_hilf; drop table tmp_db_forms; - -! DOSQL $SUPERX_DIR/db/install/kern_install_custom.sql diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_indexes_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_indexes_ids.sql index 09ebeca..2e9ea29 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_indexes_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_indexes_ids.sql @@ -38,6 +38,7 @@ and (systables.tabname 'cifx', 'trans_cifx', 'trans_cif', +'cifx_customize', 'felderinfo', 'hochschulinfo', 'maske_system_bez', @@ -63,6 +64,7 @@ and (systables.tabname 'lehreinheit_inst', 'sx_stylesheets', 'sx_mask_style', +'sx_stylesheet_param', 'sx_captions', 'fm_templates', 'user_sichten', @@ -107,18 +109,38 @@ and (systables.tabname 'sx_portlet', 'user_portlet_bez', 'group_portlet_bez', +'kern_cifx_neu', 'sieve', 'sieve_column_def', 'sieve_column', 'sieve_field', 'sx_jobs', +'orgunit_mapping', +'implicit_orgunit_rights', +'kern_pruefrout', +'masken_statistik', +'dim_datum', +'hisinone_deleted_entity', +'etl_step', +'etl_step_type', +'etl_step_type_param', +'etl_step_property', +'etl_step_relation', +'etl_job', +'etl_job_param', +'k_astat_studienfach_land', +'k_astat_abschluss3steller_land', +'k_astat_abschluss2steller', +'k_astat_studienbereich', +'k_astat_studienfach', +'colorscheme', 'sx_mail' )); -! echo "Checking indexes" -! echo `date` +select now(),'Checking indexes' +from xdummy; <#assign exists="false" /> @@ -131,15 +153,15 @@ and (systables.tabname <#if exists="true" > -! echo "index ix_group_felder2 exists - fine" -! echo `date` +select now(),'index ix_group_felder2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_group_felder2" -! echo `date` +select now(),'Erzeuge Index ix_group_felder2' +from xdummy; create index ix_group_felder2 on group_field_pref (groupinfo_id ); @@ -155,15 +177,15 @@ create index ix_group_felder2 on group_field_pref (groupinfo_id ); <#if exists="true" > -! echo "index ix_style_feld2 exists - fine" -! echo `date` +select now(),'index ix_style_feld2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_style_feld2" -! echo `date` +select now(),'Erzeuge Index ix_style_feld2' +from xdummy; create index ix_style_feld2 on stylesheet_field (stylesheet_id ); @@ -179,15 +201,15 @@ create index ix_style_feld2 on stylesheet_field (stylesheet_id ); <#if exists="true" > -! echo "index uxdb_tabellen_name exists - fine" -! echo `date` +select now(),'index uxdb_tabellen_name exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index uxdb_tabellen_name" -! echo `date` +select now(),'Erzeuge Index uxdb_tabellen_name' +from xdummy; create unique index uxdb_tabellen_name on db_tabellen (name ); @@ -203,20 +225,44 @@ create unique index uxdb_tabellen_name on db_tabellen (name ); <#if exists="true" > -! echo "index xdb_tabellen_efm exists - fine" -! echo `date` +select now(),'index xdb_tabellen_efm exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index xdb_tabellen_efm" -! echo `date` +select now(),'Erzeuge Index xdb_tabellen_efm' +from xdummy; create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); +<#assign exists="false" /> +<#list indexes as i> +<#if i.getName()="uxdb_version"> +<#assign exists="true" /> + + + +<#if exists="true" > + + +select now(),'index uxdb_version exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Index uxdb_version' +from xdummy; + +create unique index uxdb_version on db_version (his_system ); + + + <#assign exists="false" /> <#list indexes as i> <#if i.getName()="xdb_version_efm"> @@ -227,15 +273,15 @@ create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); <#if exists="true" > -! echo "index xdb_version_efm exists - fine" -! echo `date` +select now(),'index xdb_version_efm exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index xdb_version_efm" -! echo `date` +select now(),'Erzeuge Index xdb_version_efm' +from xdummy; create index xdb_version_efm on db_version (db_einfuegemarke ); @@ -251,15 +297,15 @@ create index xdb_version_efm on db_version (db_einfuegemarke ); <#if exists="true" > -! echo "index ix_name_intern exists - fine" -! echo `date` +select now(),'index ix_name_intern exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_name_intern" -! echo `date` +select now(),'Erzeuge Index ix_name_intern' +from xdummy; create unique index ix_name_intern on sichten (name_intern ); @@ -275,15 +321,15 @@ create unique index ix_name_intern on sichten (name_intern ); <#if exists="true" > -! echo "index cif_ind exists - fine" -! echo `date` +select now(),'index cif_ind exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index cif_ind" -! echo `date` +select now(),'Erzeuge Index cif_ind' +from xdummy; create unique index cif_ind on cif (hs, key, @@ -301,15 +347,15 @@ apnr ); <#if exists="true" > -! echo "index cifx_ind exists - fine" -! echo `date` +select now(),'index cifx_ind exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index cifx_ind" -! echo `date` +select now(),'Erzeuge Index cifx_ind' +from xdummy; create unique index cifx_ind on cifx (hs, key, @@ -327,15 +373,15 @@ apnr ); <#if exists="true" > -! echo "index cifx_ind2 exists - fine" -! echo `date` +select now(),'index cifx_ind2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index cifx_ind2" -! echo `date` +select now(),'Erzeuge Index cifx_ind2' +from xdummy; create index cifx_ind2 on cifx (uniquename ); @@ -351,15 +397,15 @@ create index cifx_ind2 on cifx (uniquename ); <#if exists="true" > -! echo "index trans_cifx_ind exists - fine" -! echo `date` +select now(),'index trans_cifx_ind exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index trans_cifx_ind" -! echo `date` +select now(),'Erzeuge Index trans_cifx_ind' +from xdummy; create index trans_cifx_ind on trans_cifx (sourcesystem_id ); @@ -375,15 +421,15 @@ create index trans_cifx_ind on trans_cifx (sourcesystem_id ); <#if exists="true" > -! echo "index trans_cif_ind exists - fine" -! echo `date` +select now(),'index trans_cif_ind exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index trans_cif_ind" -! echo `date` +select now(),'Erzeuge Index trans_cif_ind' +from xdummy; create index trans_cif_ind on trans_cif (sourcesystem_id ); @@ -399,15 +445,15 @@ create index trans_cif_ind on trans_cif (sourcesystem_id ); <#if exists="true" > -! echo "index i_userinfo exists - fine" -! echo `date` +select now(),'index i_userinfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index i_userinfo" -! echo `date` +select now(),'Erzeuge Index i_userinfo' +from xdummy; create unique index i_userinfo on userinfo (benutzer ); @@ -423,15 +469,15 @@ create unique index i_userinfo on userinfo (benutzer ); <#if exists="true" > -! echo "index i_orga exists - fine" -! echo `date` +select now(),'index i_orga exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index i_orga" -! echo `date` +select now(),'Erzeuge Index i_orga' +from xdummy; create unique index i_orga on organigramm (key_apnr, gueltig_seit, @@ -449,15 +495,15 @@ gueltig_bis ); <#if exists="true" > -! echo "index ix130_3 exists - fine" -! echo `date` +select now(),'index ix130_3 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix130_3" -! echo `date` +select now(),'Erzeuge Index ix130_3' +from xdummy; create index ix130_3 on organigramm (parent ); @@ -473,15 +519,15 @@ create index ix130_3 on organigramm (parent ); <#if exists="true" > -! echo "index i_orga_bak exists - fine" -! echo `date` +select now(),'index i_orga_bak exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index i_orga_bak" -! echo `date` +select now(),'Erzeuge Index i_orga_bak' +from xdummy; create unique index i_orga_bak on organigramm_bak (key_apnr, gueltig_seit, @@ -499,15 +545,15 @@ gueltig_bis ); <#if exists="true" > -! echo "index ix_user_inst1 exists - fine" -! echo `date` +select now(),'index ix_user_inst1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_user_inst1" -! echo `date` +select now(),'Erzeuge Index ix_user_inst1' +from xdummy; create index ix_user_inst1 on user_institution (ch110_institut ); @@ -523,15 +569,15 @@ create index ix_user_inst1 on user_institution (ch110_institut ); <#if exists="true" > -! echo "index ix_user_inst2 exists - fine" -! echo `date` +select now(),'index ix_user_inst2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_user_inst2" -! echo `date` +select now(),'Erzeuge Index ix_user_inst2' +from xdummy; create index ix_user_inst2 on user_institution (userid ); @@ -547,15 +593,15 @@ create index ix_user_inst2 on user_institution (userid ); <#if exists="true" > -! echo "index ix_user_inst3 exists - fine" -! echo `date` +select now(),'index ix_user_inst3 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_user_inst3" -! echo `date` +select now(),'Erzeuge Index ix_user_inst3' +from xdummy; create index ix_user_inst3 on user_institution (gueltig_seit, gueltig_bis ); @@ -572,15 +618,15 @@ gueltig_bis ); <#if exists="true" > -! echo "index kostentr_ixktr exists - fine" -! echo `date` +select now(),'index kostentr_ixktr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index kostentr_ixktr" -! echo `date` +select now(),'Erzeuge Index kostentr_ixktr' +from xdummy; create index kostentr_ixktr on kostentraeger (key_apnr ); @@ -596,15 +642,15 @@ create index kostentr_ixktr on kostentraeger (key_apnr ); <#if exists="true" > -! echo "index ix_user_ktr exists - fine" -! echo `date` +select now(),'index ix_user_ktr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_user_ktr" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr' +from xdummy; create index ix_user_ktr on user_kostentraeger (key_apnr ); @@ -620,15 +666,15 @@ create index ix_user_ktr on user_kostentraeger (key_apnr ); <#if exists="true" > -! echo "index ix_user_ktr2 exists - fine" -! echo `date` +select now(),'index ix_user_ktr2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_user_ktr2" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr2' +from xdummy; create index ix_user_ktr2 on user_kostentraeger (userid ); @@ -644,15 +690,15 @@ create index ix_user_ktr2 on user_kostentraeger (userid ); <#if exists="true" > -! echo "index ix_kotr_to_inst1 exists - fine" -! echo `date` +select now(),'index ix_kotr_to_inst1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_kotr_to_inst1" -! echo `date` +select now(),'Erzeuge Index ix_kotr_to_inst1' +from xdummy; create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); @@ -668,15 +714,15 @@ create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); <#if exists="true" > -! echo "index ix_sx_captions exists - fine" -! echo `date` +select now(),'index ix_sx_captions exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_captions" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions' +from xdummy; create index ix_sx_captions on sx_captions (field_name ); @@ -692,15 +738,15 @@ create index ix_sx_captions on sx_captions (field_name ); <#if exists="true" > -! echo "index ix_sx_captions2 exists - fine" -! echo `date` +select now(),'index ix_sx_captions2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_captions2" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions2' +from xdummy; create index ix_sx_captions2 on sx_captions (table_name ); @@ -716,15 +762,15 @@ create index ix_sx_captions2 on sx_captions (table_name ); <#if exists="true" > -! echo "index ix_sx_captions3 exists - fine" -! echo `date` +select now(),'index ix_sx_captions3 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_captions3" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions3' +from xdummy; create index ix_sx_captions3 on sx_captions (record_no ); @@ -740,15 +786,15 @@ create index ix_sx_captions3 on sx_captions (record_no ); <#if exists="true" > -! echo "index ix_sx_captions4 exists - fine" -! echo `date` +select now(),'index ix_sx_captions4 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_captions4" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions4' +from xdummy; create index ix_sx_captions4 on sx_captions (locale ); @@ -764,15 +810,15 @@ create index ix_sx_captions4 on sx_captions (locale ); <#if exists="true" > -! echo "index ix_fm_templates_tid exists - fine" -! echo `date` +select now(),'index ix_fm_templates_tid exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_fm_templates_tid" -! echo `date` +select now(),'Erzeuge Index ix_fm_templates_tid' +from xdummy; create unique index ix_fm_templates_tid on fm_templates (id ); @@ -788,15 +834,15 @@ create unique index ix_fm_templates_tid on fm_templates (id ); <#if exists="true" > -! echo "index ix_sx_down_inst exists - fine" -! echo `date` +select now(),'index ix_sx_down_inst exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_down_inst" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_inst' +from xdummy; create index ix_sx_down_inst on sx_downloads (ch110_institut ); @@ -812,15 +858,15 @@ create index ix_sx_down_inst on sx_downloads (ch110_institut ); <#if exists="true" > -! echo "index ix_sx_down_dbat exists - fine" -! echo `date` +select now(),'index ix_sx_down_dbat exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_down_dbat" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_dbat' +from xdummy; create index ix_sx_down_dbat on sx_downloads (bezugsdatum, gueltig_seit, @@ -838,15 +884,15 @@ gueltig_bis ); <#if exists="true" > -! echo "index ix_ussp exists - fine" -! echo `date` +select now(),'index ix_ussp exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_ussp" -! echo `date` +select now(),'Erzeuge Index ix_ussp' +from xdummy; create index ix_ussp on user_startpage (userid ); @@ -862,15 +908,15 @@ create index ix_ussp on user_startpage (userid ); <#if exists="true" > -! echo "index ix_ussf exists - fine" -! echo `date` +select now(),'index ix_ussf exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_ussf" -! echo `date` +select now(),'Erzeuge Index ix_ussf' +from xdummy; create index ix_ussf on user_startfields (userid ); @@ -886,15 +932,15 @@ create index ix_ussf on user_startfields (userid ); <#if exists="true" > -! echo "index ix_sx_tables exists - fine" -! echo `date` +select now(),'index ix_sx_tables exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_tables" -! echo `date` +select now(),'Erzeuge Index ix_sx_tables' +from xdummy; create unique index ix_sx_tables on sx_tables (name ); @@ -910,15 +956,15 @@ create unique index ix_sx_tables on sx_tables (name ); <#if exists="true" > -! echo "index ix_dim_bp_apnr exists - fine" -! echo `date` +select now(),'index ix_dim_bp_apnr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr' +from xdummy; create unique index ix_dim_bp_apnr on dim_bp_apnr (dimension_bp_id, apnr ); @@ -935,15 +981,15 @@ apnr ); <#if exists="true" > -! echo "index ix_dim_bp_apnr2 exists - fine" -! echo `date` +select now(),'index ix_dim_bp_apnr2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_dim_bp_apnr2" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr2' +from xdummy; create index ix_dim_bp_apnr2 on dim_bp_apnr (systeminfo_id ); @@ -959,15 +1005,15 @@ create index ix_dim_bp_apnr2 on dim_bp_apnr (systeminfo_id ); <#if exists="true" > -! echo "index ix_level1_int1 exists - fine" -! echo `date` +select now(),'index ix_level1_int1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_level1_int1" -! echo `date` +select now(),'Erzeuge Index ix_level1_int1' +from xdummy; create index ix_level1_int1 on dim_bp_apnr (level1_int, level1_char ); @@ -984,15 +1030,15 @@ level1_char ); <#if exists="true" > -! echo "index ix_level1_int2 exists - fine" -! echo `date` +select now(),'index ix_level1_int2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_level1_int2" -! echo `date` +select now(),'Erzeuge Index ix_level1_int2' +from xdummy; create index ix_level1_int2 on dim_bp_apnr (level2_int, level2_char ); @@ -1009,15 +1055,15 @@ level2_char ); <#if exists="true" > -! echo "index ix_level3_int1 exists - fine" -! echo `date` +select now(),'index ix_level3_int1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_level3_int1" -! echo `date` +select now(),'Erzeuge Index ix_level3_int1' +from xdummy; create index ix_level3_int1 on dim_bp_apnr (level3_int, level3_char ); @@ -1034,15 +1080,15 @@ level3_char ); <#if exists="true" > -! echo "index ix_dim_bp_alts1 exists - fine" -! echo `date` +select now(),'index ix_dim_bp_alts1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_dim_bp_alts1" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_alts1' +from xdummy; create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); @@ -1058,15 +1104,15 @@ create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); <#if exists="true" > -! echo "index ix_dim_c1 exists - fine" -! echo `date` +select now(),'index ix_dim_c1 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_dim_c1" -! echo `date` +select now(),'Erzeuge Index ix_dim_c1' +from xdummy; create index ix_dim_c1 on dim_closure (hierarchie_id, key ); @@ -1083,15 +1129,15 @@ key ); <#if exists="true" > -! echo "index ix_dim_c2 exists - fine" -! echo `date` +select now(),'index ix_dim_c2 exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_dim_c2" -! echo `date` +select now(),'Erzeuge Index ix_dim_c2' +from xdummy; create index ix_dim_c2 on dim_closure (hierarchie_id, parent, @@ -1109,15 +1155,15 @@ key ); <#if exists="true" > -! echo "index ix_tr_dim_bp_apnr exists - fine" -! echo `date` +select now(),'index ix_tr_dim_bp_apnr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_tr_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_tr_dim_bp_apnr' +from xdummy; create index ix_tr_dim_bp_apnr on trans_dim_bp_apnr (dimension_bp_id, sourcesystem_id, @@ -1125,6 +1171,30 @@ systeminfo_id ); +<#assign exists="false" /> +<#list indexes as i> +<#if i.getName()="ix_sieve_column_defm"> +<#assign exists="true" /> + + + +<#if exists="true" > + + +select now(),'index ix_sieve_column_defm exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Index ix_sieve_column_defm' +from xdummy; + +create unique index ix_sieve_column_defm on sieve_column_def (m_id ); + + + <#assign exists="false" /> <#list indexes as i> <#if i.getName()="ix_sx_jobs_un"> @@ -1135,16 +1205,88 @@ systeminfo_id ); <#if exists="true" > -! echo "index ix_sx_jobs_un exists - fine" -! echo `date` +select now(),'index ix_sx_jobs_un exists - fine' +from xdummy; <#else> -! echo "Erzeuge Index ix_sx_jobs_un" -! echo `date` +select now(),'Erzeuge Index ix_sx_jobs_un' +from xdummy; create unique index ix_sx_jobs_un on sx_jobs (uniquename ); + +<#assign exists="false" /> +<#list indexes as i> +<#if i.getName()="ix_implicit_orgrights1"> +<#assign exists="true" /> + + + +<#if exists="true" > + + +select now(),'index ix_implicit_orgrights1 exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Index ix_implicit_orgrights1' +from xdummy; + +create index ix_implicit_orgrights1 on implicit_orgunit_rights (userinfo_id ); + + + +<#assign exists="false" /> +<#list indexes as i> +<#if i.getName()="ix_dim_datum_day_date"> +<#assign exists="true" /> + + + +<#if exists="true" > + + +select now(),'index ix_dim_datum_day_date exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Index ix_dim_datum_day_date' +from xdummy; + +create index ix_dim_datum_day_date on dim_datum (day_date ); + + + +<#assign exists="false" /> +<#list indexes as i> +<#if i.getName()="ix_etl_job1"> +<#assign exists="true" /> + + + +<#if exists="true" > + + +select now(),'index ix_etl_job1 exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Index ix_etl_job1' +from xdummy; + +create unique index ix_etl_job1 on etl_job (uniquename ); + + diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_ids.sql index 92ac666..76a0fd0 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_ids.sql @@ -34,6 +34,7 @@ tabid,tabname as tabelle from systables where tabname 'cifx', 'trans_cifx', 'trans_cif', +'cifx_customize', 'felderinfo', 'hochschulinfo', 'maske_system_bez', @@ -59,6 +60,7 @@ tabid,tabname as tabelle from systables where tabname 'lehreinheit_inst', 'sx_stylesheets', 'sx_mask_style', +'sx_stylesheet_param', 'sx_captions', 'fm_templates', 'user_sichten', @@ -103,44 +105,69 @@ tabid,tabname as tabelle from systables where tabname 'sx_portlet', 'user_portlet_bez', 'group_portlet_bez', +'kern_cifx_neu', 'sieve', 'sieve_column_def', 'sieve_column', 'sieve_field', 'sx_jobs', +'orgunit_mapping', +'implicit_orgunit_rights', +'kern_pruefrout', +'masken_statistik', +'dim_datum', +'hisinone_deleted_entity', +'etl_step', +'etl_step_type', +'etl_step_type_param', +'etl_step_property', +'etl_step_relation', +'etl_job', +'etl_job_param', +'k_astat_studienfach_land', +'k_astat_abschluss3steller_land', +'k_astat_abschluss2steller', +'k_astat_studienbereich', +'k_astat_studienfach', +'colorscheme', 'sx_mail' ); <#assign deleted_tables = []> -<#if tables?seq_contains("update_prot_neu") > +<#if tables?is_sequence && tables?seq_contains("update_prot_neu") > drop table update_prot_neu; <#assign deleted_tables = deleted_tables + ["update_prot_neu"]> -<#if tables?seq_contains("personattribute_neu") > +<#if tables?is_sequence && tables?seq_contains("personattribute_neu") > drop table personattribute_neu; <#assign deleted_tables = deleted_tables + ["personattribute_neu"]> +<#if tables?is_sequence && tables?seq_contains("kern_cifx_neu") > +drop table kern_cifx_neu; +<#assign deleted_tables = deleted_tables + ["kern_cifx_neu"]> + + -! echo "Checking tables" -! echo `date` +select now(),'Checking tables' +from xdummy; -<#if !deleted_tables?seq_contains("sichtart_rechttabelle") && tables?seq_contains("sichtart_rechttabelle") > +<#if !deleted_tables?seq_contains("sichtart_rechttabelle") && tables?is_sequence && tables?seq_contains("sichtart_rechttabelle") > -! echo "table sichtart_rechttabelle exists - fine" -! echo `date` +select now(),'table sichtart_rechttabelle exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sichtart_rechttabelle" -! echo `date` +select now(),'Erzeuge Tabelle sichtart_rechttabelle' +from xdummy; create table sichtart_rechttabelle( tid serial , @@ -160,18 +187,18 @@ fallback_user_inst char(1) default '0' , delete from db_tabellen where name='sichtart_rechttabelle'; insert into db_tabellen (name,protokollierung) values('sichtart_rechttabelle',0); -<#if !deleted_tables?seq_contains("group_field_pref") && tables?seq_contains("group_field_pref") > +<#if !deleted_tables?seq_contains("group_field_pref") && tables?is_sequence && tables?seq_contains("group_field_pref") > -! echo "table group_field_pref exists - fine" -! echo `date` +select now(),'table group_field_pref exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_field_pref" -! echo `date` +select now(),'Erzeuge Tabelle group_field_pref' +from xdummy; create table group_field_pref( tid serial , @@ -186,8 +213,8 @@ pref NVARCHAR(255) , -! echo "Erzeuge Index ix_group_felder2" -! echo `date` +select now(),'Erzeuge Index ix_group_felder2' +from xdummy; create index ix_group_felder2 on group_field_pref (groupinfo_id ); @@ -195,18 +222,18 @@ create index ix_group_felder2 on group_field_pref (groupinfo_id ); delete from db_tabellen where name='group_field_pref'; insert into db_tabellen (name,protokollierung) values('group_field_pref',0); -<#if !deleted_tables?seq_contains("stylesheet_field") && tables?seq_contains("stylesheet_field") > +<#if !deleted_tables?seq_contains("stylesheet_field") && tables?is_sequence && tables?seq_contains("stylesheet_field") > -! echo "table stylesheet_field exists - fine" -! echo `date` +select now(),'table stylesheet_field exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle stylesheet_field" -! echo `date` +select now(),'Erzeuge Tabelle stylesheet_field' +from xdummy; create table stylesheet_field( tid serial , @@ -221,8 +248,8 @@ fieldname NVARCHAR(255) , -! echo "Erzeuge Index ix_style_feld2" -! echo `date` +select now(),'Erzeuge Index ix_style_feld2' +from xdummy; create index ix_style_feld2 on stylesheet_field (stylesheet_id ); @@ -230,18 +257,18 @@ create index ix_style_feld2 on stylesheet_field (stylesheet_id ); delete from db_tabellen where name='stylesheet_field'; insert into db_tabellen (name,protokollierung) values('stylesheet_field',0); -<#if !deleted_tables?seq_contains("db_tabellen") && tables?seq_contains("db_tabellen") > +<#if !deleted_tables?seq_contains("db_tabellen") && tables?is_sequence && tables?seq_contains("db_tabellen") > -! echo "table db_tabellen exists - fine" -! echo `date` +select now(),'table db_tabellen exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle db_tabellen" -! echo `date` +select now(),'Erzeuge Tabelle db_tabellen' +from xdummy; create table db_tabellen( db_einfuegemarke CHAR(6) , @@ -256,14 +283,14 @@ protokollierung SMALLINT , -! echo "Erzeuge Index uxdb_tabellen_name" -! echo `date` +select now(),'Erzeuge Index uxdb_tabellen_name' +from xdummy; create unique index uxdb_tabellen_name on db_tabellen (name ); -! echo "Erzeuge Index xdb_tabellen_efm" -! echo `date` +select now(),'Erzeuge Index xdb_tabellen_efm' +from xdummy; create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); @@ -271,18 +298,18 @@ create index xdb_tabellen_efm on db_tabellen (db_einfuegemarke ); delete from db_tabellen where name='db_tabellen'; insert into db_tabellen (name,protokollierung) values('db_tabellen',0); -<#if !deleted_tables?seq_contains("db_forms") && tables?seq_contains("db_forms") > +<#if !deleted_tables?seq_contains("db_forms") && tables?is_sequence && tables?seq_contains("db_forms") > -! echo "table db_forms exists - fine" -! echo `date` +select now(),'table db_forms exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle db_forms" -! echo `date` +select now(),'Erzeuge Tabelle db_forms' +from xdummy; create table db_forms( tid INTEGER not null, @@ -302,22 +329,22 @@ description NCHAR(255) , delete from db_tabellen where name='db_forms'; insert into db_tabellen (name,protokollierung) values('db_forms',0); -<#if !deleted_tables?seq_contains("db_version") && tables?seq_contains("db_version") > +<#if !deleted_tables?seq_contains("db_version") && tables?is_sequence && tables?seq_contains("db_version") > -! echo "table db_version exists - fine" -! echo `date` +select now(),'table db_version exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle db_version" -! echo `date` +select now(),'Erzeuge Tabelle db_version' +from xdummy; create table db_version( - db_einfuegemarke CHAR(6) , -his_system CHAR(20) , + db_einfuegemarke NVARCHAR(255) , +his_system NVARCHAR(255) , version CHAR(8) , kern_system CHAR(1) , version_hash VARCHAR(32) , @@ -330,8 +357,14 @@ systeminfo_id INTEGER , -! echo "Erzeuge Index xdb_version_efm" -! echo `date` +select now(),'Erzeuge Index uxdb_version' +from xdummy; + +create unique index uxdb_version on db_version (his_system ); + + +select now(),'Erzeuge Index xdb_version_efm' +from xdummy; create index xdb_version_efm on db_version (db_einfuegemarke ); @@ -339,18 +372,18 @@ create index xdb_version_efm on db_version (db_einfuegemarke ); delete from db_tabellen where name='db_version'; insert into db_tabellen (name,protokollierung) values('db_version',0); -<#if !deleted_tables?seq_contains("aggregierung") && tables?seq_contains("aggregierung") > +<#if !deleted_tables?seq_contains("aggregierung") && tables?is_sequence && tables?seq_contains("aggregierung") > -! echo "table aggregierung exists - fine" -! echo `date` +select now(),'table aggregierung exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle aggregierung" -! echo `date` +select now(),'Erzeuge Tabelle aggregierung' +from xdummy; create table aggregierung( tid INTEGER not null, @@ -369,18 +402,18 @@ wert NCHAR(255) , delete from db_tabellen where name='aggregierung'; insert into db_tabellen (name,protokollierung) values('aggregierung',0); -<#if !deleted_tables?seq_contains("sichten") && tables?seq_contains("sichten") > +<#if !deleted_tables?seq_contains("sichten") && tables?is_sequence && tables?seq_contains("sichten") > -! echo "table sichten exists - fine" -! echo `date` +select now(),'table sichten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sichten" -! echo `date` +select now(),'Erzeuge Tabelle sichten' +from xdummy; create table sichten( tid SERIAL not null, @@ -419,8 +452,8 @@ aktiv SMALLINT default 1 , -! echo "Erzeuge Index ix_name_intern" -! echo `date` +select now(),'Erzeuge Index ix_name_intern' +from xdummy; create unique index ix_name_intern on sichten (name_intern ); @@ -428,18 +461,18 @@ create unique index ix_name_intern on sichten (name_intern ); delete from db_tabellen where name='sichten'; insert into db_tabellen (name,protokollierung) values('sichten',0); -<#if !deleted_tables?seq_contains("lehr_orga_bez") && tables?seq_contains("lehr_orga_bez") > +<#if !deleted_tables?seq_contains("lehr_orga_bez") && tables?is_sequence && tables?seq_contains("lehr_orga_bez") > -! echo "table lehr_orga_bez exists - fine" -! echo `date` +select now(),'table lehr_orga_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle lehr_orga_bez" -! echo `date` +select now(),'Erzeuge Tabelle lehr_orga_bez' +from xdummy; create table lehr_orga_bez( lehr_id CHAR(10) , @@ -456,18 +489,18 @@ gueltig_bis DATE delete from db_tabellen where name='lehr_orga_bez'; insert into db_tabellen (name,protokollierung) values('lehr_orga_bez',0); -<#if !deleted_tables?seq_contains("masken_felder_bez") && tables?seq_contains("masken_felder_bez") > +<#if !deleted_tables?seq_contains("masken_felder_bez") && tables?is_sequence && tables?seq_contains("masken_felder_bez") > -! echo "table masken_felder_bez exists - fine" -! echo `date` +select now(),'table masken_felder_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle masken_felder_bez" -! echo `date` +select now(),'Erzeuge Tabelle masken_felder_bez' +from xdummy; create table masken_felder_bez( maskeninfo_id INTEGER , @@ -483,18 +516,18 @@ felderinfo_id INTEGER , delete from db_tabellen where name='masken_felder_bez'; insert into db_tabellen (name,protokollierung) values('masken_felder_bez',0); -<#if !deleted_tables?seq_contains("sachgebiete") && tables?seq_contains("sachgebiete") > +<#if !deleted_tables?seq_contains("sachgebiete") && tables?is_sequence && tables?seq_contains("sachgebiete") > -! echo "table sachgebiete exists - fine" -! echo `date` +select now(),'table sachgebiete exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sachgebiete" -! echo `date` +select now(),'Erzeuge Tabelle sachgebiete' +from xdummy; create table sachgebiete( tid INTEGER , @@ -511,18 +544,18 @@ rightname NVARCHAR(255) , delete from db_tabellen where name='sachgebiete'; insert into db_tabellen (name,protokollierung) values('sachgebiete',0); -<#if !deleted_tables?seq_contains("sachgeb_maske_bez") && tables?seq_contains("sachgeb_maske_bez") > +<#if !deleted_tables?seq_contains("sachgeb_maske_bez") && tables?is_sequence && tables?seq_contains("sachgeb_maske_bez") > -! echo "table sachgeb_maske_bez exists - fine" -! echo `date` +select now(),'table sachgeb_maske_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sachgeb_maske_bez" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_maske_bez' +from xdummy; create table sachgeb_maske_bez( sachgebiete_id INTEGER , @@ -538,18 +571,18 @@ maskeninfo_id INTEGER , delete from db_tabellen where name='sachgeb_maske_bez'; insert into db_tabellen (name,protokollierung) values('sachgeb_maske_bez',0); -<#if !deleted_tables?seq_contains("sachgeb_dbform_bez") && tables?seq_contains("sachgeb_dbform_bez") > +<#if !deleted_tables?seq_contains("sachgeb_dbform_bez") && tables?is_sequence && tables?seq_contains("sachgeb_dbform_bez") > -! echo "table sachgeb_dbform_bez exists - fine" -! echo `date` +select now(),'table sachgeb_dbform_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sachgeb_dbform_bez" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_dbform_bez' +from xdummy; create table sachgeb_dbform_bez( sachgebiete_id INTEGER , @@ -565,18 +598,18 @@ dbform_id INTEGER , delete from db_tabellen where name='sachgeb_dbform_bez'; insert into db_tabellen (name,protokollierung) values('sachgeb_dbform_bez',0); -<#if !deleted_tables?seq_contains("user_masken_bez") && tables?seq_contains("user_masken_bez") > +<#if !deleted_tables?seq_contains("user_masken_bez") && tables?is_sequence && tables?seq_contains("user_masken_bez") > -! echo "table user_masken_bez exists - fine" -! echo `date` +select now(),'table user_masken_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_masken_bez' +from xdummy; create table user_masken_bez( userinfo_id INTEGER , @@ -593,18 +626,18 @@ external_entry smallint default 0 , delete from db_tabellen where name='user_masken_bez'; insert into db_tabellen (name,protokollierung) values('user_masken_bez',0); -<#if !deleted_tables?seq_contains("user_sachgeb_bez") && tables?seq_contains("user_sachgeb_bez") > +<#if !deleted_tables?seq_contains("user_sachgeb_bez") && tables?is_sequence && tables?seq_contains("user_sachgeb_bez") > -! echo "table user_sachgeb_bez exists - fine" -! echo `date` +select now(),'table user_sachgeb_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_sachgeb_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_sachgeb_bez' +from xdummy; create table user_sachgeb_bez( userinfo_id INTEGER , @@ -621,18 +654,18 @@ external_entry smallint default 0 , delete from db_tabellen where name='user_sachgeb_bez'; insert into db_tabellen (name,protokollierung) values('user_sachgeb_bez',0); -<#if !deleted_tables?seq_contains("xdummy") && tables?seq_contains("xdummy") > +<#if !deleted_tables?seq_contains("xdummy") && tables?is_sequence && tables?seq_contains("xdummy") > -! echo "table xdummy exists - fine" -! echo `date` +select now(),'table xdummy exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle xdummy" -! echo `date` +select now(),'Erzeuge Tabelle xdummy' +from xdummy; create table xdummy( c CHAR(1) @@ -645,18 +678,18 @@ create table xdummy( delete from db_tabellen where name='xdummy'; insert into db_tabellen (name,protokollierung) values('xdummy',0); -<#if !deleted_tables?seq_contains("macro_masken_bez") && tables?seq_contains("macro_masken_bez") > +<#if !deleted_tables?seq_contains("macro_masken_bez") && tables?is_sequence && tables?seq_contains("macro_masken_bez") > -! echo "table macro_masken_bez exists - fine" -! echo `date` +select now(),'table macro_masken_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle macro_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle macro_masken_bez' +from xdummy; create table macro_masken_bez( maskeninfo_id1 INTEGER not null, @@ -680,18 +713,18 @@ aktion NCHAR(255) , delete from db_tabellen where name='macro_masken_bez'; insert into db_tabellen (name,protokollierung) values('macro_masken_bez',0); -<#if !deleted_tables?seq_contains("graphicformat") && tables?seq_contains("graphicformat") > +<#if !deleted_tables?seq_contains("graphicformat") && tables?is_sequence && tables?seq_contains("graphicformat") > -! echo "table graphicformat exists - fine" -! echo `date` +select now(),'table graphicformat exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle graphicformat" -! echo `date` +select now(),'Erzeuge Tabelle graphicformat' +from xdummy; create table graphicformat( id NCHAR(100) not null, @@ -716,18 +749,18 @@ moreattribs TEXT , delete from db_tabellen where name='graphicformat'; insert into db_tabellen (name,protokollierung) values('graphicformat',0); -<#if !deleted_tables?seq_contains("macro_feld_wert") && tables?seq_contains("macro_feld_wert") > +<#if !deleted_tables?seq_contains("macro_feld_wert") && tables?is_sequence && tables?seq_contains("macro_feld_wert") > -! echo "table macro_feld_wert exists - fine" -! echo `date` +select now(),'table macro_feld_wert exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle macro_feld_wert" -! echo `date` +select now(),'Erzeuge Tabelle macro_feld_wert' +from xdummy; create table macro_feld_wert( macro INTEGER not null, @@ -748,18 +781,18 @@ active INTEGER default 1 not null delete from db_tabellen where name='macro_feld_wert'; insert into db_tabellen (name,protokollierung) values('macro_feld_wert',0); -<#if !deleted_tables?seq_contains("groupinfo") && tables?seq_contains("groupinfo") > +<#if !deleted_tables?seq_contains("groupinfo") && tables?is_sequence && tables?seq_contains("groupinfo") > -! echo "table groupinfo exists - fine" -! echo `date` +select now(),'table groupinfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle groupinfo" -! echo `date` +select now(),'Erzeuge Tabelle groupinfo' +from xdummy; create table groupinfo( tid INTEGER , @@ -775,18 +808,18 @@ name NCHAR(255) , delete from db_tabellen where name='groupinfo'; insert into db_tabellen (name,protokollierung) values('groupinfo',0); -<#if !deleted_tables?seq_contains("user_group_bez") && tables?seq_contains("user_group_bez") > +<#if !deleted_tables?seq_contains("user_group_bez") && tables?is_sequence && tables?seq_contains("user_group_bez") > -! echo "table user_group_bez exists - fine" -! echo `date` +select now(),'table user_group_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_group_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_group_bez' +from xdummy; create table user_group_bez( userinfo_id INTEGER , @@ -803,18 +836,18 @@ external_entry SMALLINT default 0 , delete from db_tabellen where name='user_group_bez'; insert into db_tabellen (name,protokollierung) values('user_group_bez',0); -<#if !deleted_tables?seq_contains("group_sachgeb_bez") && tables?seq_contains("group_sachgeb_bez") > +<#if !deleted_tables?seq_contains("group_sachgeb_bez") && tables?is_sequence && tables?seq_contains("group_sachgeb_bez") > -! echo "table group_sachgeb_bez exists - fine" -! echo `date` +select now(),'table group_sachgeb_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_sachgeb_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_sachgeb_bez' +from xdummy; create table group_sachgeb_bez( groupinfo_id INTEGER , @@ -830,18 +863,18 @@ sachgebiete_id INTEGER , delete from db_tabellen where name='group_sachgeb_bez'; insert into db_tabellen (name,protokollierung) values('group_sachgeb_bez',0); -<#if !deleted_tables?seq_contains("group_masken_bez") && tables?seq_contains("group_masken_bez") > +<#if !deleted_tables?seq_contains("group_masken_bez") && tables?is_sequence && tables?seq_contains("group_masken_bez") > -! echo "table group_masken_bez exists - fine" -! echo `date` +select now(),'table group_masken_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_masken_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_masken_bez' +from xdummy; create table group_masken_bez( groupinfo_id INTEGER , @@ -857,18 +890,18 @@ maskeninfo_id INTEGER , delete from db_tabellen where name='group_masken_bez'; insert into db_tabellen (name,protokollierung) values('group_masken_bez',0); -<#if !deleted_tables?seq_contains("aggre_bland") && tables?seq_contains("aggre_bland") > +<#if !deleted_tables?seq_contains("aggre_bland") && tables?is_sequence && tables?seq_contains("aggre_bland") > -! echo "table aggre_bland exists - fine" -! echo `date` +select now(),'table aggre_bland exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle aggre_bland" -! echo `date` +select now(),'Erzeuge Tabelle aggre_bland' +from xdummy; create table aggre_bland( tid INTEGER , @@ -885,18 +918,18 @@ text CHAR(40) not null, delete from db_tabellen where name='aggre_bland'; insert into db_tabellen (name,protokollierung) values('aggre_bland',0); -<#if !deleted_tables?seq_contains("cif") && tables?seq_contains("cif") > +<#if !deleted_tables?seq_contains("cif") && tables?is_sequence && tables?seq_contains("cif") > -! echo "table cif exists - fine" -! echo `date` +select now(),'table cif exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle cif" -! echo `date` +select now(),'Erzeuge Tabelle cif' +from xdummy; create table cif( tid INTEGER not null, @@ -910,7 +943,8 @@ druck NCHAR(100) , lang_1 NCHAR(100) , lang_2 NCHAR(150) , lang_3 NCHAR(250) , -sort1 INTEGER , +sort1 INTEGER , +uniquename NVARCHAR(255) , primary key (tid) constraint c_cif ) @@ -919,8 +953,8 @@ sort1 INTEGER , -! echo "Erzeuge Index cif_ind" -! echo `date` +select now(),'Erzeuge Index cif_ind' +from xdummy; create unique index cif_ind on cif (hs, key, @@ -930,18 +964,18 @@ apnr ); delete from db_tabellen where name='cif'; insert into db_tabellen (name,protokollierung) values('cif',0); -<#if !deleted_tables?seq_contains("cifx") && tables?seq_contains("cifx") > +<#if !deleted_tables?seq_contains("cifx") && tables?is_sequence && tables?seq_contains("cifx") > -! echo "table cifx exists - fine" -! echo `date` +select now(),'table cifx exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle cifx" -! echo `date` +select now(),'Erzeuge Tabelle cifx' +from xdummy; create table cifx( tid INTEGER not null, @@ -987,16 +1021,16 @@ parent_lid NVARCHAR(255) , -! echo "Erzeuge Index cifx_ind" -! echo `date` +select now(),'Erzeuge Index cifx_ind' +from xdummy; create unique index cifx_ind on cifx (hs, key, apnr ); -! echo "Erzeuge Index cifx_ind2" -! echo `date` +select now(),'Erzeuge Index cifx_ind2' +from xdummy; create index cifx_ind2 on cifx (uniquename ); @@ -1004,18 +1038,18 @@ create index cifx_ind2 on cifx (uniquename ); delete from db_tabellen where name='cifx'; insert into db_tabellen (name,protokollierung) values('cifx',0); -<#if !deleted_tables?seq_contains("trans_cifx") && tables?seq_contains("trans_cifx") > +<#if !deleted_tables?seq_contains("trans_cifx") && tables?is_sequence && tables?seq_contains("trans_cifx") > -! echo "table trans_cifx exists - fine" -! echo `date` +select now(),'table trans_cifx exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle trans_cifx" -! echo `date` +select now(),'Erzeuge Tabelle trans_cifx' +from xdummy; create table trans_cifx( key SMALLINT not null, @@ -1030,8 +1064,8 @@ systeminfo_id INTEGER -! echo "Erzeuge Index trans_cifx_ind" -! echo `date` +select now(),'Erzeuge Index trans_cifx_ind' +from xdummy; create index trans_cifx_ind on trans_cifx (sourcesystem_id ); @@ -1039,18 +1073,18 @@ create index trans_cifx_ind on trans_cifx (sourcesystem_id ); delete from db_tabellen where name='trans_cifx'; insert into db_tabellen (name,protokollierung) values('trans_cifx',0); -<#if !deleted_tables?seq_contains("trans_cif") && tables?seq_contains("trans_cif") > +<#if !deleted_tables?seq_contains("trans_cif") && tables?is_sequence && tables?seq_contains("trans_cif") > -! echo "table trans_cif exists - fine" -! echo `date` +select now(),'table trans_cif exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle trans_cif" -! echo `date` +select now(),'Erzeuge Tabelle trans_cif' +from xdummy; create table trans_cif( key SMALLINT not null, @@ -1065,8 +1099,8 @@ systeminfo_id INTEGER -! echo "Erzeuge Index trans_cif_ind" -! echo `date` +select now(),'Erzeuge Index trans_cif_ind' +from xdummy; create index trans_cif_ind on trans_cif (sourcesystem_id ); @@ -1074,18 +1108,51 @@ create index trans_cif_ind on trans_cif (sourcesystem_id ); delete from db_tabellen where name='trans_cif'; insert into db_tabellen (name,protokollierung) values('trans_cif',0); -<#if !deleted_tables?seq_contains("felderinfo") && tables?seq_contains("felderinfo") > +<#if !deleted_tables?seq_contains("cifx_customize") && tables?is_sequence && tables?seq_contains("cifx_customize") > + + +select now(),'table cifx_customize exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle cifx_customize' +from xdummy; + +create table cifx_customize( + tid SERIAL not null, +cifx_table NVARCHAR(255) not null, +key SMALLINT not null, +apnr CHAR(10) not null, +kurz NVARCHAR(255) , +druck NVARCHAR(255) default 'Drucktext' , +lang_1 NVARCHAR(255) , +uniquename NVARCHAR(255) , + primary key (tid) + constraint c_cifx_customize +) +; + + + + +delete from db_tabellen where name='cifx_customize'; +insert into db_tabellen (name,protokollierung) values('cifx_customize',0); + +<#if !deleted_tables?seq_contains("felderinfo") && tables?is_sequence && tables?seq_contains("felderinfo") > -! echo "table felderinfo exists - fine" -! echo `date` +select now(),'table felderinfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle felderinfo" -! echo `date` +select now(),'Erzeuge Tabelle felderinfo' +from xdummy; create table felderinfo( tid INTEGER not null, @@ -1114,18 +1181,18 @@ defaultwert NCHAR(255) , delete from db_tabellen where name='felderinfo'; insert into db_tabellen (name,protokollierung) values('felderinfo',0); -<#if !deleted_tables?seq_contains("hochschulinfo") && tables?seq_contains("hochschulinfo") > +<#if !deleted_tables?seq_contains("hochschulinfo") && tables?is_sequence && tables?seq_contains("hochschulinfo") > -! echo "table hochschulinfo exists - fine" -! echo `date` +select now(),'table hochschulinfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle hochschulinfo" -! echo `date` +select now(),'Erzeuge Tabelle hochschulinfo' +from xdummy; create table hochschulinfo( name NCHAR(100) not null, @@ -1146,18 +1213,18 @@ passwd CHAR(16) , delete from db_tabellen where name='hochschulinfo'; insert into db_tabellen (name,protokollierung) values('hochschulinfo',0); -<#if !deleted_tables?seq_contains("maske_system_bez") && tables?seq_contains("maske_system_bez") > +<#if !deleted_tables?seq_contains("maske_system_bez") && tables?is_sequence && tables?seq_contains("maske_system_bez") > -! echo "table maske_system_bez exists - fine" -! echo `date` +select now(),'table maske_system_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle maske_system_bez" -! echo `date` +select now(),'Erzeuge Tabelle maske_system_bez' +from xdummy; create table maske_system_bez( maskeninfo_id INTEGER not null, @@ -1173,18 +1240,18 @@ systeminfo_id INTEGER not null, delete from db_tabellen where name='maske_system_bez'; insert into db_tabellen (name,protokollierung) values('maske_system_bez',0); -<#if !deleted_tables?seq_contains("maskeninfo") && tables?seq_contains("maskeninfo") > +<#if !deleted_tables?seq_contains("maskeninfo") && tables?is_sequence && tables?seq_contains("maskeninfo") > -! echo "table maskeninfo exists - fine" -! echo `date` +select now(),'table maskeninfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle maskeninfo" -! echo `date` +select now(),'Erzeuge Tabelle maskeninfo' +from xdummy; create table maskeninfo( tid INTEGER not null, @@ -1213,18 +1280,18 @@ hinweis text , delete from db_tabellen where name='maskeninfo'; insert into db_tabellen (name,protokollierung) values('maskeninfo',0); -<#if !deleted_tables?seq_contains("proto_funktion") && tables?seq_contains("proto_funktion") > +<#if !deleted_tables?seq_contains("proto_funktion") && tables?is_sequence && tables?seq_contains("proto_funktion") > -! echo "table proto_funktion exists - fine" -! echo `date` +select now(),'table proto_funktion exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle proto_funktion" -! echo `date` +select now(),'Erzeuge Tabelle proto_funktion' +from xdummy; create table proto_funktion( proto_fkt_id SMALLINT not null, @@ -1240,23 +1307,23 @@ proto_fkt CHAR(20) not null, delete from db_tabellen where name='proto_funktion'; insert into db_tabellen (name,protokollierung) values('proto_funktion',0); -<#if !deleted_tables?seq_contains("systeminfo") && tables?seq_contains("systeminfo") > +<#if !deleted_tables?seq_contains("systeminfo") && tables?is_sequence && tables?seq_contains("systeminfo") > -! echo "table systeminfo exists - fine" -! echo `date` +select now(),'table systeminfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle systeminfo" -! echo `date` +select now(),'Erzeuge Tabelle systeminfo' +from xdummy; create table systeminfo( tid INTEGER not null, name CHAR(50) not null, -datum DATE , +datum datetime year to second , primary key (tid) constraint c_systeminfo ) @@ -1268,18 +1335,18 @@ datum DATE , delete from db_tabellen where name='systeminfo'; insert into db_tabellen (name,protokollierung) values('systeminfo',0); -<#if !deleted_tables?seq_contains("user_einstellungen") && tables?seq_contains("user_einstellungen") > +<#if !deleted_tables?seq_contains("user_einstellungen") && tables?is_sequence && tables?seq_contains("user_einstellungen") > -! echo "table user_einstellungen exists - fine" -! echo `date` +select now(),'table user_einstellungen exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_einstellungen" -! echo `date` +select now(),'Erzeuge Tabelle user_einstellungen' +from xdummy; create table user_einstellungen( tid INTEGER not null, @@ -1295,18 +1362,18 @@ arbeitsverzeichnis NCHAR(255) , delete from db_tabellen where name='user_einstellungen'; insert into db_tabellen (name,protokollierung) values('user_einstellungen',0); -<#if !deleted_tables?seq_contains("userinfo") && tables?seq_contains("userinfo") > +<#if !deleted_tables?seq_contains("userinfo") && tables?is_sequence && tables?seq_contains("userinfo") > -! echo "table userinfo exists - fine" -! echo `date` +select now(),'table userinfo exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle userinfo" -! echo `date` +select now(),'Erzeuge Tabelle userinfo' +from xdummy; create table userinfo( tid INTEGER not null, @@ -1322,7 +1389,8 @@ passwd_sha NCHAR(255) , info NCHAR(255) , extern_account_id NVARCHAR(255) , extern_person_id NVARCHAR(255) , -sieht_projekte SMALLINT default 0 , +sieht_projekte SMALLINT default 0 , +extern_role_id INTEGER , primary key (tid) constraint c_userinfo ) @@ -1331,8 +1399,8 @@ sieht_projekte SMALLINT default 0 , -! echo "Erzeuge Index i_userinfo" -! echo `date` +select now(),'Erzeuge Index i_userinfo' +from xdummy; create unique index i_userinfo on userinfo (benutzer ); @@ -1340,18 +1408,18 @@ create unique index i_userinfo on userinfo (benutzer ); delete from db_tabellen where name='userinfo'; insert into db_tabellen (name,protokollierung) values('userinfo',0); -<#if !deleted_tables?seq_contains("themenbaum") && tables?seq_contains("themenbaum") > +<#if !deleted_tables?seq_contains("themenbaum") && tables?is_sequence && tables?seq_contains("themenbaum") > -! echo "table themenbaum exists - fine" -! echo `date` +select now(),'table themenbaum exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle themenbaum" -! echo `date` +select now(),'Erzeuge Tabelle themenbaum' +from xdummy; create table themenbaum( tid SERIAL , @@ -1374,18 +1442,18 @@ css_class NVARCHAR(255) , delete from db_tabellen where name='themenbaum'; insert into db_tabellen (name,protokollierung) values('themenbaum',0); -<#if !deleted_tables?seq_contains("themenbaum_bak") && tables?seq_contains("themenbaum_bak") > +<#if !deleted_tables?seq_contains("themenbaum_bak") && tables?is_sequence && tables?seq_contains("themenbaum_bak") > -! echo "table themenbaum_bak exists - fine" -! echo `date` +select now(),'table themenbaum_bak exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle themenbaum_bak" -! echo `date` +select now(),'Erzeuge Tabelle themenbaum_bak' +from xdummy; create table themenbaum_bak( tid INTEGER , @@ -1404,18 +1472,18 @@ erlaeuterung NCHAR(240) delete from db_tabellen where name='themenbaum_bak'; insert into db_tabellen (name,protokollierung) values('themenbaum_bak',0); -<#if !deleted_tables?seq_contains("nachricht") && tables?seq_contains("nachricht") > +<#if !deleted_tables?seq_contains("nachricht") && tables?is_sequence && tables?seq_contains("nachricht") > -! echo "table nachricht exists - fine" -! echo `date` +select now(),'table nachricht exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle nachricht" -! echo `date` +select now(),'Erzeuge Tabelle nachricht' +from xdummy; create table nachricht( aktuell NCHAR(255) @@ -1428,18 +1496,18 @@ create table nachricht( delete from db_tabellen where name='nachricht'; insert into db_tabellen (name,protokollierung) values('nachricht',0); -<#if !deleted_tables?seq_contains("menu_element") && tables?seq_contains("menu_element") > +<#if !deleted_tables?seq_contains("menu_element") && tables?is_sequence && tables?seq_contains("menu_element") > -! echo "table menu_element exists - fine" -! echo `date` +select now(),'table menu_element exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle menu_element" -! echo `date` +select now(),'Erzeuge Tabelle menu_element' +from xdummy; create table menu_element( id INTEGER not null, @@ -1459,18 +1527,18 @@ annotation NVARCHAR(255) , delete from db_tabellen where name='menu_element'; insert into db_tabellen (name,protokollierung) values('menu_element',0); -<#if !deleted_tables?seq_contains("dbconnections") && tables?seq_contains("dbconnections") > +<#if !deleted_tables?seq_contains("dbconnections") && tables?is_sequence && tables?seq_contains("dbconnections") > -! echo "table dbconnections exists - fine" -! echo `date` +select now(),'table dbconnections exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dbconnections" -! echo `date` +select now(),'Erzeuge Tabelle dbconnections' +from xdummy; create table dbconnections( id NVARCHAR(255) not null, @@ -1494,25 +1562,25 @@ testsql NVARCHAR(255) , delete from db_tabellen where name='dbconnections'; insert into db_tabellen (name,protokollierung) values('dbconnections',0); -<#if !deleted_tables?seq_contains("organigramm") && tables?seq_contains("organigramm") > +<#if !deleted_tables?seq_contains("organigramm") && tables?is_sequence && tables?seq_contains("organigramm") > -! echo "table organigramm exists - fine" -! echo `date` +select now(),'table organigramm exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle organigramm" -! echo `date` +select now(),'Erzeuge Tabelle organigramm' +from xdummy; create table organigramm( - tid INTEGER not null, + tid SERIAL not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, @@ -1531,16 +1599,16 @@ nodeattrib SMALLINT -! echo "Erzeuge Index i_orga" -! echo `date` +select now(),'Erzeuge Index i_orga' +from xdummy; create unique index i_orga on organigramm (key_apnr, gueltig_seit, gueltig_bis ); -! echo "Erzeuge Index ix130_3" -! echo `date` +select now(),'Erzeuge Index ix130_3' +from xdummy; create index ix130_3 on organigramm (parent ); @@ -1548,38 +1616,45 @@ create index ix130_3 on organigramm (parent ); delete from db_tabellen where name='organigramm'; insert into db_tabellen (name,protokollierung) values('organigramm',0); -<#if !deleted_tables?seq_contains("organigramm_bak") && tables?seq_contains("organigramm_bak") > +<#if !deleted_tables?seq_contains("organigramm_bak") && tables?is_sequence && tables?seq_contains("organigramm_bak") > -! echo "table organigramm_bak exists - fine" -! echo `date` +select now(),'table organigramm_bak exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle organigramm_bak" -! echo `date` +select now(),'Erzeuge Tabelle organigramm_bak' +from xdummy; create table organigramm_bak( tid INTEGER not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name NCHAR(150) , +drucktext NVARCHAR(255) , +name NVARCHAR(255) , ebene INTEGER , -lehre SMALLINT , +lehre SMALLINT not null, gueltig_seit DATE not null, gueltig_bis DATE not null, -orgstruktur INTEGER +orgstruktur INTEGER , +lid NVARCHAR(255) , +parent_lid NVARCHAR(255) , +uniquename NVARCHAR(255) , +sourcesystem INTEGER , +sourcesystem_id NVARCHAR(255) , +systeminfo_id INTEGER , +nodeattrib SMALLINT ) ; -! echo "Erzeuge Index i_orga_bak" -! echo `date` +select now(),'Erzeuge Index i_orga_bak' +from xdummy; create unique index i_orga_bak on organigramm_bak (key_apnr, gueltig_seit, @@ -1589,18 +1664,18 @@ gueltig_bis ); delete from db_tabellen where name='organigramm_bak'; insert into db_tabellen (name,protokollierung) values('organigramm_bak',0); -<#if !deleted_tables?seq_contains("user_institution") && tables?seq_contains("user_institution") > +<#if !deleted_tables?seq_contains("user_institution") && tables?is_sequence && tables?seq_contains("user_institution") > -! echo "table user_institution exists - fine" -! echo `date` +select now(),'table user_institution exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_institution" -! echo `date` +select now(),'Erzeuge Tabelle user_institution' +from xdummy; create table user_institution( userid INTEGER not null, @@ -1620,20 +1695,20 @@ externalid NVARCHAR(200) , -! echo "Erzeuge Index ix_user_inst1" -! echo `date` +select now(),'Erzeuge Index ix_user_inst1' +from xdummy; create index ix_user_inst1 on user_institution (ch110_institut ); -! echo "Erzeuge Index ix_user_inst2" -! echo `date` +select now(),'Erzeuge Index ix_user_inst2' +from xdummy; create index ix_user_inst2 on user_institution (userid ); -! echo "Erzeuge Index ix_user_inst3" -! echo `date` +select now(),'Erzeuge Index ix_user_inst3' +from xdummy; create index ix_user_inst3 on user_institution (gueltig_seit, gueltig_bis ); @@ -1642,18 +1717,18 @@ gueltig_bis ); delete from db_tabellen where name='user_institution'; insert into db_tabellen (name,protokollierung) values('user_institution',0); -<#if !deleted_tables?seq_contains("kostentraeger") && tables?seq_contains("kostentraeger") > +<#if !deleted_tables?seq_contains("kostentraeger") && tables?is_sequence && tables?seq_contains("kostentraeger") > -! echo "table kostentraeger exists - fine" -! echo `date` +select now(),'table kostentraeger exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle kostentraeger" -! echo `date` +select now(),'Erzeuge Tabelle kostentraeger' +from xdummy; create table kostentraeger( key_apnr CHAR(50) , @@ -1674,8 +1749,8 @@ info NVARCHAR(215) -! echo "Erzeuge Index kostentr_ixktr" -! echo `date` +select now(),'Erzeuge Index kostentr_ixktr' +from xdummy; create index kostentr_ixktr on kostentraeger (key_apnr ); @@ -1683,18 +1758,18 @@ create index kostentr_ixktr on kostentraeger (key_apnr ); delete from db_tabellen where name='kostentraeger'; insert into db_tabellen (name,protokollierung) values('kostentraeger',0); -<#if !deleted_tables?seq_contains("user_kostentraeger") && tables?seq_contains("user_kostentraeger") > +<#if !deleted_tables?seq_contains("user_kostentraeger") && tables?is_sequence && tables?seq_contains("user_kostentraeger") > -! echo "table user_kostentraeger exists - fine" -! echo `date` +select now(),'table user_kostentraeger exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_kostentraeger" -! echo `date` +select now(),'Erzeuge Tabelle user_kostentraeger' +from xdummy; create table user_kostentraeger( userid INTEGER not null, @@ -1712,14 +1787,14 @@ externalid NVARCHAR(200) , -! echo "Erzeuge Index ix_user_ktr" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr' +from xdummy; create index ix_user_ktr on user_kostentraeger (key_apnr ); -! echo "Erzeuge Index ix_user_ktr2" -! echo `date` +select now(),'Erzeuge Index ix_user_ktr2' +from xdummy; create index ix_user_ktr2 on user_kostentraeger (userid ); @@ -1727,18 +1802,18 @@ create index ix_user_ktr2 on user_kostentraeger (userid ); delete from db_tabellen where name='user_kostentraeger'; insert into db_tabellen (name,protokollierung) values('user_kostentraeger',0); -<#if !deleted_tables?seq_contains("kotr_to_inst") && tables?seq_contains("kotr_to_inst") > +<#if !deleted_tables?seq_contains("kotr_to_inst") && tables?is_sequence && tables?seq_contains("kotr_to_inst") > -! echo "table kotr_to_inst exists - fine" -! echo `date` +select now(),'table kotr_to_inst exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle kotr_to_inst" -! echo `date` +select now(),'Erzeuge Tabelle kotr_to_inst' +from xdummy; create table kotr_to_inst( projnr CHAR(24) , @@ -1750,8 +1825,8 @@ haupt_kst_kz CHAR(1) -! echo "Erzeuge Index ix_kotr_to_inst1" -! echo `date` +select now(),'Erzeuge Index ix_kotr_to_inst1' +from xdummy; create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); @@ -1759,18 +1834,18 @@ create index ix_kotr_to_inst1 on kotr_to_inst (projnr ); delete from db_tabellen where name='kotr_to_inst'; insert into db_tabellen (name,protokollierung) values('kotr_to_inst',0); -<#if !deleted_tables?seq_contains("protokoll") && tables?seq_contains("protokoll") > +<#if !deleted_tables?seq_contains("protokoll") && tables?is_sequence && tables?seq_contains("protokoll") > -! echo "table protokoll exists - fine" -! echo `date` +select now(),'table protokoll exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle protokoll" -! echo `date` +select now(),'Erzeuge Tabelle protokoll' +from xdummy; create table protokoll( protokoll_id SERIAL not null, @@ -1791,18 +1866,18 @@ kommentar NVARCHAR(255) , delete from db_tabellen where name='protokoll'; insert into db_tabellen (name,protokollierung) values('protokoll',0); -<#if !deleted_tables?seq_contains("trans_inst") && tables?seq_contains("trans_inst") > +<#if !deleted_tables?seq_contains("trans_inst") && tables?is_sequence && tables?seq_contains("trans_inst") > -! echo "table trans_inst exists - fine" -! echo `date` +select now(),'table trans_inst exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle trans_inst" -! echo `date` +select now(),'Erzeuge Tabelle trans_inst' +from xdummy; create table trans_inst( tid SERIAL not null, @@ -1823,21 +1898,21 @@ systeminfo_id INTEGER , delete from db_tabellen where name='trans_inst'; insert into db_tabellen (name,protokollierung) values('trans_inst',0); -<#if !deleted_tables?seq_contains("konstanten") && tables?seq_contains("konstanten") > +<#if !deleted_tables?seq_contains("konstanten") && tables?is_sequence && tables?seq_contains("konstanten") > -! echo "table konstanten exists - fine" -! echo `date` +select now(),'table konstanten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle konstanten" -! echo `date` +select now(),'Erzeuge Tabelle konstanten' +from xdummy; create table konstanten( - tid INTEGER not null, + tid serial not null, apnr INTEGER , beschreibung NVARCHAR(255) , defaultvalue INTEGER , @@ -1848,7 +1923,9 @@ doku_link NVARCHAR(255) , read_only INTEGER , wertebereich NVARCHAR(255) , ab_version VARCHAR(20) , -gruppe NVARCHAR(100) , +gruppe NVARCHAR(100) , +priority INTEGER , +sourcesystem INTEGER , primary key (tid) constraint co_konstanten ) @@ -1860,18 +1937,18 @@ gruppe NVARCHAR(100) , delete from db_tabellen where name='konstanten'; insert into db_tabellen (name,protokollierung) values('konstanten',0); -<#if !deleted_tables?seq_contains("lehreinheit_inst") && tables?seq_contains("lehreinheit_inst") > +<#if !deleted_tables?seq_contains("lehreinheit_inst") && tables?is_sequence && tables?seq_contains("lehreinheit_inst") > -! echo "table lehreinheit_inst exists - fine" -! echo `date` +select now(),'table lehreinheit_inst exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle lehreinheit_inst" -! echo `date` +select now(),'Erzeuge Tabelle lehreinheit_inst' +from xdummy; create table lehreinheit_inst( key_apnr CHAR(10) , @@ -1889,18 +1966,18 @@ gueltig_bis DATE delete from db_tabellen where name='lehreinheit_inst'; insert into db_tabellen (name,protokollierung) values('lehreinheit_inst',0); -<#if !deleted_tables?seq_contains("sx_stylesheets") && tables?seq_contains("sx_stylesheets") > +<#if !deleted_tables?seq_contains("sx_stylesheets") && tables?is_sequence && tables?seq_contains("sx_stylesheets") > -! echo "table sx_stylesheets exists - fine" -! echo `date` +select now(),'table sx_stylesheets exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_stylesheets" -! echo `date` +select now(),'Erzeuge Tabelle sx_stylesheets' +from xdummy; create table sx_stylesheets( tid SERIAL not null, @@ -1910,7 +1987,11 @@ description NCHAR(255) , relation CHAR(10) , useragent NCHAR(255) , contenttype NCHAR(200) , -is_generic SMALLINT default 0 , +is_generic SMALLINT default 0 , +toolbar_icon_filepath NVARCHAR(255) , +usage_resultset_data CHAR(10) default 'T' , +stylesheet_type CHAR(10) default 'XSL' , +jr_datasource CHAR(10) , primary key (tid) constraint c_stylesheets ) @@ -1922,18 +2003,18 @@ is_generic SMALLINT default 0 , delete from db_tabellen where name='sx_stylesheets'; insert into db_tabellen (name,protokollierung) values('sx_stylesheets',0); -<#if !deleted_tables?seq_contains("sx_mask_style") && tables?seq_contains("sx_mask_style") > +<#if !deleted_tables?seq_contains("sx_mask_style") && tables?is_sequence && tables?seq_contains("sx_mask_style") > -! echo "table sx_mask_style exists - fine" -! echo `date` +select now(),'table sx_mask_style exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_mask_style" -! echo `date` +select now(),'Erzeuge Tabelle sx_mask_style' +from xdummy; create table sx_mask_style( tid SERIAL not null, @@ -1951,18 +2032,49 @@ ord SMALLINT , delete from db_tabellen where name='sx_mask_style'; insert into db_tabellen (name,protokollierung) values('sx_mask_style',0); -<#if !deleted_tables?seq_contains("sx_captions") && tables?seq_contains("sx_captions") > +<#if !deleted_tables?seq_contains("sx_stylesheet_param") && tables?is_sequence && tables?seq_contains("sx_stylesheet_param") > -! echo "table sx_captions exists - fine" -! echo `date` +select now(),'table sx_stylesheet_param exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_captions" -! echo `date` +select now(),'Erzeuge Tabelle sx_stylesheet_param' +from xdummy; + +create table sx_stylesheet_param( + tid SERIAL not null, +stylesheet_id INTEGER not null, +param_name NVARCHAR(255) not null, +default_val NVARCHAR(255) , +description NVARCHAR(255) , +wertebereich NVARCHAR(255) , + primary key (tid) + constraint c_stylesheet_param +) +; + + + + +delete from db_tabellen where name='sx_stylesheet_param'; +insert into db_tabellen (name,protokollierung) values('sx_stylesheet_param',0); + +<#if !deleted_tables?seq_contains("sx_captions") && tables?is_sequence && tables?seq_contains("sx_captions") > + + +select now(),'table sx_captions exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle sx_captions' +from xdummy; create table sx_captions( tid SERIAL not null, @@ -1985,26 +2097,26 @@ export_to_glossar INTEGER , -! echo "Erzeuge Index ix_sx_captions" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions' +from xdummy; create index ix_sx_captions on sx_captions (field_name ); -! echo "Erzeuge Index ix_sx_captions2" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions2' +from xdummy; create index ix_sx_captions2 on sx_captions (table_name ); -! echo "Erzeuge Index ix_sx_captions3" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions3' +from xdummy; create index ix_sx_captions3 on sx_captions (record_no ); -! echo "Erzeuge Index ix_sx_captions4" -! echo `date` +select now(),'Erzeuge Index ix_sx_captions4' +from xdummy; create index ix_sx_captions4 on sx_captions (locale ); @@ -2012,18 +2124,18 @@ create index ix_sx_captions4 on sx_captions (locale ); delete from db_tabellen where name='sx_captions'; insert into db_tabellen (name,protokollierung) values('sx_captions',0); -<#if !deleted_tables?seq_contains("fm_templates") && tables?seq_contains("fm_templates") > +<#if !deleted_tables?seq_contains("fm_templates") && tables?is_sequence && tables?seq_contains("fm_templates") > -! echo "table fm_templates exists - fine" -! echo `date` +select now(),'table fm_templates exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle fm_templates" -! echo `date` +select now(),'Erzeuge Tabelle fm_templates' +from xdummy; create table fm_templates( tid SERIAL not null, @@ -2040,8 +2152,8 @@ version integer default 1 , -! echo "Erzeuge Index ix_fm_templates_tid" -! echo `date` +select now(),'Erzeuge Index ix_fm_templates_tid' +from xdummy; create unique index ix_fm_templates_tid on fm_templates (id ); @@ -2049,18 +2161,18 @@ create unique index ix_fm_templates_tid on fm_templates (id ); delete from db_tabellen where name='fm_templates'; insert into db_tabellen (name,protokollierung) values('fm_templates',0); -<#if !deleted_tables?seq_contains("user_sichten") && tables?seq_contains("user_sichten") > +<#if !deleted_tables?seq_contains("user_sichten") && tables?is_sequence && tables?seq_contains("user_sichten") > -! echo "table user_sichten exists - fine" -! echo `date` +select now(),'table user_sichten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_sichten" -! echo `date` +select now(),'Erzeuge Tabelle user_sichten' +from xdummy; create table user_sichten( userinfo_id INTEGER not null, @@ -2077,18 +2189,18 @@ external_entry smallint default 0 , delete from db_tabellen where name='user_sichten'; insert into db_tabellen (name,protokollierung) values('user_sichten',0); -<#if !deleted_tables?seq_contains("user_sichtarten") && tables?seq_contains("user_sichtarten") > +<#if !deleted_tables?seq_contains("user_sichtarten") && tables?is_sequence && tables?seq_contains("user_sichtarten") > -! echo "table user_sichtarten exists - fine" -! echo `date` +select now(),'table user_sichtarten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle user_sichtarten' +from xdummy; create table user_sichtarten( userinfo_id INTEGER not null, @@ -2105,18 +2217,18 @@ external_entry smallint default 0 , delete from db_tabellen where name='user_sichtarten'; insert into db_tabellen (name,protokollierung) values('user_sichtarten',0); -<#if !deleted_tables?seq_contains("group_sichten") && tables?seq_contains("group_sichten") > +<#if !deleted_tables?seq_contains("group_sichten") && tables?is_sequence && tables?seq_contains("group_sichten") > -! echo "table group_sichten exists - fine" -! echo `date` +select now(),'table group_sichten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_sichten" -! echo `date` +select now(),'Erzeuge Tabelle group_sichten' +from xdummy; create table group_sichten( groupinfo_id INTEGER , @@ -2132,18 +2244,18 @@ sicht_name_intern NCHAR(200) , delete from db_tabellen where name='group_sichten'; insert into db_tabellen (name,protokollierung) values('group_sichten',0); -<#if !deleted_tables?seq_contains("group_sichtarten") && tables?seq_contains("group_sichtarten") > +<#if !deleted_tables?seq_contains("group_sichtarten") && tables?is_sequence && tables?seq_contains("group_sichtarten") > -! echo "table group_sichtarten exists - fine" -! echo `date` +select now(),'table group_sichtarten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle group_sichtarten' +from xdummy; create table group_sichtarten( groupinfo_id INTEGER , @@ -2159,18 +2271,18 @@ sichtart NCHAR(255) , delete from db_tabellen where name='group_sichtarten'; insert into db_tabellen (name,protokollierung) values('group_sichtarten',0); -<#if !deleted_tables?seq_contains("sachgeb_sichten") && tables?seq_contains("sachgeb_sichten") > +<#if !deleted_tables?seq_contains("sachgeb_sichten") && tables?is_sequence && tables?seq_contains("sachgeb_sichten") > -! echo "table sachgeb_sichten exists - fine" -! echo `date` +select now(),'table sachgeb_sichten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sachgeb_sichten" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_sichten' +from xdummy; create table sachgeb_sichten( sachgebiete_id INTEGER , @@ -2186,18 +2298,18 @@ sicht_name_intern NCHAR(200) , delete from db_tabellen where name='sachgeb_sichten'; insert into db_tabellen (name,protokollierung) values('sachgeb_sichten',0); -<#if !deleted_tables?seq_contains("sachgeb_sichtarten") && tables?seq_contains("sachgeb_sichtarten") > +<#if !deleted_tables?seq_contains("sachgeb_sichtarten") && tables?is_sequence && tables?seq_contains("sachgeb_sichtarten") > -! echo "table sachgeb_sichtarten exists - fine" -! echo `date` +select now(),'table sachgeb_sichtarten exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sachgeb_sichtarten" -! echo `date` +select now(),'Erzeuge Tabelle sachgeb_sichtarten' +from xdummy; create table sachgeb_sichtarten( sachgebiete_id INTEGER , @@ -2213,18 +2325,18 @@ sichtart NCHAR(255) , delete from db_tabellen where name='sachgeb_sichtarten'; insert into db_tabellen (name,protokollierung) values('sachgeb_sichtarten',0); -<#if !deleted_tables?seq_contains("sx_repository") && tables?seq_contains("sx_repository") > +<#if !deleted_tables?seq_contains("sx_repository") && tables?is_sequence && tables?seq_contains("sx_repository") > -! echo "table sx_repository exists - fine" -! echo `date` +select now(),'table sx_repository exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_repository" -! echo `date` +select now(),'Erzeuge Tabelle sx_repository' +from xdummy; create table sx_repository( tid SERIAL not null, @@ -2255,18 +2367,18 @@ gueltig_bis DATE default '01.01.3000' not null, delete from db_tabellen where name='sx_repository'; insert into db_tabellen (name,protokollierung) values('sx_repository',0); -<#if !deleted_tables?seq_contains("user_pw") && tables?seq_contains("user_pw") > +<#if !deleted_tables?seq_contains("user_pw") && tables?is_sequence && tables?seq_contains("user_pw") > -! echo "table user_pw exists - fine" -! echo `date` +select now(),'table user_pw exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_pw" -! echo `date` +select now(),'Erzeuge Tabelle user_pw' +from xdummy; create table user_pw( userinfo_id INTEGER not null, @@ -2297,18 +2409,18 @@ zeitpunkt7 datetime year to second , delete from db_tabellen where name='user_pw'; insert into db_tabellen (name,protokollierung) values('user_pw',0); -<#if !deleted_tables?seq_contains("sx_downloads") && tables?seq_contains("sx_downloads") > +<#if !deleted_tables?seq_contains("sx_downloads") && tables?is_sequence && tables?seq_contains("sx_downloads") > -! echo "table sx_downloads exists - fine" -! echo `date` +select now(),'table sx_downloads exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_downloads" -! echo `date` +select now(),'Erzeuge Tabelle sx_downloads' +from xdummy; create table sx_downloads( tid SERIAL not null, @@ -2330,14 +2442,14 @@ gueltig_bis DATE default '01.01.3000' not null, -! echo "Erzeuge Index ix_sx_down_inst" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_inst' +from xdummy; create index ix_sx_down_inst on sx_downloads (ch110_institut ); -! echo "Erzeuge Index ix_sx_down_dbat" -! echo `date` +select now(),'Erzeuge Index ix_sx_down_dbat' +from xdummy; create index ix_sx_down_dbat on sx_downloads (bezugsdatum, gueltig_seit, @@ -2347,18 +2459,18 @@ gueltig_bis ); delete from db_tabellen where name='sx_downloads'; insert into db_tabellen (name,protokollierung) values('sx_downloads',0); -<#if !deleted_tables?seq_contains("download_group_bez") && tables?seq_contains("download_group_bez") > +<#if !deleted_tables?seq_contains("download_group_bez") && tables?is_sequence && tables?seq_contains("download_group_bez") > -! echo "table download_group_bez exists - fine" -! echo `date` +select now(),'table download_group_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle download_group_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_group_bez' +from xdummy; create table download_group_bez( groupinfo_id INTEGER , @@ -2374,18 +2486,18 @@ download_id INTEGER , delete from db_tabellen where name='download_group_bez'; insert into db_tabellen (name,protokollierung) values('download_group_bez',0); -<#if !deleted_tables?seq_contains("download_user_bez") && tables?seq_contains("download_user_bez") > +<#if !deleted_tables?seq_contains("download_user_bez") && tables?is_sequence && tables?seq_contains("download_user_bez") > -! echo "table download_user_bez exists - fine" -! echo `date` +select now(),'table download_user_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle download_user_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_user_bez' +from xdummy; create table download_user_bez( userinfo_id INTEGER , @@ -2401,18 +2513,18 @@ download_id INTEGER , delete from db_tabellen where name='download_user_bez'; insert into db_tabellen (name,protokollierung) values('download_user_bez',0); -<#if !deleted_tables?seq_contains("download_keyw_bez") && tables?seq_contains("download_keyw_bez") > +<#if !deleted_tables?seq_contains("download_keyw_bez") && tables?is_sequence && tables?seq_contains("download_keyw_bez") > -! echo "table download_keyw_bez exists - fine" -! echo `date` +select now(),'table download_keyw_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle download_keyw_bez" -! echo `date` +select now(),'Erzeuge Tabelle download_keyw_bez' +from xdummy; create table download_keyw_bez( keyword_id INTEGER , @@ -2428,18 +2540,18 @@ download_id INTEGER , delete from db_tabellen where name='download_keyw_bez'; insert into db_tabellen (name,protokollierung) values('download_keyw_bez',0); -<#if !deleted_tables?seq_contains("sx_keywords") && tables?seq_contains("sx_keywords") > +<#if !deleted_tables?seq_contains("sx_keywords") && tables?is_sequence && tables?seq_contains("sx_keywords") > -! echo "table sx_keywords exists - fine" -! echo `date` +select now(),'table sx_keywords exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_keywords" -! echo `date` +select now(),'Erzeuge Tabelle sx_keywords' +from xdummy; create table sx_keywords( tid SERIAL , @@ -2456,18 +2568,18 @@ parent INTEGER , delete from db_tabellen where name='sx_keywords'; insert into db_tabellen (name,protokollierung) values('sx_keywords',0); -<#if !deleted_tables?seq_contains("user_startpage") && tables?seq_contains("user_startpage") > +<#if !deleted_tables?seq_contains("user_startpage") && tables?is_sequence && tables?seq_contains("user_startpage") > -! echo "table user_startpage exists - fine" -! echo `date` +select now(),'table user_startpage exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_startpage" -! echo `date` +select now(),'Erzeuge Tabelle user_startpage' +from xdummy; create table user_startpage( tid serial not null, @@ -2491,8 +2603,8 @@ active integer not null, -! echo "Erzeuge Index ix_ussp" -! echo `date` +select now(),'Erzeuge Index ix_ussp' +from xdummy; create index ix_ussp on user_startpage (userid ); @@ -2500,18 +2612,18 @@ create index ix_ussp on user_startpage (userid ); delete from db_tabellen where name='user_startpage'; insert into db_tabellen (name,protokollierung) values('user_startpage',0); -<#if !deleted_tables?seq_contains("user_startfields") && tables?seq_contains("user_startfields") > +<#if !deleted_tables?seq_contains("user_startfields") && tables?is_sequence && tables?seq_contains("user_startfields") > -! echo "table user_startfields exists - fine" -! echo `date` +select now(),'table user_startfields exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_startfields" -! echo `date` +select now(),'Erzeuge Tabelle user_startfields' +from xdummy; create table user_startfields( tid serial not null, @@ -2527,8 +2639,8 @@ active integer not null, -! echo "Erzeuge Index ix_ussf" -! echo `date` +select now(),'Erzeuge Index ix_ussf' +from xdummy; create index ix_ussf on user_startfields (userid ); @@ -2536,18 +2648,18 @@ create index ix_ussf on user_startfields (userid ); delete from db_tabellen where name='user_startfields'; insert into db_tabellen (name,protokollierung) values('user_startfields',0); -<#if !deleted_tables?seq_contains("user_dialog") && tables?seq_contains("user_dialog") > +<#if !deleted_tables?seq_contains("user_dialog") && tables?is_sequence && tables?seq_contains("user_dialog") > -! echo "table user_dialog exists - fine" -! echo `date` +select now(),'table user_dialog exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_dialog" -! echo `date` +select now(),'Erzeuge Tabelle user_dialog' +from xdummy; create table user_dialog( id SERIAL not null, @@ -2577,18 +2689,18 @@ attrib3 NVARCHAR(255) , delete from db_tabellen where name='user_dialog'; insert into db_tabellen (name,protokollierung) values('user_dialog',0); -<#if !deleted_tables?seq_contains("user_dialog_accept") && tables?seq_contains("user_dialog_accept") > +<#if !deleted_tables?seq_contains("user_dialog_accept") && tables?is_sequence && tables?seq_contains("user_dialog_accept") > -! echo "table user_dialog_accept exists - fine" -! echo `date` +select now(),'table user_dialog_accept exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_dialog_accept" -! echo `date` +select now(),'Erzeuge Tabelle user_dialog_accept' +from xdummy; create table user_dialog_accept( id SERIAL not null, @@ -2608,18 +2720,18 @@ timestamp datetime year to second not null, delete from db_tabellen where name='user_dialog_accept'; insert into db_tabellen (name,protokollierung) values('user_dialog_accept',0); -<#if !deleted_tables?seq_contains("user_hinweis") && tables?seq_contains("user_hinweis") > +<#if !deleted_tables?seq_contains("user_hinweis") && tables?is_sequence && tables?seq_contains("user_hinweis") > -! echo "table user_hinweis exists - fine" -! echo `date` +select now(),'table user_hinweis exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_hinweis" -! echo `date` +select now(),'Erzeuge Tabelle user_hinweis' +from xdummy; create table user_hinweis( userinfo_id INTEGER not null, @@ -2635,18 +2747,18 @@ hinweise_id integer not null, delete from db_tabellen where name='user_hinweis'; insert into db_tabellen (name,protokollierung) values('user_hinweis',0); -<#if !deleted_tables?seq_contains("group_hinweis") && tables?seq_contains("group_hinweis") > +<#if !deleted_tables?seq_contains("group_hinweis") && tables?is_sequence && tables?seq_contains("group_hinweis") > -! echo "table group_hinweis exists - fine" -! echo `date` +select now(),'table group_hinweis exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_hinweis" -! echo `date` +select now(),'Erzeuge Tabelle group_hinweis' +from xdummy; create table group_hinweis( groupinfo_id INTEGER not null, @@ -2662,18 +2774,18 @@ hinweise_id integer not null, delete from db_tabellen where name='group_hinweis'; insert into db_tabellen (name,protokollierung) values('group_hinweis',0); -<#if !deleted_tables?seq_contains("unload_params") && tables?seq_contains("unload_params") > +<#if !deleted_tables?seq_contains("unload_params") && tables?is_sequence && tables?seq_contains("unload_params") > -! echo "table unload_params exists - fine" -! echo `date` +select now(),'table unload_params exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle unload_params" -! echo `date` +select now(),'Erzeuge Tabelle unload_params' +from xdummy; create table unload_params( tid SERIAL not null, @@ -2681,7 +2793,12 @@ param_id NVARCHAR(255) not null, param_val NVARCHAR(255) , default_val NVARCHAR(255) , description NVARCHAR(255) , -systeminfo_id INTEGER , +systeminfo_id INTEGER , +priority INTEGER , +sourcesystem INTEGER , +wertebereich NVARCHAR(255) , +ab_version VARCHAR(20) , +gruppe NVARCHAR(100) , primary key (tid) constraint c_unload_params ) @@ -2693,18 +2810,18 @@ systeminfo_id INTEGER , delete from db_tabellen where name='unload_params'; insert into db_tabellen (name,protokollierung) values('unload_params',0); -<#if !deleted_tables?seq_contains("sx_tables") && tables?seq_contains("sx_tables") > +<#if !deleted_tables?seq_contains("sx_tables") && tables?is_sequence && tables?seq_contains("sx_tables") > -! echo "table sx_tables exists - fine" -! echo `date` +select now(),'table sx_tables exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_tables" -! echo `date` +select now(),'Erzeuge Tabelle sx_tables' +from xdummy; create table sx_tables( tid SERIAL not null, @@ -2724,8 +2841,8 @@ sachgebiete_id NVARCHAR(255) , -! echo "Erzeuge Index ix_sx_tables" -! echo `date` +select now(),'Erzeuge Index ix_sx_tables' +from xdummy; create unique index ix_sx_tables on sx_tables (name ); @@ -2733,18 +2850,18 @@ create unique index ix_sx_tables on sx_tables (name ); delete from db_tabellen where name='sx_tables'; insert into db_tabellen (name,protokollierung) values('sx_tables',0); -<#if !deleted_tables?seq_contains("sx_fields") && tables?seq_contains("sx_fields") > +<#if !deleted_tables?seq_contains("sx_fields") && tables?is_sequence && tables?seq_contains("sx_fields") > -! echo "table sx_fields exists - fine" -! echo `date` +select now(),'table sx_fields exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_fields" -! echo `date` +select now(),'Erzeuge Tabelle sx_fields' +from xdummy; create table sx_fields( tid SERIAL not null, @@ -2777,18 +2894,18 @@ foreignkey_uniquename NVARCHAR(255) , delete from db_tabellen where name='sx_fields'; insert into db_tabellen (name,protokollierung) values('sx_fields',0); -<#if !deleted_tables?seq_contains("dimension_bp") && tables?seq_contains("dimension_bp") > +<#if !deleted_tables?seq_contains("dimension_bp") && tables?is_sequence && tables?seq_contains("dimension_bp") > -! echo "table dimension_bp exists - fine" -! echo `date` +select now(),'table dimension_bp exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dimension_bp" -! echo `date` +select now(),'Erzeuge Tabelle dimension_bp' +from xdummy; create table dimension_bp( tid SERIAL not null, @@ -2819,18 +2936,18 @@ system_key NVARCHAR(255) , delete from db_tabellen where name='dimension_bp'; insert into db_tabellen (name,protokollierung) values('dimension_bp',0); -<#if !deleted_tables?seq_contains("dimension") && tables?seq_contains("dimension") > +<#if !deleted_tables?seq_contains("dimension") && tables?is_sequence && tables?seq_contains("dimension") > -! echo "table dimension exists - fine" -! echo `date` +select now(),'table dimension exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dimension" -! echo `date` +select now(),'Erzeuge Tabelle dimension' +from xdummy; create table dimension( tid SERIAL not null, @@ -2856,18 +2973,18 @@ system_key NVARCHAR(255) , delete from db_tabellen where name='dimension'; insert into db_tabellen (name,protokollierung) values('dimension',0); -<#if !deleted_tables?seq_contains("dim_bp_apnr") && tables?seq_contains("dim_bp_apnr") > +<#if !deleted_tables?seq_contains("dim_bp_apnr") && tables?is_sequence && tables?seq_contains("dim_bp_apnr") > -! echo "table dim_bp_apnr exists - fine" -! echo `date` +select now(),'table dim_bp_apnr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Tabelle dim_bp_apnr' +from xdummy; create table dim_bp_apnr( dimension_bp_id INTEGER not null, @@ -2894,35 +3011,35 @@ sortorder INTEGER -! echo "Erzeuge Index ix_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr' +from xdummy; create unique index ix_dim_bp_apnr on dim_bp_apnr (dimension_bp_id, apnr ); -! echo "Erzeuge Index ix_dim_bp_apnr2" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_apnr2' +from xdummy; create index ix_dim_bp_apnr2 on dim_bp_apnr (systeminfo_id ); -! echo "Erzeuge Index ix_level1_int1" -! echo `date` +select now(),'Erzeuge Index ix_level1_int1' +from xdummy; create index ix_level1_int1 on dim_bp_apnr (level1_int, level1_char ); -! echo "Erzeuge Index ix_level1_int2" -! echo `date` +select now(),'Erzeuge Index ix_level1_int2' +from xdummy; create index ix_level1_int2 on dim_bp_apnr (level2_int, level2_char ); -! echo "Erzeuge Index ix_level3_int1" -! echo `date` +select now(),'Erzeuge Index ix_level3_int1' +from xdummy; create index ix_level3_int1 on dim_bp_apnr (level3_int, level3_char ); @@ -2931,18 +3048,18 @@ level3_char ); delete from db_tabellen where name='dim_bp_apnr'; insert into db_tabellen (name,protokollierung) values('dim_bp_apnr',0); -<#if !deleted_tables?seq_contains("dim_bp_altsicht_apnr") && tables?seq_contains("dim_bp_altsicht_apnr") > +<#if !deleted_tables?seq_contains("dim_bp_altsicht_apnr") && tables?is_sequence && tables?seq_contains("dim_bp_altsicht_apnr") > -! echo "table dim_bp_altsicht_apnr exists - fine" -! echo `date` +select now(),'table dim_bp_altsicht_apnr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dim_bp_altsicht_apnr" -! echo `date` +select now(),'Erzeuge Tabelle dim_bp_altsicht_apnr' +from xdummy; create table dim_bp_altsicht_apnr( hierarchie_id NVARCHAR(200) not null, @@ -2958,8 +3075,8 @@ systeminfo_id INTEGER -! echo "Erzeuge Index ix_dim_bp_alts1" -! echo `date` +select now(),'Erzeuge Index ix_dim_bp_alts1' +from xdummy; create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); @@ -2967,18 +3084,18 @@ create index ix_dim_bp_alts1 on dim_bp_altsicht_apnr (hierarchie_id ); delete from db_tabellen where name='dim_bp_altsicht_apnr'; insert into db_tabellen (name,protokollierung) values('dim_bp_altsicht_apnr',0); -<#if !deleted_tables?seq_contains("dim_closure") && tables?seq_contains("dim_closure") > +<#if !deleted_tables?seq_contains("dim_closure") && tables?is_sequence && tables?seq_contains("dim_closure") > -! echo "table dim_closure exists - fine" -! echo `date` +select now(),'table dim_closure exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle dim_closure" -! echo `date` +select now(),'Erzeuge Tabelle dim_closure' +from xdummy; create table dim_closure( dimension_bp_id INTEGER , @@ -2992,15 +3109,15 @@ distance INTEGER -! echo "Erzeuge Index ix_dim_c1" -! echo `date` +select now(),'Erzeuge Index ix_dim_c1' +from xdummy; create index ix_dim_c1 on dim_closure (hierarchie_id, key ); -! echo "Erzeuge Index ix_dim_c2" -! echo `date` +select now(),'Erzeuge Index ix_dim_c2' +from xdummy; create index ix_dim_c2 on dim_closure (hierarchie_id, parent, @@ -3010,18 +3127,18 @@ key ); delete from db_tabellen where name='dim_closure'; insert into db_tabellen (name,protokollierung) values('dim_closure',0); -<#if !deleted_tables?seq_contains("mondrian_schema") && tables?seq_contains("mondrian_schema") > +<#if !deleted_tables?seq_contains("mondrian_schema") && tables?is_sequence && tables?seq_contains("mondrian_schema") > -! echo "table mondrian_schema exists - fine" -! echo `date` +select now(),'table mondrian_schema exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle mondrian_schema" -! echo `date` +select now(),'Erzeuge Tabelle mondrian_schema' +from xdummy; create table mondrian_schema( id SERIAL , @@ -3041,18 +3158,18 @@ node NVARCHAR(255) , delete from db_tabellen where name='mondrian_schema'; insert into db_tabellen (name,protokollierung) values('mondrian_schema',0); -<#if !deleted_tables?seq_contains("trans_dim_bp_apnr") && tables?seq_contains("trans_dim_bp_apnr") > +<#if !deleted_tables?seq_contains("trans_dim_bp_apnr") && tables?is_sequence && tables?seq_contains("trans_dim_bp_apnr") > -! echo "table trans_dim_bp_apnr exists - fine" -! echo `date` +select now(),'table trans_dim_bp_apnr exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle trans_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Tabelle trans_dim_bp_apnr' +from xdummy; create table trans_dim_bp_apnr( dimension_bp_id INTEGER not null, @@ -3065,8 +3182,8 @@ systeminfo_id INTEGER -! echo "Erzeuge Index ix_tr_dim_bp_apnr" -! echo `date` +select now(),'Erzeuge Index ix_tr_dim_bp_apnr' +from xdummy; create index ix_tr_dim_bp_apnr on trans_dim_bp_apnr (dimension_bp_id, sourcesystem_id, @@ -3076,18 +3193,18 @@ systeminfo_id ); delete from db_tabellen where name='trans_dim_bp_apnr'; insert into db_tabellen (name,protokollierung) values('trans_dim_bp_apnr',0); -<#if !deleted_tables?seq_contains("masken_protokoll") && tables?seq_contains("masken_protokoll") > +<#if !deleted_tables?seq_contains("masken_protokoll") && tables?is_sequence && tables?seq_contains("masken_protokoll") > -! echo "table masken_protokoll exists - fine" -! echo `date` +select now(),'table masken_protokoll exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle masken_protokoll" -! echo `date` +select now(),'Erzeuge Tabelle masken_protokoll' +from xdummy; create table masken_protokoll( tid SERIAL not null, @@ -3104,18 +3221,18 @@ kommentar NVARCHAR(255) delete from db_tabellen where name='masken_protokoll'; insert into db_tabellen (name,protokollierung) values('masken_protokoll',0); -<#if !deleted_tables?seq_contains("masken_prot_feld") && tables?seq_contains("masken_prot_feld") > +<#if !deleted_tables?seq_contains("masken_prot_feld") && tables?is_sequence && tables?seq_contains("masken_prot_feld") > -! echo "table masken_prot_feld exists - fine" -! echo `date` +select now(),'table masken_prot_feld exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle masken_prot_feld" -! echo `date` +select now(),'Erzeuge Tabelle masken_prot_feld' +from xdummy; create table masken_prot_feld( tid SERIAL not null, @@ -3133,18 +3250,18 @@ caption NVARCHAR(255) delete from db_tabellen where name='masken_prot_feld'; insert into db_tabellen (name,protokollierung) values('masken_prot_feld',0); -<#if !deleted_tables?seq_contains("data_upload") && tables?seq_contains("data_upload") > +<#if !deleted_tables?seq_contains("data_upload") && tables?is_sequence && tables?seq_contains("data_upload") > -! echo "table data_upload exists - fine" -! echo `date` +select now(),'table data_upload exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle data_upload" -! echo `date` +select now(),'Erzeuge Tabelle data_upload' +from xdummy; create table data_upload( tid SERIAL not null, @@ -3179,18 +3296,18 @@ processed_noted SMALLINT default 0 , delete from db_tabellen where name='data_upload'; insert into db_tabellen (name,protokollierung) values('data_upload',0); -<#if !deleted_tables?seq_contains("update_prot") && tables?seq_contains("update_prot") > +<#if !deleted_tables?seq_contains("update_prot") && tables?is_sequence && tables?seq_contains("update_prot") > -! echo "table update_prot exists - fine" -! echo `date` +select now(),'table update_prot exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle update_prot" -! echo `date` +select now(),'Erzeuge Tabelle update_prot' +from xdummy; create table update_prot( tid SERIAL not null, @@ -3210,18 +3327,18 @@ update_time datetime year to second , delete from db_tabellen where name='update_prot'; insert into db_tabellen (name,protokollierung) values('update_prot',0); -<#if !deleted_tables?seq_contains("update_prot_neu") && tables?seq_contains("update_prot_neu") > +<#if !deleted_tables?seq_contains("update_prot_neu") && tables?is_sequence && tables?seq_contains("update_prot_neu") > -! echo "table update_prot_neu exists - fine" -! echo `date` +select now(),'table update_prot_neu exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle update_prot_neu" -! echo `date` +select now(),'Erzeuge Tabelle update_prot_neu' +from xdummy; create table update_prot_neu( systeminfo_id INTEGER default 0 not null, @@ -3237,18 +3354,18 @@ updated_at datetime year to second delete from db_tabellen where name='update_prot_neu'; insert into db_tabellen (name,protokollierung) values('update_prot_neu',0); -<#if !deleted_tables?seq_contains("personattribute_neu") && tables?seq_contains("personattribute_neu") > +<#if !deleted_tables?seq_contains("personattribute_neu") && tables?is_sequence && tables?seq_contains("personattribute_neu") > -! echo "table personattribute_neu exists - fine" -! echo `date` +select now(),'table personattribute_neu exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle personattribute_neu" -! echo `date` +select now(),'Erzeuge Tabelle personattribute_neu' +from xdummy; create table personattribute_neu( id INTEGER not null, @@ -3270,18 +3387,18 @@ semester_bis INTEGER delete from db_tabellen where name='personattribute_neu'; insert into db_tabellen (name,protokollierung) values('personattribute_neu',0); -<#if !deleted_tables?seq_contains("personattribute") && tables?seq_contains("personattribute") > +<#if !deleted_tables?seq_contains("personattribute") && tables?is_sequence && tables?seq_contains("personattribute") > -! echo "table personattribute exists - fine" -! echo `date` +select now(),'table personattribute exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle personattribute" -! echo `date` +select now(),'Erzeuge Tabelle personattribute' +from xdummy; create table personattribute( person_id INTEGER not null, @@ -3302,18 +3419,18 @@ semester_bis INTEGER delete from db_tabellen where name='personattribute'; insert into db_tabellen (name,protokollierung) values('personattribute',0); -<#if !deleted_tables?seq_contains("personattributetype") && tables?seq_contains("personattributetype") > +<#if !deleted_tables?seq_contains("personattributetype") && tables?is_sequence && tables?seq_contains("personattributetype") > -! echo "table personattributetype exists - fine" -! echo `date` +select now(),'table personattributetype exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle personattributetype" -! echo `date` +select now(),'Erzeuge Tabelle personattributetype' +from xdummy; create table personattributetype( personattributetype_id INTEGER not null, @@ -3327,18 +3444,18 @@ attributevalue NVARCHAR(255) delete from db_tabellen where name='personattributetype'; insert into db_tabellen (name,protokollierung) values('personattributetype',0); -<#if !deleted_tables?seq_contains("personattribute_value_list") && tables?seq_contains("personattribute_value_list") > +<#if !deleted_tables?seq_contains("personattribute_value_list") && tables?is_sequence && tables?seq_contains("personattribute_value_list") > -! echo "table personattribute_value_list exists - fine" -! echo `date` +select now(),'table personattribute_value_list exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle personattribute_value_list" -! echo `date` +select now(),'Erzeuge Tabelle personattribute_value_list' +from xdummy; create table personattribute_value_list( personattributetype_id INTEGER not null, @@ -3355,18 +3472,18 @@ longtext NVARCHAR(255) delete from db_tabellen where name='personattribute_value_list'; insert into db_tabellen (name,protokollierung) values('personattribute_value_list',0); -<#if !deleted_tables?seq_contains("user_preset_values") && tables?seq_contains("user_preset_values") > +<#if !deleted_tables?seq_contains("user_preset_values") && tables?is_sequence && tables?seq_contains("user_preset_values") > -! echo "table user_preset_values exists - fine" -! echo `date` +select now(),'table user_preset_values exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_preset_values" -! echo `date` +select now(),'Erzeuge Tabelle user_preset_values' +from xdummy; create table user_preset_values( userinfo_id INTEGER , @@ -3383,18 +3500,18 @@ field_value NVARCHAR(255) , delete from db_tabellen where name='user_preset_values'; insert into db_tabellen (name,protokollierung) values('user_preset_values',0); -<#if !deleted_tables?seq_contains("sx_portlet") && tables?seq_contains("sx_portlet") > +<#if !deleted_tables?seq_contains("sx_portlet") && tables?is_sequence && tables?seq_contains("sx_portlet") > -! echo "table sx_portlet exists - fine" -! echo `date` +select now(),'table sx_portlet exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_portlet" -! echo `date` +select now(),'Erzeuge Tabelle sx_portlet' +from xdummy; create table sx_portlet( tid SERIAL not null, @@ -3418,18 +3535,18 @@ gueltig_bis DATE default '01.01.3000' not null, delete from db_tabellen where name='sx_portlet'; insert into db_tabellen (name,protokollierung) values('sx_portlet',0); -<#if !deleted_tables?seq_contains("user_portlet_bez") && tables?seq_contains("user_portlet_bez") > +<#if !deleted_tables?seq_contains("user_portlet_bez") && tables?is_sequence && tables?seq_contains("user_portlet_bez") > -! echo "table user_portlet_bez exists - fine" -! echo `date` +select now(),'table user_portlet_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle user_portlet_bez" -! echo `date` +select now(),'Erzeuge Tabelle user_portlet_bez' +from xdummy; create table user_portlet_bez( userinfo_id INTEGER , @@ -3445,18 +3562,18 @@ portlet_id INTEGER , delete from db_tabellen where name='user_portlet_bez'; insert into db_tabellen (name,protokollierung) values('user_portlet_bez',0); -<#if !deleted_tables?seq_contains("group_portlet_bez") && tables?seq_contains("group_portlet_bez") > +<#if !deleted_tables?seq_contains("group_portlet_bez") && tables?is_sequence && tables?seq_contains("group_portlet_bez") > -! echo "table group_portlet_bez exists - fine" -! echo `date` +select now(),'table group_portlet_bez exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle group_portlet_bez" -! echo `date` +select now(),'Erzeuge Tabelle group_portlet_bez' +from xdummy; create table group_portlet_bez( groupinfo_id INTEGER , @@ -3472,18 +3589,59 @@ portlet_id INTEGER , delete from db_tabellen where name='group_portlet_bez'; insert into db_tabellen (name,protokollierung) values('group_portlet_bez',0); -<#if !deleted_tables?seq_contains("sieve") && tables?seq_contains("sieve") > +<#if !deleted_tables?seq_contains("kern_cifx_neu") && tables?is_sequence && tables?seq_contains("kern_cifx_neu") > + + +select now(),'table kern_cifx_neu exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle kern_cifx_neu' +from xdummy; + +create table kern_cifx_neu( + key SMALLINT not null, +hs INTEGER not null, +apnr NVARCHAR(255) , +kurz CHAR(10) , +druck NVARCHAR(200) , +lang_1 NCHAR(255) , +astat CHAR(50) , +parent NVARCHAR(255) , +uniquename NVARCHAR(255) , +bund_apnr CHAR(10) , +d_akt_von DATE , +d_akt_bis DATE , +sourcesystem_id NVARCHAR(255) , +hiskey_id NVARCHAR(255) , +struktur_c CHAR(50) , +lid NVARCHAR(255) , +parent_lid NVARCHAR(255) , +sortorder INTEGER +) +; + -! echo "table sieve exists - fine" -! echo `date` + +delete from db_tabellen where name='kern_cifx_neu'; +insert into db_tabellen (name,protokollierung) values('kern_cifx_neu',0); + +<#if !deleted_tables?seq_contains("sieve") && tables?is_sequence && tables?seq_contains("sieve") > + + +select now(),'table sieve exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sieve" -! echo `date` +select now(),'Erzeuge Tabelle sieve' +from xdummy; create table sieve( tid SERIAL not null, @@ -3492,6 +3650,9 @@ main_table VARCHAR(50) not null, order_by NVARCHAR(255) , sachgebiete_id INTEGER not null, systeminfo_id INTEGER not null, +post_processing TEXT , +post_insert TEXT , +finalize TEXT , active SMALLINT default 1 , hsnr SMALLINT , primary key (tid) @@ -3505,18 +3666,18 @@ hsnr SMALLINT , delete from db_tabellen where name='sieve'; insert into db_tabellen (name,protokollierung) values('sieve',0); -<#if !deleted_tables?seq_contains("sieve_column_def") && tables?seq_contains("sieve_column_def") > +<#if !deleted_tables?seq_contains("sieve_column_def") && tables?is_sequence && tables?seq_contains("sieve_column_def") > -! echo "table sieve_column_def exists - fine" -! echo `date` +select now(),'table sieve_column_def exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sieve_column_def" -! echo `date` +select now(),'Erzeuge Tabelle sieve_column_def' +from xdummy; create table sieve_column_def( tid SERIAL not null, @@ -3531,7 +3692,7 @@ lookup_tab NVARCHAR(255) , lookup_joinsource NVARCHAR(255) , lookup_jointarget NVARCHAR(255) , lookup_target NVARCHAR(255) , -lookup_cond TEXT , +lookup_cond NVARCHAR(255) , lookup_func NVARCHAR(255) , hinweis NVARCHAR(255) , primary key (tid) @@ -3541,22 +3702,28 @@ hinweis NVARCHAR(255) , + +select now(),'Erzeuge Index ix_sieve_column_defm' +from xdummy; + +create unique index ix_sieve_column_defm on sieve_column_def (m_id ); + delete from db_tabellen where name='sieve_column_def'; insert into db_tabellen (name,protokollierung) values('sieve_column_def',0); -<#if !deleted_tables?seq_contains("sieve_column") && tables?seq_contains("sieve_column") > +<#if !deleted_tables?seq_contains("sieve_column") && tables?is_sequence && tables?seq_contains("sieve_column") > -! echo "table sieve_column exists - fine" -! echo `date` +select now(),'table sieve_column exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sieve_column" -! echo `date` +select now(),'Erzeuge Tabelle sieve_column' +from xdummy; create table sieve_column( tid SERIAL not null, @@ -3576,18 +3743,18 @@ active SMALLINT default 1 , delete from db_tabellen where name='sieve_column'; insert into db_tabellen (name,protokollierung) values('sieve_column',0); -<#if !deleted_tables?seq_contains("sieve_field") && tables?seq_contains("sieve_field") > +<#if !deleted_tables?seq_contains("sieve_field") && tables?is_sequence && tables?seq_contains("sieve_field") > -! echo "table sieve_field exists - fine" -! echo `date` +select now(),'table sieve_field exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sieve_field" -! echo `date` +select now(),'Erzeuge Tabelle sieve_field' +from xdummy; create table sieve_field( tid SERIAL not null, @@ -3609,18 +3776,18 @@ active SMALLINT default 1 , delete from db_tabellen where name='sieve_field'; insert into db_tabellen (name,protokollierung) values('sieve_field',0); -<#if !deleted_tables?seq_contains("sx_jobs") && tables?seq_contains("sx_jobs") > +<#if !deleted_tables?seq_contains("sx_jobs") && tables?is_sequence && tables?seq_contains("sx_jobs") > -! echo "table sx_jobs exists - fine" -! echo `date` +select now(),'table sx_jobs exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_jobs" -! echo `date` +select now(),'Erzeuge Tabelle sx_jobs' +from xdummy; create table sx_jobs( tid SERIAL not null, @@ -3641,8 +3808,8 @@ check_sql TEXT , -! echo "Erzeuge Index ix_sx_jobs_un" -! echo `date` +select now(),'Erzeuge Index ix_sx_jobs_un' +from xdummy; create unique index ix_sx_jobs_un on sx_jobs (uniquename ); @@ -3650,18 +3817,605 @@ create unique index ix_sx_jobs_un on sx_jobs (uniquename ); delete from db_tabellen where name='sx_jobs'; insert into db_tabellen (name,protokollierung) values('sx_jobs',0); -<#if !deleted_tables?seq_contains("sx_mail") && tables?seq_contains("sx_mail") > +<#if !deleted_tables?seq_contains("orgunit_mapping") && tables?is_sequence && tables?seq_contains("orgunit_mapping") > + + +select now(),'table orgunit_mapping exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle orgunit_mapping' +from xdummy; + +create table orgunit_mapping( + apnr NVARCHAR(255) , +mapped_id NVARCHAR(255) , +uniquename NVARCHAR(255) not null, +lid NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='orgunit_mapping'; +insert into db_tabellen (name,protokollierung) values('orgunit_mapping',0); + +<#if !deleted_tables?seq_contains("implicit_orgunit_rights") && tables?is_sequence && tables?seq_contains("implicit_orgunit_rights") > + + +select now(),'table implicit_orgunit_rights exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle implicit_orgunit_rights' +from xdummy; + +create table implicit_orgunit_rights( + userinfo_id INTEGER , +apnr NVARCHAR(255) , +uniquename NVARCHAR(255) not null, +lid NVARCHAR(255) +) +; + + + + +select now(),'Erzeuge Index ix_implicit_orgrights1' +from xdummy; + +create index ix_implicit_orgrights1 on implicit_orgunit_rights (userinfo_id ); + + +delete from db_tabellen where name='implicit_orgunit_rights'; +insert into db_tabellen (name,protokollierung) values('implicit_orgunit_rights',0); + +<#if !deleted_tables?seq_contains("kern_pruefrout") && tables?is_sequence && tables?seq_contains("kern_pruefrout") > + + +select now(),'table kern_pruefrout exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle kern_pruefrout' +from xdummy; + +create table kern_pruefrout( + tid SERIAL , +datum DATE , +gueltig_von DATE , +gueltig_bis DATE , +tabelle_quelle CHAR(18) , +tabelle CHAR(18) , +problem NCHAR(255) , +aktion NCHAR(255) , + primary key (tid) + constraint ix_kern_pruef_tid +) +; + + + + +delete from db_tabellen where name='kern_pruefrout'; +insert into db_tabellen (name,protokollierung) values('kern_pruefrout',0); + +<#if !deleted_tables?seq_contains("masken_statistik") && tables?is_sequence && tables?seq_contains("masken_statistik") > + + +select now(),'table masken_statistik exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle masken_statistik' +from xdummy; + +create table masken_statistik( + id SERIAL not null, +tid INTEGER not null, +counter INTEGER , +first_call DATE , +last_call DATE , + primary key (id) + constraint masken_statistik_id +) +; + + + + +delete from db_tabellen where name='masken_statistik'; +insert into db_tabellen (name,protokollierung) values('masken_statistik',0); + +<#if !deleted_tables?seq_contains("dim_datum") && tables?is_sequence && tables?seq_contains("dim_datum") > + + +select now(),'table dim_datum exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle dim_datum' +from xdummy; + +create table dim_datum( + id INTEGER not null, +year INTEGER , +month INTEGER , +day_of_month INTEGER , +day_of_week INTEGER , +day_of_year INTEGER , +week_of_year INTEGER , +day_name VARCHAR(25) , +month_name VARCHAR(25) , +quarter INTEGER , +weekend_ind CHAR(1) , +days_in_month INTEGER , +day_desc VARCHAR(25) , +day_date DATE , +semester VARCHAR(25) , +semester_key INTEGER , + primary key (id) + constraint dim_datum_id +) +; + + + + +select now(),'Erzeuge Index ix_dim_datum_day_date' +from xdummy; + +create index ix_dim_datum_day_date on dim_datum (day_date ); + + +delete from db_tabellen where name='dim_datum'; +insert into db_tabellen (name,protokollierung) values('dim_datum',0); + +<#if !deleted_tables?seq_contains("hisinone_deleted_entity") && tables?is_sequence && tables?seq_contains("hisinone_deleted_entity") > + + +select now(),'table hisinone_deleted_entity exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle hisinone_deleted_entity' +from xdummy; + +create table hisinone_deleted_entity( + person_id INTEGER , +matrikel_nr INTEGER , +entity NVARCHAR(255) , +deleted_in_hisinone datetime year to second , +deleted_in_bi datetime year to second , +job NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='hisinone_deleted_entity'; +insert into db_tabellen (name,protokollierung) values('hisinone_deleted_entity',0); + +<#if !deleted_tables?seq_contains("etl_step") && tables?is_sequence && tables?seq_contains("etl_step") > + + +select now(),'table etl_step exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_step' +from xdummy; + +create table etl_step( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +systeminfo_id INTEGER not null, +step_type_id INTEGER not null, +logfile NVARCHAR(255) , +custom_step SMALLINT default 1 , + primary key (tid) + constraint etl_step_pk +) +; + + + + +delete from db_tabellen where name='etl_step'; +insert into db_tabellen (name,protokollierung) values('etl_step',0); + +<#if !deleted_tables?seq_contains("etl_step_type") && tables?is_sequence && tables?seq_contains("etl_step_type") > + + +select now(),'table etl_step_type exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_step_type' +from xdummy; + +create table etl_step_type( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +handler NVARCHAR(255) , + primary key (tid) + constraint etl_step_type_pk +) +; + + + + +delete from db_tabellen where name='etl_step_type'; +insert into db_tabellen (name,protokollierung) values('etl_step_type',0); + +<#if !deleted_tables?seq_contains("etl_step_type_param") && tables?is_sequence && tables?seq_contains("etl_step_type_param") > + + +select now(),'table etl_step_type_param exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_step_type_param' +from xdummy; + +create table etl_step_type_param( + tid SERIAL not null, +etl_step_type_id INTEGER not null, +uniquename NVARCHAR(255) not null, +name NVARCHAR(255) , +param_default NVARCHAR(255) , + primary key (tid) + constraint etl_step_type_param_pk +) +; + + + + +delete from db_tabellen where name='etl_step_type_param'; +insert into db_tabellen (name,protokollierung) values('etl_step_type_param',0); + +<#if !deleted_tables?seq_contains("etl_step_property") && tables?is_sequence && tables?seq_contains("etl_step_property") > + + +select now(),'table etl_step_property exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_step_property' +from xdummy; + +create table etl_step_property( + tid SERIAL not null, +etl_step_id INTEGER not null, +prop_name NVARCHAR(255) , +prop_value TEXT , + primary key (tid) + constraint etl_step_property_pk +) +; + + + + +delete from db_tabellen where name='etl_step_property'; +insert into db_tabellen (name,protokollierung) values('etl_step_property',0); + +<#if !deleted_tables?seq_contains("etl_step_relation") && tables?is_sequence && tables?seq_contains("etl_step_relation") > + + +select now(),'table etl_step_relation exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_step_relation' +from xdummy; + +create table etl_step_relation( + tid SERIAL not null, +step_id INTEGER not null, +parent_step_id INTEGER , +job_id INTEGER not null, +force_continue SMALLINT default 1 , +step_active SMALLINT default 1 , +sortnr INTEGER default 1 , +custom_step SMALLINT default 1 , + primary key (tid) + constraint etl_step_relation_pk +) +; + + + + +delete from db_tabellen where name='etl_step_relation'; +insert into db_tabellen (name,protokollierung) values('etl_step_relation',0); + +<#if !deleted_tables?seq_contains("etl_job") && tables?is_sequence && tables?seq_contains("etl_job") > + + +select now(),'table etl_job exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_job' +from xdummy; + +create table etl_job( + tid SERIAL not null, +uniquename NVARCHAR(255) not null, +caption NVARCHAR(255) , +systeminfo_id INTEGER not null, +logfile NVARCHAR(255) , +custom_job SMALLINT default 1 , + primary key (tid) + constraint etl_job_pk +) +; + + + + +select now(),'Erzeuge Index ix_etl_job1' +from xdummy; + +create unique index ix_etl_job1 on etl_job (uniquename ); + + +delete from db_tabellen where name='etl_job'; +insert into db_tabellen (name,protokollierung) values('etl_job',0); + +<#if !deleted_tables?seq_contains("etl_job_param") && tables?is_sequence && tables?seq_contains("etl_job_param") > + + +select now(),'table etl_job_param exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle etl_job_param' +from xdummy; + +create table etl_job_param( + tid SERIAL not null, +etl_job_id INTEGER not null, +uniquename NVARCHAR(255) not null, +name NVARCHAR(255) , +param_default NVARCHAR(255) , + primary key (tid) + constraint etl_job_param_pk +) +; + + + + +delete from db_tabellen where name='etl_job_param'; +insert into db_tabellen (name,protokollierung) values('etl_job_param',0); + +<#if !deleted_tables?seq_contains("k_astat_studienfach_land") && tables?is_sequence && tables?seq_contains("k_astat_studienfach_land") > + + +select now(),'table k_astat_studienfach_land exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle k_astat_studienfach_land' +from xdummy; + +create table k_astat_studienfach_land( + schluessel NVARCHAR(255) , +gueltig_ab INTEGER , +land INTEGER , +version INTEGER , +sortkey INTEGER , +gueltig_bis INTEGER , +name NVARCHAR(255) , +isced NVARCHAR(255) , +keybund NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='k_astat_studienfach_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach_land',0); + +<#if !deleted_tables?seq_contains("k_astat_abschluss3steller_land") && tables?is_sequence && tables?seq_contains("k_astat_abschluss3steller_land") > + + +select now(),'table k_astat_abschluss3steller_land exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle k_astat_abschluss3steller_land' +from xdummy; + +create table k_astat_abschluss3steller_land( + schluessel NVARCHAR(255) not null, +gueltig_ab INTEGER , +land INTEGER , +version INTEGER , +sortkey INTEGER , +gueltig_bis INTEGER , +name NVARCHAR(255) , +sig2steller NVARCHAR(255) , +keybund NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='k_astat_abschluss3steller_land'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss3steller_land',0); + +<#if !deleted_tables?seq_contains("k_astat_abschluss2steller") && tables?is_sequence && tables?seq_contains("k_astat_abschluss2steller") > + + +select now(),'table k_astat_abschluss2steller exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle k_astat_abschluss2steller' +from xdummy; + +create table k_astat_abschluss2steller( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='k_astat_abschluss2steller'; +insert into db_tabellen (name,protokollierung) values('k_astat_abschluss2steller',0); + +<#if !deleted_tables?seq_contains("k_astat_studienbereich") && tables?is_sequence && tables?seq_contains("k_astat_studienbereich") > + + +select now(),'table k_astat_studienbereich exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle k_astat_studienbereich' +from xdummy; + +create table k_astat_studienbereich( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) , +fgr NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='k_astat_studienbereich'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienbereich',0); + +<#if !deleted_tables?seq_contains("k_astat_studienfach") && tables?is_sequence && tables?seq_contains("k_astat_studienfach") > + + +select now(),'table k_astat_studienfach exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle k_astat_studienfach' +from xdummy; + +create table k_astat_studienfach( + schluessel NVARCHAR(255) not null, +name NVARCHAR(255) , +sb NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='k_astat_studienfach'; +insert into db_tabellen (name,protokollierung) values('k_astat_studienfach',0); + +<#if !deleted_tables?seq_contains("colorscheme") && tables?is_sequence && tables?seq_contains("colorscheme") > + + +select now(),'table colorscheme exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge Tabelle colorscheme' +from xdummy; + +create table colorscheme( + id SERIAL not null, +caption NVARCHAR(255) , +sortorder INTEGER , +colors NVARCHAR(255) +) +; + + + + +delete from db_tabellen where name='colorscheme'; +insert into db_tabellen (name,protokollierung) values('colorscheme',0); + +<#if !deleted_tables?seq_contains("sx_mail") && tables?is_sequence && tables?seq_contains("sx_mail") > -! echo "table sx_mail exists - fine" -! echo `date` +select now(),'table sx_mail exists - fine' +from xdummy; <#else> -! echo "Erzeuge Tabelle sx_mail" -! echo `date` +select now(),'Erzeuge Tabelle sx_mail' +from xdummy; create table sx_mail( tid SERIAL not null, diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_pg.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_pg.sql index 2a0dfc8..459807d 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_pg.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_tables_pg.sql @@ -1884,11 +1884,11 @@ select now(),'Erzeuge Tabelle organigramm' from xdummy; create table organigramm( - tid INTEGER not null, + tid SERIAL not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name CHAR(150) , +drucktext VARCHAR(255) , +name VARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, @@ -1975,8 +1975,8 @@ create table organigramm_bak( tid INTEGER not null, key_apnr CHAR(10) , parent CHAR(10) , -drucktext CHAR(50) , -name CHAR(150) , +drucktext VARCHAR(255) , +name VARCHAR(255) , ebene INTEGER , lehre SMALLINT not null, gueltig_seit DATE not null, diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_views_ids.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_views_ids.sql index 66738ae..1d45d9b 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_views_ids.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kern_upgrade_views_ids.sql @@ -19,13 +19,14 @@ tabid,tabname as tabelle from systables where tabname 'dim_stg', 'dim_abschluss', 'dim_kost', -'dim_kotr' +'dim_kotr', +'dim_kreis' ); -! echo "Checking views" -! echo `date` +select now(),'Checking views' +from xdummy; <#if views?has_content> @@ -33,15 +34,15 @@ tabid,tabname as tabelle from systables where tabname <#if views?seq_contains("user_groups") > -! echo "view user_groups exists - fine" -! echo `date` +select now(),'view user_groups exists - fine' +from xdummy; <#else> -! echo "Erzeuge View user_groups" -! echo `date` +select now(),'Erzeuge View user_groups' +from xdummy; create view user_groups( userinfo_id, @@ -58,15 +59,15 @@ and U.akt_versuch <= U.max_versuch ; <#if views?seq_contains("menu_element_fieldmode") > -! echo "view menu_element_fieldmode exists - fine" -! echo `date` +select now(),'view menu_element_fieldmode exists - fine' +from xdummy; <#else> -! echo "Erzeuge View menu_element_fieldmode" -! echo `date` +select now(),'Erzeuge View menu_element_fieldmode' +from xdummy; create view menu_element_fieldmode( id, @@ -90,15 +91,15 @@ annotation) as <#if views?seq_contains("menu_element_mandatory") > -! echo "view menu_element_mandatory exists - fine" -! echo `date` +select now(),'view menu_element_mandatory exists - fine' +from xdummy; <#else> -! echo "Erzeuge View menu_element_mandatory" -! echo `date` +select now(),'Erzeuge View menu_element_mandatory' +from xdummy; create view menu_element_mandatory( id, @@ -123,15 +124,15 @@ annotation) as <#if views?seq_contains("menu_element_nature") > -! echo "view menu_element_nature exists - fine" -! echo `date` +select now(),'view menu_element_nature exists - fine' +from xdummy; <#else> -! echo "Erzeuge View menu_element_nature" -! echo `date` +select now(),'Erzeuge View menu_element_nature' +from xdummy; create view menu_element_nature( id, @@ -156,23 +157,23 @@ annotation) as <#if views?seq_contains("menu_element_orgstructure") > -! echo "view menu_element_orgstructure exists - fine" -! echo `date` +select now(),'view menu_element_orgstructure exists - fine' +from xdummy; <#else> -! echo "Erzeuge View menu_element_orgstructure" -! echo `date` +select now(),'Erzeuge View menu_element_orgstructure' +from xdummy; create view menu_element_orgstructure( orgstruktur, description) as - select element as orgstruktur, description - from menu_element + select element as orgstruktur, description + from menu_element where element='orgstruktur' ; @@ -181,15 +182,15 @@ description) as <#if views?seq_contains("user_inst_org") > -! echo "view user_inst_org exists - fine" -! echo `date` +select now(),'view user_inst_org exists - fine' +from xdummy; <#else> -! echo "Erzeuge View user_inst_org" -! echo `date` +select now(),'Erzeuge View user_inst_org' +from xdummy; create view user_inst_org( userid, @@ -218,15 +219,15 @@ where O.key_apnr=U.ch110_institut <#if views?seq_contains("hochschulen") > -! echo "view hochschulen exists - fine" -! echo `date` +select now(),'view hochschulen exists - fine' +from xdummy; <#else> -! echo "Erzeuge View hochschulen" -! echo `date` +select now(),'Erzeuge View hochschulen' +from xdummy; create view hochschulen( hs_nr, @@ -253,15 +254,15 @@ or trim(substring(apnr from 4 for 1)) ='') <#if views?seq_contains("dimension_view") > -! echo "view dimension_view exists - fine" -! echo `date` +select now(),'view dimension_view exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dimension_view" -! echo `date` +select now(),'Erzeuge View dimension_view' +from xdummy; create view dimension_view( id, @@ -296,10 +297,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version' || ' from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T' - || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' + || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id' )::lvarchar as sourcesql, @@ -324,10 +325,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version ' || 'from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T ' - || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' + || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id ' )::lvarchar as sourcesql, @@ -356,7 +357,7 @@ SELECT distinct T.tid+1000000 as id, null::VARCHAR(255) as obj_guid , null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) - + union SELECT distinct T.tid+2000000 as id, D.dimension_bp_id, @@ -377,7 +378,7 @@ SELECT distinct T.tid+2000000 as id, null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) where D.fact_table='sva_pers_cube' - and D.name='ca108_amtsbez' + and D.name='ca108_amtsbez' ; @@ -385,15 +386,15 @@ SELECT distinct T.tid+2000000 as id, <#if views?seq_contains("fact_table") > -! echo "view fact_table exists - fine" -! echo `date` +select now(),'view fact_table exists - fine' +from xdummy; <#else> -! echo "Erzeuge View fact_table" -! echo `date` +select now(),'Erzeuge View fact_table' +from xdummy; create view fact_table( id, @@ -424,15 +425,15 @@ where T.name in (select distinct fact_table from dimension) <#if views?seq_contains("dim_staat") > -! echo "view dim_staat exists - fine" -! echo `date` +select now(),'view dim_staat exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dim_staat" -! echo `date` +select now(),'Erzeuge View dim_staat' +from xdummy; create view dim_staat( apnr, @@ -442,7 +443,7 @@ kontinent, inl_ausl_kurz, inl_ausl_lang) as -SELECT +SELECT apnr, druck, uniquename::integer as astat, @@ -461,15 +462,15 @@ and apnr !=0 --nur für Abwärtskompatibilität zu FLEDA <#if views?seq_contains("dim_stg") > -! echo "view dim_stg exists - fine" -! echo `date` +select now(),'view dim_stg exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dim_stg" -! echo `date` +select now(),'Erzeuge View dim_stg' +from xdummy; create view dim_stg( apnr, @@ -480,7 +481,7 @@ stg_ltxt, stg_astgrp, stg_astgrp_str) as -SELECT +SELECT apnr, druck, uniquename as stg, @@ -500,15 +501,15 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_stg' <#if views?seq_contains("dim_abschluss") > -! echo "view dim_abschluss exists - fine" -! echo `date` +select now(),'view dim_abschluss exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dim_abschluss" -! echo `date` +select now(),'Erzeuge View dim_abschluss' +from xdummy; create view dim_abschluss( apnr, @@ -523,7 +524,7 @@ abschlussart_str, abschluss_grp, abschluss_grp_str) as -SELECT +SELECT apnr, druck, uniquename as abschluss, @@ -547,15 +548,15 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_absc <#if views?seq_contains("dim_kost") > -! echo "view dim_kost exists - fine" -! echo `date` +select now(),'view dim_kost exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dim_kost" -! echo `date` +select now(),'Erzeuge View dim_kost' +from xdummy; create view dim_kost( apnr, @@ -572,31 +573,56 @@ key) as <#if views?seq_contains("dim_kotr") > -! echo "view dim_kotr exists - fine" -! echo `date` +select now(),'view dim_kotr exists - fine' +from xdummy; <#else> -! echo "Erzeuge View dim_kotr" -! echo `date` +select now(),'Erzeuge View dim_kotr' +from xdummy; create view dim_kotr( apnr, druck, key) as - SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key + SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key FROM dim_bp_apnr WHERE dim_bp_apnr.dimension_bp_id = ( SELECT d.tid FROM dimension_bp d WHERE d.apnr = 'bluep_kotr'); +<#if views?seq_contains("dim_kreis") > + + +select now(),'view dim_kreis exists - fine' +from xdummy; + + +<#else> + + +select now(),'Erzeuge View dim_kreis' +from xdummy; + +create view dim_kreis( + apnr, +astat, +druck, +kfz, +bland_druck, +bland_kurz, +bland_astat) as + ; + + + <#else> -! echo "Erzeuge View user_groups" -! echo `date` +select now(),'Erzeuge View user_groups' +from xdummy; create view user_groups( userinfo_id, @@ -609,8 +635,8 @@ and G.tid=B.groupinfo_id and U.akt_versuch <= U.max_versuch ; -! echo "Erzeuge View menu_element_fieldmode" -! echo `date` +select now(),'Erzeuge View menu_element_fieldmode' +from xdummy; create view menu_element_fieldmode( id, @@ -630,8 +656,8 @@ annotation) as ; -! echo "Erzeuge View menu_element_mandatory" -! echo `date` +select now(),'Erzeuge View menu_element_mandatory' +from xdummy; create view menu_element_mandatory( id, @@ -652,8 +678,8 @@ annotation) as ; -! echo "Erzeuge View menu_element_nature" -! echo `date` +select now(),'Erzeuge View menu_element_nature' +from xdummy; create view menu_element_nature( id, @@ -674,22 +700,22 @@ annotation) as ; -! echo "Erzeuge View menu_element_orgstructure" -! echo `date` +select now(),'Erzeuge View menu_element_orgstructure' +from xdummy; create view menu_element_orgstructure( orgstruktur, description) as - select element as orgstruktur, description - from menu_element + select element as orgstruktur, description + from menu_element where element='orgstruktur' ; -! echo "Erzeuge View user_inst_org" -! echo `date` +select now(),'Erzeuge View user_inst_org' +from xdummy; create view user_inst_org( userid, @@ -714,8 +740,8 @@ where O.key_apnr=U.ch110_institut ; -! echo "Erzeuge View hochschulen" -! echo `date` +select now(),'Erzeuge View hochschulen' +from xdummy; create view hochschulen( hs_nr, @@ -738,8 +764,8 @@ or trim(substring(apnr from 4 for 1)) ='') ; -! echo "Erzeuge View dimension_view" -! echo `date` +select now(),'Erzeuge View dimension_view' +from xdummy; create view dimension_view( id, @@ -774,10 +800,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_int || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version' || ' from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T' - || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' + || ' where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255)' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id' )::lvarchar as sourcesql, @@ -802,10 +828,10 @@ SELECT D.tid as id, D.sourcefilter, D.system_key, ''::varchar(255) as view_reference, - ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' + ('select C.' || F.foreignkey_col || ' as id,T.sourcesystem_id, C.' || F.foreignkey_col || ' as apnr,C.' || F.foreignkey_cap || ' as name' ||',' || D.system_key || '::integer as mschluessel,T.apnr as aschluessel,null::VARCHAR(255) as obj_guid ,null::integer as lock_version ' || 'from ' || F.foreignkey_tab || ' C,trans_dim_bp_apnr T ' - || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' + || 'where T.sourcesystem_id=C.' || F.foreignkey_col || '::varchar(255) ' || nvl(' and ' || F.foreignkey_cond || ' ','') || 'and ' || D.dimension_bp_id ||' =T.dimension_bp_id ' )::lvarchar as sourcesql, @@ -834,7 +860,7 @@ SELECT distinct T.tid+1000000 as id, null::VARCHAR(255) as obj_guid , null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) - + union SELECT distinct T.tid+2000000 as id, D.dimension_bp_id, @@ -855,12 +881,12 @@ SELECT distinct T.tid+2000000 as id, null::integer as lock_version FROM dimension D inner join sx_tables T on (T.name=D.fact_table) where D.fact_table='sva_pers_cube' - and D.name='ca108_amtsbez' + and D.name='ca108_amtsbez' ; -! echo "Erzeuge View fact_table" -! echo `date` +select now(),'Erzeuge View fact_table' +from xdummy; create view fact_table( id, @@ -887,8 +913,8 @@ where T.name in (select distinct fact_table from dimension) ; -! echo "Erzeuge View dim_staat" -! echo `date` +select now(),'Erzeuge View dim_staat' +from xdummy; create view dim_staat( apnr, @@ -898,7 +924,7 @@ kontinent, inl_ausl_kurz, inl_ausl_lang) as -SELECT +SELECT apnr, druck, uniquename::integer as astat, @@ -913,8 +939,8 @@ and apnr !=0 --nur für Abwärtskompatibilität zu FLEDA ; -! echo "Erzeuge View dim_stg" -! echo `date` +select now(),'Erzeuge View dim_stg' +from xdummy; create view dim_stg( apnr, @@ -925,7 +951,7 @@ stg_ltxt, stg_astgrp, stg_astgrp_str) as -SELECT +SELECT apnr, druck, uniquename as stg, @@ -941,8 +967,8 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_stg' ; -! echo "Erzeuge View dim_abschluss" -! echo `date` +select now(),'Erzeuge View dim_abschluss' +from xdummy; create view dim_abschluss( apnr, @@ -957,7 +983,7 @@ abschlussart_str, abschluss_grp, abschluss_grp_str) as -SELECT +SELECT apnr, druck, uniquename as abschluss, @@ -977,8 +1003,8 @@ where dimension_bp_id=(select D.tid from dimension_bp D where D.apnr='bluep_absc ; -! echo "Erzeuge View dim_kost" -! echo `date` +select now(),'Erzeuge View dim_kost' +from xdummy; create view dim_kost( apnr, @@ -991,15 +1017,29 @@ key) as ); -! echo "Erzeuge View dim_kotr" -! echo `date` +select now(),'Erzeuge View dim_kotr' +from xdummy; create view dim_kotr( apnr, druck, key) as - SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key + SELECT dim_bp_apnr.apnr, dim_bp_apnr.druck, dim_bp_apnr.uniquename AS key FROM dim_bp_apnr WHERE dim_bp_apnr.dimension_bp_id = ( SELECT d.tid FROM dimension_bp d WHERE d.apnr = 'bluep_kotr'); + +select now(),'Erzeuge View dim_kreis' +from xdummy; + +create view dim_kreis( + apnr, +astat, +druck, +kfz, +bland_druck, +bland_kurz, +bland_astat) as + ; + diff --git a/superx/WEB-INF/conf/edustore/db/install/upgrade/kernmodul_upgrade_man.sql b/superx/WEB-INF/conf/edustore/db/install/upgrade/kernmodul_upgrade_man.sql index b690c3e..7ca58f0 100644 --- a/superx/WEB-INF/conf/edustore/db/install/upgrade/kernmodul_upgrade_man.sql +++ b/superx/WEB-INF/conf/edustore/db/install/upgrade/kernmodul_upgrade_man.sql @@ -1,4 +1,17 @@ --freemarker template + + +select apnr,beschreibung from konstanten + + +select sp_table_exists('organigramm_tid_seq') + + + + + + +--konstanten fuellen: select '${SQLdialect}' from xdummy; @@ -57,9 +70,15 @@ alter table user_pw alter column old_sha4 type char(255); alter table user_pw alter column old_sha5 type char(255); alter table user_pw alter column old_sha6 type char(255); alter table user_pw alter column old_sha7 type char(255); -alter table systeminfo alter column datum type timestamp; -alter table db_version alter column db_einfuegemarke type varchar(255); -alter table db_version alter column his_system type varchar(255); + +<#if organigramm_tid_seq_exists==0> +create sequence organigramm_tid_seq ; +select setval('organigramm_tid_seq',(select max(tid) from organigramm)); +alter table organigramm alter column tid set default nextval('organigramm_tid_seq'); + + +alter table organigramm_bak alter column drucktext type varchar(255); +alter table organigramm_bak alter column name type varchar(255); <#if '${SQLdialect}'='Informix' > @@ -79,6 +98,11 @@ alter table user_pw modify(old_sha5 char(255)); alter table user_pw modify(old_sha6 char(255)); alter table user_pw modify(old_sha7 char(255)); alter table systeminfo modify(datum datetime year to second); +alter table organigramm modify(tid serial); +alter table organigramm modify(drucktext VARCHAR(255)); +alter table organigramm modify(name VARCHAR(255)); +alter table organigramm_bak modify(drucktext VARCHAR(255)); +alter table organigramm_bak modify(name VARCHAR(255)); DELETE FROM menu_element WHERE element = 'contenttype' AND element_value = 'text/html; charset=ISO-8859-1'; diff --git a/superx/WEB-INF/kern_dbforms-config_ids.xml b/superx/WEB-INF/kern_dbforms-config_ids.xml new file mode 100644 index 0000000..f9a384c --- /dev/null +++ b/superx/WEB-INF/kern_dbforms-config_ids.xml @@ -0,0 +1,2952 @@ + +dd.MM.yyyy + +
+ + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +Bei ICE-Schlüsseln + + + + + + + +Bei GX der hiskey, bei HISINONE hiskey_id + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + +
+ + + + +Pfad zur Datei (relativ zu webapps/superx/WEB-INF/ ) + + + + +(Nur bei CSV-Format) + + +utf8,ISO-8859-1 (Nur bei Text-Format) + + +Enthält die Datei Spaltenüberschriften? 1=ja,0=nein + + + +Anzahl der gelieferten Datensätze + + +1=ja,0=nein + + + +Person, die den Download eingereicht hat + + +Spezielle Email-Adresse für die Protokollierung des Ladens + + + +Datum/Uhrzeit des Imports in die SuperX-Datenbank + + + +1=Hinzufügen,0=Alles Löschen und Hinzufügen + + +Kommentar für Website (Datenlegende o.ä.). + + +Lieferung bestätigt (per mail an submission_email) + + + +1=ja,0=nein + + +1=ja,0=nein + + +Email vom Adminstrator, der über die Datei informiert + werden soll + + +1=ja + + +1=ja, Verarbeitung bestätigt (per mail an submission_email + und processor_email) + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +ggf. zusätzliche where-Bedingung für blueprint + + +wird von Anwendung gesetzt, darf nicht geändert werden + + + +
+ + + + + + + + + + + + + + + + + + +wird von Anwendung gesetzt, darf nicht geändert werden + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + + + + +1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. + Auslieferung der Software + + +
+ + + + + + + +
+ + + + + + +1=Gruppierung, + 2=Loadtable,3=nativeaction,4=loadmask,5=select + + + +1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. + Auslieferung der Software + + +
+ + + + + + +
+ + + + + + + + + +1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. + Auslieferung der Software + + +
+ + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + +
+ + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ + + + +
+ + +person_id der gelöschten Entity + + +Matrikelnummer der gelöschten Entity + + +Entiy-Klasse des gelöschten Objekts in HisInOne + + +Zeitpunkt der Löschung in HISinOne + + +Zeitpunkt der Löschung in der BI + + +Job-Ausführung in HisInOne von der Delete-Event ausgelöst wird + + +
+ + + + + + + +(Obsolet) + + +(Obsolet) + + + + + +
+ + + + + + +
+ + + + +
+ + + + + + + + + +2-steller + + +3-steller + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + + +Applet=0, 1=Themenbaum_vom_XML-Frontend, 2=Alle, 3=XML_und_Angular, 4=Nur_Angular + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + +gem. COB-GX:30=Lehreinheit,20=Fakultät + + + + + +(referenziert BI-Tabelle cifx mit key=1) + + + +z.B. 10=Kostenrechnung,3=MBS vergl. BI-Tabelle systeminfo + + + + + + + + + +
+ + + + + + + + + + + +gem. COB-GX:30=Lehreinheit,20=Fakultät + + + + + +(referenziert BI-Tabelle cifx mit key=1) + + + +z.B. 10=Kostenrechnung,3=MBS vergl. BI-Tabelle systeminfo + + + +
+ + + + + + +
+ + + + +Querverweis zur Systeminfo + + + + + + + + +
+ + + + + +Querverweis zur Systeminfo + + + + + + + + +
+ + + + + + + +
+ + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + +
+ + + + + +
+ + + + + + + +Wenn der jew. User keine sichtartspez. Rechte hat, gibt es einen Fallback zur normalen user_institution (1=ja, 0=nein) + + +
+ + + +Um zukünftig evtl. Hierarchien von Sichten abzubilden + + + +Querverweis zur Systeminfo + + + +10 ist standardsicht, 20 ist alt.Hierarchie + + +Es kann eine Kurzbeschreibung für interne Zwecke + hinterlegt werden + + +Bezeichnung der Sicht, die für User angezeigt wird + + + + +kann für Sortierungen benutzt werden + + +Angabe einer Tabelle mit + key,parent,name,gueltig_seit,gueltig_bis oder Prozedur, die mit + sp_ anfängt + + +id der alt.Hier in angegebenen Quelltabelle null bei + regulärer Hierarchie + + +Tabelle mit Infos zu TreeView aus Cob + + +id des benutzen trees aus Cob-Tabelle trees null bei + regulärer Hierachie + + +hauptsächl. für alte Organigramm-Sichten, hieß mal lehre + + + +sollen User Rechte berücksichtigt werden, derzeit von + Org.Sichten ausgewertet + + +zukünftig für erweiterte Rechtevergabe + + +zukünftig für erweiterte Rechtevergabe + + +soll der Stand geändert werden können + + +bei Bedarf noch Attribute der Sicht hinterlegt werden, auf + die man bei Bedarf Einschränkungen fahren kann + + +bei Bedarf noch Attribute der Sicht hinterlegt werden, auf + die man bei Bedarf Einschränkungen fahren kann + + +bei Bedarf noch Attribute der Sicht hinterlegt werden, auf + die man bei Bedarf Einschränkungen fahren kann + + +bei Bedarf noch Attribute der Sicht hinterlegt werden, auf + die man bei Bedarf Einschränkungen fahren kann + + +Max. Zeilen im Klappmenü + + + + +soll Sicht im Applet gecachet werden + + +soll Sicht im XML-Frontend gecachet werden + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + +Bei Maskenfeldern wird dieses Feld für Tooltips genutzt. + + + + + + + + + + + + + +
+ + + + + +Worauf bezieht sich der Download (für Ermittlung + Bezugsjahr,- Monat oder Sem.) + + +Datum des Imports in die SuperX-Datenbank + + +Kommentar für Website (Datenlegende o.ä.). + + +Verweis auf umfangreichere Anleitungen und Kommentare, + beginnend mit http:// oder relativ zu + http://superx-server:Port/superx/servlet + + +Mime-Type der Datei (für pdf z.B. application/pdf, html + etc). + + +Pfad zur Datei (relativ zu webapps/superx/WEB-INF/) + + + + + + + + +
+ + + + + + + + + +1=true + + +1=ja, 0=nein + + +1=ja, 0=nein + + + + +Für Ganzzahl-Transformation ICE + + + + + +1=ja, 0=nein. Wird beim CSV-Upload ausgewertet. + + +1=ja, 0=nein. Das Feld Semester ist z.B. nicht summierbar, + das Feld Geschlecht schon (für ICE Ausprägung alle) + + + +
+ + + + + + + + + + + + + + + +
+ + + + +Wird derzeit noch nicht ausgewertet. + + +
+ + + + + + + + + + + + + + +wird per Reflection aufgerufen + + + + +wird per Reflection aufgerufen + + + +wird per Reflection aufgerufen + + + +
+ + + + + +Das Stylesheet mit der kleinsten Nummer wird zuerst + aufgerufen + + + + + + + + +
+ + + + + +"green" oder "red" + + +z.B. "icon-user-plus" oder "icon-help-circled" + + + + +false=wird nicht ausgegeben, all=auch nicht angemeldete Personen sehen das Portlet. + + + + +
+ + + +Der Variablenname wird in Freemarker-Scripten, beginnend + mit Modulname-_..., z.B. SVA_Technisches_Personal + + + + + + + +(Für weitere Gruppierungsebenen) + + +(Für noch weitere Gruppierungsebenen) + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + +Pfad und Dateiname. Für XSL-Stylesheets relativ zum + Verzeichnis: webapps/superx/xml, für JasperReports-Templates + relativ zu webapps/superx/WEB-INF/reports + + +wird für Hyperlinks benutzt + + + +Gilt das Stylesheet für eine Maske oder eine Tabelle. Bei + JasperReports-Templates müssen Sie immer Tabelle wählen. + + + +z.B.: text/html; charset=ISO-8859-1. Bei XSL Stylesheets + ist dies das Ausgabeformat, bei JasperReports Templates ist dies + das default Ausgabeformat + + +Wird nur für Ergebnistabellen ausgewertet, nicht für Masken-Stylesheets. Wenn 1, dann ist das Stylesheet für alle Ergebnistabellen nutzbar + + +Pfad relativ zu webapps/superx + + +Welche Ergebniszeilen soll das Stylesheet verarbeiten. S=Nur Schema, T=Aktuelle Baumstruktur,A=Alle Daten + + +XSL,JRXML,XSL_JRXML,XSL_FO,XML,NATIVE,XLSX + + +Wird nur bei JR ausgewertet. Mögliche Werte: RS,XMLSOURCE + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +Voreinstellung bei Auslieferung + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + +Dieser Wert darf keinesfalls geändert werden + + + + + + + + + + +
+ + + +Querverweis zur Systeminfo + + +z.B. zul_bew für Bewerber aus ZUL/APP + + +10 ist standardsicht, 20 ist alt.Hierarchie + + + + +
+ + +Querverweis zur Systeminfo + + +z.B. zul_bew für Bewerber aus ZUL/APP + + +10 ist standardsicht, 20 ist alt.Hierarchie + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + +
+ + + + + + + + + + + +
+ + + + +
+ + + +Nur deskriptiv + + + + +Ab Kern5.0 bezieht sich die Gültigkeit auf den Tag, ab dem eine Berechtigung gültig ist.(Vorher bezog sie sich darauf, welchen Stand man für eine Sicht einstellte). + + +Ab Kern5.0 bezieht sich die Gültigkeit auf den Tag, bis zu dem eine Berechtigung gültig ist.(Vorher bezog sie sich darauf, welchen Stand man für eine Sicht einstellte). + + + + + + + + + + + +
+ + + + +Nur deskriptiv + + + + + + +
+ + + + + + + + + + + +
+ + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + + +Rechte für eine einzelne Sicht geben + + + + + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + +
+ + + + +
+ + + + +
+ + + + + + + + +
+ + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + +ggf. zusätzliche where-Bedingung für blueprint + + +wird von Anwendung gesetzt, darf nicht geändert werden + + + +wird von Anwendung gesetzt, darf nicht geändert werden + + + +wird von Anwendung gesetzt, darf nicht geändert werden + + + + +
+ + + + + + + + + + +
+ + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ + + +
+ + + + + +
+ + + + + + + + + +
+ + + + + +
+In diesem Formular können Sie Benutzer verwalten. +Sie können hier die Benutzerdaten wie Kennung, Name, E-Mail Adresse ... einsehen und auch verändern. +Sie Können das Passwort ändern, den Benutzer als Administrator setzten und auch den Benutzer dazu veranlassen +beim nächsten Login sein Passwort zu ändern. +Außerdem können Sie hier dem Benutzer Berechtigungen über Gruppen, Sachgebiete, Masken, Institutionen, Projekten (Kostenträgern), Sichten und Sichtarten geben und auch entziehen. + + +tid + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ In diesem Formular können Sie Gruppen verwalten. + + + Sie können hier einer Gruppe Berechtigungen über Sachgebiete, Masken, + Sichten und Sichtarten geben und auch entziehen. + Außerdem können Sie auch hier sehen, welche Benutzer der Gruppe zugehören + und auch neue Benutzer hinzufügen oder Gruppeninhaber aus der + Gruppe nehmen. + + tid + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Sachgebiete verwalten. + +name + + + + +
+In diesem Formular können Sie XSL-Stylesheets verwalten. + +filename + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Organisationseinheiten verwalten. + +name +tid + + + + + + + + + + + + + + + + + + + + + + + +
+In diesem Formular können Sie die Sichtbarkeit von Organisationseinheiten verwalten. + +name +tid + + + + + + + + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Maskendefinitionen verwalten. + +name + + + + + + + + + + + +
+In diesem Formular können Sie Maskendefinitionen verwalten. + +tid + + + + + + + + + + + +
+In diesem Formular können Sie Maskendefinitionen verwalten. + +tid + + + + + + + + + + + + + + +
+In diesem Formular können Sie Feld-Vorbelegung von Makro-Masken verwalten. + +macro + + + + + + + + + + + + +
+In diesem Formular können Sie Felder verwalten. + +tid + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Quellsysteme verwalten. + +name + + + + +
+In diesem Formular können Sie Benutzern Sachgebietsrechte geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben + +userinfo_id +sachgebiete_id + + + + +
+In diesem Formular können Sie Benutzer zu Gruppen zuordnen. Achtung: Zuordnung zur Gruppe Administratoren für admins von externem System (HisInOne) werden bei Neuanmeldung überschrieben + +userinfo_id +groupinfo_id + + + + +
+In diesem Formular können Sie Benutzern Rechte auf einzelne Masken geben. + +userinfo_id +maskeninfo_id + + + + +
+In diesem Formular können Sie Benutzern Rechte auf einzelne Insitutionen geben. Achtung: Einträge von externem System (HisInOne) werden bei Neuanmeldung überschrieben + + +ch110_institut + + + + +
+In diesem Formular können Sie den Themenbaum bearbeiten. Bitte beachten Sie: bei Änderungen muss der Themenbaum neu geladen werden (SuperXManager) + +maskeninfo_id +name + + + + + + + + + + + + + + +
+In diesem Formular können Sie Masken zu XSL-Stylesheets zuordnen. + +tid + + + + + + + + + + + + + + +
+In diesem Formular können Sie Sichten auf das Organigramm verwalten. + +art +name + + + + +
+In diesem Formular können Sie Masken zu Sachgebieten zuordnen. + +maskeninfo_id +sachgebiete_id + + + + +
+In diesem Formular können Sie Felder zu Masken zuordnen. + +maskeninfo_id +felderinfo_id + + + + +
+In diesem Formular können Sie Masken zu Quellsystemen zuordnen. + +maskeninfo_id +systeminfo_id + + + +
+In diesem Formular können Sie Masken zu Makros zuordnen. + +maskeninfo_id1 +maskeninfo_id2 + + + + +
+In diesem Formular können Sie Masken zu Makros zuordnen. + +maskeninfo_id1 + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Konstanten verwalten. + +beschreibung + + + + +
+In diesem Formular können Sie eine Konstante bearbeiten verwalten. + + + + + + + + + + + + + +
+In diesem Formular können Infos zu Ihrer Hochschule speichern. Bitte ordnen Sie Ihre Hochschule im Feld Hochschulnummer (HIS) zu. + +name + + + + + + + + + +
+In diesem Formular können Sie Gruppen zu Sachgebieten zuordnen. + +groupinfo_id +sachgebiete_id + + + + +
+In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen. + +groupinfo_id +maskeninfo_id + + + + +
+In diesem Formular können Sie Gruppen zu einzelnen Masken zuordnen. + +groupinfo_id +maskeninfo_id + + + + +
+In diesem Formular können Sie User-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager) + +sicht_name_intern + + + + +
+In diesem Formular können Sie Gruppen-Rechte für Sichten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager) + +sicht_name_intern + + + + +
+In diesem Formular können Sie Beschriftungen bearbeiten. Für Masken- und Spalten- und Felderläuterungen. + +tid + + + + + + + + + + + + + + + +
+In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager) + +sichtart + + + + + +
+In diesem Formular können Sie Gruppen-Rechte für Sichtarten bearbeiten. Bitte beachten Sie: bei Änderungen an den Sichten muss der Themenbaum neu geladen werden (SuperXManager) + +sichtart + + + + + +
+In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten. +Nach Änderungen sollten Sie den Cache aktualisieren + +tid +sachgebiete_id + + + + + + + + + + + + + + + + + + +
+In diesem Formular können Sie hochschulspezifische Konstanten oder SQL-Ausdrücke bearbeiten. + +sachgebiete_id + + + + + + + + + + + +
+In diesem Formular können Sie Downloads bearbeiten. + +tid + + + + +
+In diesem Formular können Sie Stichworte bearbeiten. + + + + + + +
+In diesem Formular können Sie Sichten zu Sachgebieten zuordnen. + + + + + + +
+In diesem Formular können Sie Sichtarten zu Sachgebieten zuordnen. + + + + + + + + + +
+In diesem Formular können Sie Entladeparameter für das jew. Quellsystem verwalten. + + + + + + + + + +
+In diesem Formular können Sie Kostenstellen umschlüsseln. + +systeminfo_id + + + + + + + + +
+In diesem Formular können Sie Kostenstellen umschlüsseln. + +systeminfo_id + + + +
+In diesem Formular können Sie Uploads bearbeiten. + +tid + + + + + +
+In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen. + +tid +stylesheet_id + + + + + + + +
+In diesem Formular können Sie von Stylesheets benötigte Felder entsprechend zuordnen. + +stylesheet_id + + + + + + + + +
+In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen. + + + + + + + + + +
+In diesem Formular können Sie Feldern in Masken für bestimmte Gruppen Attribute wie Verstecken zuweisen. + + + + + + + +
+In diesem Formular können Sie Freemarker-Templates verwalten. + + + + + + + +
+In diesem Formular können Sie Freemarker-Templates verwalten. + +tid + + + + + + + + +
+In diesem Formular können Sie DB Connections bearbeiten. + + + + + + + +
+In diesem Formular können Sie DB-Connections verwalten. + + + +id + + + + + + + + + + + + + + + + + +
+In diesem Formular können Sie Portlets bearbeiten. + + + + + + + + + + + + + + +
+In diesem Formular können Sie Portlets verwalten. + + + +tid + + + + + + + + + + + + + + +
+In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten. + + + + + + + + +
+In diesem Formular können Sie Rechtetabellen für Sichtarten bearbeiten. + +tid + + + + + + + + + + + + +
+In diesem Formular können Sie Ladejobs verwalten + +tid + + + + + + + + + + + + + +
+In diesem Formular können Sie Ladejobs verwalten + + + + + + + + + + +
+In diesem Formular können Sie das Organigramm aufrufen + + + + + + +
+In diesem Formular können Sie Stylesheet-Parameter bearbeiten. + +tid + + + + + + + + + +
+In diesem Formular können Sie Stylesheet-Parameter bearbeiten. + +stylesheet_id + + + + + + + +
+In diesem Formular können Sie Stammdaten anpassen + +key + + + + + + + +
+In diesem Formular können Sie Stammdaten anpassen. Achtung: nach Änderung muss die jew. Hauptladeroutine laufen + +key +apnr +tid + + + + + + + + + + +
+ + + diff --git a/superx/WEB-INF/kern_dbforms-config_pg.xml b/superx/WEB-INF/kern_dbforms-config_pg.xml index e7fb85e..fd7e7a3 100644 --- a/superx/WEB-INF/kern_dbforms-config_pg.xml +++ b/superx/WEB-INF/kern_dbforms-config_pg.xml @@ -850,11 +850,11 @@ - + - - + + @@ -885,8 +885,8 @@ - - + + @@ -2153,23 +2153,24 @@ Außerdem können Sie hier dem Benutzer Berechtigungen über Gruppen, Sachgebiet -
+ In diesem Formular können Sie Organisationseinheiten verwalten. name tid - + - - - - - - + + + + + + + - + diff --git a/superx/WEB-INF/lib/superx5.0.jar b/superx/WEB-INF/lib/superx5.0.jar index cd25f08..e5c047c 100644 Binary files a/superx/WEB-INF/lib/superx5.0.jar and b/superx/WEB-INF/lib/superx5.0.jar differ diff --git a/superx/edit/kern/organigramm_edit.jsp b/superx/edit/kern/organigramm_edit.jsp index 405af12..bd04c2c 100644 --- a/superx/edit/kern/organigramm_edit.jsp +++ b/superx/edit/kern/organigramm_edit.jsp @@ -91,7 +91,8 @@ if(tid != null && !tid.equals("null")){ } %> +dbConnectionName="<%= mandantenid %>" javascriptFieldsArray="true" + >
@@ -117,28 +118,23 @@ dbConnectionName="<%= mandantenid %>" >
-<%@ include file="/edit/kern/organigramm_tid.inc" %> +
+ + + + - - - - - +<%@ include file="/edit/kern/organigramm_edit_parent.inc" %> @@ -146,7 +142,7 @@ dbConnectionName="<%= mandantenid %>" > diff --git a/superx/edit/kern/organigramm_edit_parent.inc b/superx/edit/kern/organigramm_edit_parent.inc new file mode 100644 index 0000000..b60009e --- /dev/null +++ b/superx/edit/kern/organigramm_edit_parent.inc @@ -0,0 +1,34 @@ + + + + + + diff --git a/superx/edit/kern/organigramm_parent_dialog.jsp b/superx/edit/kern/organigramm_parent_dialog.jsp new file mode 100644 index 0000000..54d1834 --- /dev/null +++ b/superx/edit/kern/organigramm_parent_dialog.jsp @@ -0,0 +1,146 @@ +<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> +<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> + + + + + + + + + + + + +Formular Organigramm + + + +<%@ page import ="java.util.Hashtable" %> +<% +//HttpSession session=request.getSession(true); +if (request.getCharacterEncoding() == null) + request.setCharacterEncoding("UTF-8"); +Object userobject=request.getSession().getAttribute("UserID"); +String userid; +String filter=""; +String sql=""; +if(userobject == null) +{ +%> + + +<% +} +else + userid=userobject.toString(); +Object mandantobject=request.getSession().getAttribute("MandantenID"); +String mandantenid=""; +if(mandantobject != null) + mandantenid=mandantobject.toString(); +//der superx-Default-Mandant ist bei dbforms ein Leerstring +if(mandantenid.equals("default")) + mandantenid=""; +String db_form_name="organigramm"; +String erlaubt="0"; +%> +<%@ include file="/edit/check_authentication.inc" %> +<% +if(erlaubt.equals("0")) +{ +%> + + +<% +} + +String keyfieldsused="false"; +Object kf=request.getParameter("keyfieldsused"); +if(kf != null) +keyfieldsused=kf.toString(); + +%> + + + +

+Logo +
<% if(!mandantenid.equals("default") && !mandantenid.equals("")) +out.println("Mandant: " + mandantenid +""); +%>

+ + + +
Tupelidentifier +
- -
- -<% sql = "select key_apnr::char(10), name from organigramm order by name;"; %> -
-
- +
- +
+ + + + + +<% +sql = "SELECT '0'::char(10),'Alle Institutionen'::char(255) from xdummy union SELECT key_apnr,trim(key_apnr) || '-' || name from organigramm order by 1; "; +%> + + + + +Auswählen + +
+ + + + + + + + + + + + + + + + + + + + + +
Filtern
+ + + +Übernehmen
0Alle Institutionen + + +  +
+ + + + " class="icon icon-left-big" style="color:blue;cursor: pointer;" title="Zuweisen und schließen">  +
+ + diff --git a/superx/xml/js/memtext/sx_functions.js b/superx/xml/js/memtext/sx_functions.js index daf7879..40f3a59 100644 --- a/superx/xml/js/memtext/sx_functions.js +++ b/superx/xml/js/memtext/sx_functions.js @@ -1830,10 +1830,10 @@ function maskSubmit(event) { //event.preventDefault(); } -$(document).ready(function() { +/*$(document).ready(function() { $("#SuperXMaske").submit(maskSubmit); }); - +*/ function toggleCheckbox(fldname) { //alert(fldname);