Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: errors in query for version update #311

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
- [Postgres dependency of helm chart - ENHANCED](#postgres-dependency-of-helm-chart---enhanced)
- [v1.8.0](#v180)
- [Agreements - ENHANCED](#agreements---enhanced)
- [Impact on existing data:](#impact-on-existing-data)
- [Impact on existing data:](#impact-on-existing-data)
- [Company Certificate Details - NEW](#company-certificate-details---new)
- [Company Certificate Database Structure](#company-certificate-database-structure)
- [Supported company\_certificate\_statuses:](#supported-company_certificate_statuses)
- [Supported company\_certificate\_type\_statuses:](#supported-company_certificate_type_statuses)
evegufy marked this conversation as resolved.
Show resolved Hide resolved
- [Supported company\_certificate\_types:](#supported-company_certificate_types)
- [v1.7.0](#v170)
- [PostgreSQL - Upgrade](#postgresql---upgrade)
- [Company Service Account - FIX](#company-service-account---fix)
Expand Down Expand Up @@ -437,7 +441,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
Expand All @@ -448,8 +452,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
Expand All @@ -471,8 +475,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');

Expand Down
Loading