FCLT#64017 conversie naar type 'RAP' erbij

svn path=/Database/trunk/; revision=54193
This commit is contained in:
2021-12-16 14:13:00 +00:00
parent 9404b3ddf9
commit 386b37cb92

View File

@@ -264,6 +264,18 @@ UPDATE fac_widget
WHERE REGEXP_LIKE (fac_widget_url, '^(f|ht)tps?:', 'i')
OR LOWER (fac_widget_url) LIKE '^www.%';
-- Indien rapportage, dan fac_widget_type = 'RAP' en zet widget_height in de querystring
SET DEFINE OFF
UPDATE fac_widget
SET fac_widget_type = 'RAP',
fac_widget_typerefkey = REGEXP_SUBSTR (fac_widget_url, '^.{0,18}fac_report\.asp\?(.*)usrrap_key=(\d+)\&?(.*)$', 1, 1, 'i', 2),
fac_widget_url = REGEXP_SUBSTR (fac_widget_url, '^.{0,18}fac_report\.asp\?(.*)usrrap_key=(\d+)\&?(.*)$', 1, 1, 'i', 1)
|| REGEXP_SUBSTR (fac_widget_url, '^.{0,18}fac_report\.asp\?(.*)usrrap_key=(\d+)\&?(.*)$', 1, 1, 'i', 3)
|| (CASE WHEN fac_widget_height IS NULL THEN '' ELSE '&widget_height=' || fac_widget_height END)
WHERE fac_widget_type = 'FAC'
AND REGEXP_LIKE (fac_widget_url, '^.{0,18}fac_report\.asp\?(.*)usrrap_key=(\d+)\&?(.*)$');
SET DEFINE ON
-- Het vullen van de koppeltabel inclusief conversie van fac_widget.fac_widget_volgnr -> fac_widget_onpage.fac_widget_onpage_order
INSERT INTO fac_widget_onpage (fac_widget_page_key,
fac_widget_key,