From b008138ad4d11cf7c390c8b619c0a3b4e66a537a Mon Sep 17 00:00:00 2001 From: Karsten Thiems <150006841+typecastcloud@users.noreply.github.com> Date: Wed, 15 May 2024 15:15:12 +0200 Subject: [PATCH] docs(1.8.0): fix errors in query for version update (#311) * docs: fixed query for version update App Tech User and Connector User update query for 1.7 was not running properly. Thank you @Phil91 for the help Additionally I got some auto generated documentation when saving the file. @evegufy please tell me if I should remove this again. * Revert changes to index --- .../Version Upgrade/portal-upgrade-details.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/developer/Technical Documentation/Version Upgrade/portal-upgrade-details.md b/docs/developer/Technical Documentation/Version Upgrade/portal-upgrade-details.md index 6e374ef2..7961becd 100644 --- a/docs/developer/Technical Documentation/Version Upgrade/portal-upgrade-details.md +++ b/docs/developer/Technical Documentation/Version Upgrade/portal-upgrade-details.md @@ -437,7 +437,7 @@ WITH connector_technical_user_profiles AS ( ), connector_profiles_to_insert AS ( SELECT DISTINCT atu.technical_user_profile_id, ur.id AS user_role_id - FROM app_technical_user_profiles AS atu + FROM connector_technical_user_profiles AS atu CROSS JOIN ( SELECT id FROM portal.user_roles @@ -448,8 +448,8 @@ INSERT INTO portal.technical_user_profile_assigned_user_roles (technical_user_pr SELECT rt.technical_user_profile_id, rt.user_role_id FROM connector_profiles_to_insert rt LEFT JOIN portal.technical_user_profile_assigned_user_roles AS iar - ON rt.identity_id = iar.identity_id AND rt.technical_user_profile_id = iar.technical_user_profile_id -WHERE iar.identity_id IS NULL; + ON rt.user_role_id = iar.user_role_id AND rt.technical_user_profile_id = iar.technical_user_profile_id +WHERE iar.user_role_id IS NULL; WITH app_technical_user_profiles AS ( SELECT DISTINCT technical_user_profile_id @@ -471,8 +471,8 @@ INSERT INTO portal.technical_user_profile_assigned_user_roles (technical_user_pr SELECT rt.technical_user_profile_id, rt.user_role_id FROM profiles_to_insert rt LEFT JOIN portal.technical_user_profile_assigned_user_roles AS iar - ON rt.identity_id = iar.identity_id AND rt.technical_user_profile_id = iar.technical_user_profile_id -WHERE iar.identity_id IS NULL; + ON rt.user_role_id = iar.user_role_id AND rt.technical_user_profile_id = iar.technical_user_profile_id +WHERE iar.user_role_id IS NULL; UPDATE portal.user_roles SET user_role = 'Offer Management' WHERE user_role IN ('Service Management');