Skip to content

Commit

Permalink
fix: add missing access to app template 9 table
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed Nov 7, 2024
1 parent 82fd8ef commit a2f56b6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- Deploy ccbc:tables/application_form_template_9_data_001_add_missing_roles to pg

BEGIN;

do
$grant$
begin

-- Grant cbc_admin permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'cbc_admin');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'cbc_admin');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'cbc_admin');

-- Grant analyst account permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'ccbc_analyst');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'ccbc_analyst');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'ccbc_analyst');

-- Grant super_admin account permissions
perform ccbc_private.grant_permissions('select', 'application_form_template_9_data', 'super_admin');
perform ccbc_private.grant_permissions('insert', 'application_form_template_9_data', 'super_admin');
perform ccbc_private.grant_permissions('update', 'application_form_template_9_data', 'super_admin');

end
$grant$;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert ccbc:tables/application_form_template_9_data_001_add_missing_roles from pg

BEGIN;

-- XXX Add DDLs here.

COMMIT;
1 change: 1 addition & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -725,3 +725,4 @@ grant_read_access_to_service_account 2024-10-04T18:45:20Z Anthony Bushara <antho
@1.204.0 2024-11-05T20:41:06Z CCBC Service Account <[email protected]> # release v1.204.0
@1.205.0 2024-11-05T20:57:02Z CCBC Service Account <[email protected]> # release v1.205.0
@1.206.0 2024-11-07T16:34:36Z CCBC Service Account <[email protected]> # release v1.206.0
tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:37Z Rafael Solorzano <[email protected]> # grant missing roles access to application template 9 table

0 comments on commit a2f56b6

Please sign in to comment.