Browse Source

Bugfix sx_stylesheets.stylesheet_type wird überschrieben durch KERN Upgrade #2

master
Daniel Quathamer 1 month ago
parent
commit
76fda7be0f
  1. 17
      src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql

17
src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql

@ -113,6 +113,15 @@ update sx_stylesheets set is_generic=1
where filename in (select T.filename from tmp_stylesheets T where T.is_generic=1); where filename in (select T.filename from tmp_stylesheets T where T.is_generic=1);
</#if> </#if>
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','stylesheet_type')>
update sx_stylesheets set stylesheet_type=T.stylesheet_type,
contenttype=T.contenttype,
usage_resultset_data=T.usage_resultset_data,
jr_datasource=T.jr_datasource
from tmp_stylesheets T
where T.filename=sx_stylesheets.filename
and sx_stylesheets.filename in (select T2.filename from tmp_stylesheets T2);
</#if>
--delete für tml_stylesheets hinzugefügt #ak 06.03.2013 --delete für tml_stylesheets hinzugefügt #ak 06.03.2013
delete from tmp_stylesheets where filename in (select filename from sx_stylesheets); delete from tmp_stylesheets where filename in (select filename from sx_stylesheets);
@ -208,14 +217,6 @@ FROM tmp_stylesheet_field;
drop table tmp_stylesheet_field; drop table tmp_stylesheet_field;
drop table tmp_hilf; drop table tmp_hilf;
update sx_stylesheets
set
contenttype='txt/xml',
is_generic=1,
usage_resultset_data='T',
stylesheet_type='XSL_JRXML'
where filename in ('tabelle_jrxml_a4_quer.xsl');
<#if SQLdialect='Postgres'> <#if SQLdialect='Postgres'>
select sp_update_sequence('sx_stylesheets'); select sp_update_sequence('sx_stylesheets');

Loading…
Cancel
Save