Skip to content

Commit

Permalink
fix: #1614 add client suspend role (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu authored Oct 7, 2024
1 parent e167740 commit 72713ec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions server/flyway/sql/V58__add_suspend_role_to_forest_client.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-- Add a CLIENT_SUSPEND role to Forest Client DEV and TEST
WITH application_ids AS (
SELECT
application_id,
application_name
FROM
app_fam.fam_application
WHERE
application_name IN ('CLIENT_DEV', 'CLIENT_TEST')
)
INSERT INTO
app_fam.fam_role (
role_name,
role_purpose,
application_id,
role_type_code,
create_user,
create_date,
display_name
)
SELECT
'CLIENT_SUSPEND',
'Ministry role to allow for the management of suspending clients',
application_id,
'C',
CURRENT_USER,
CURRENT_DATE,
'Suspend'
FROM
application_ids;

0 comments on commit 72713ec

Please sign in to comment.