Visualisierungsmodul für SuperX
http://www.superx-projekt.de/doku/viz_modul/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
--Freemarker Template |
|
<sqlvars> |
|
<sqlvar name="k_astat_abschl_grp_exists"> |
|
select sp_table_exists('k_astat_abschl_grp') from xdummy; |
|
</sqlvar> |
|
</sqlvars> |
|
|
|
update viz_chart set chart_width=600 where chart_width is null; |
|
update viz_chart set chart_height=400 where chart_height is null; |
|
|
|
update viz_chart set chart_miniature_width=600 where chart_miniature_width is null; |
|
update viz_chart set chart_miniature_height=400 where chart_miniature_height is null; |
|
|
|
<#if k_astat_abschl_grp_exists==1> |
|
--Querabhängigkeit zum Kernmodul 5.2 abwärtskomp.: |
|
|
|
<#if TableFieldExists?exists && TableFieldExists('k_astat_abschl_grp','ist_lehramt')> |
|
|
|
update k_astat_abschl_grp set ist_lehramt=1 |
|
where abschluss_astat_bund in ('15','16','19') |
|
or substring(abschluss_astat_bund from 1 for 1) in ('2','3','4') |
|
or abschluss_astat_bund in ('50','52','55','57','58','60','61','62','63','64','65','66','67','98','99'); |
|
|
|
</#if> |
|
<#else> |
|
|
|
create table k_astat_abschl_grp( |
|
abschluss_astat_bund VARCHAR(255) not null, |
|
abschluss_astat_bund_ktxt VARCHAR(255) , |
|
abschlussart VARCHAR(255) , |
|
abschluss_grp VARCHAR(255) , |
|
ist_lehramt SMALLINT default 0 , |
|
constraint pk_k_astat_abschl_grp primary key (abschluss_astat_bund) |
|
|
|
) |
|
; |
|
</#if> |
|
|
|
|