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

fix: add missing access to app template 9 table #3636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
@@ -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 @@ -720,3 +720,4 @@ tables/application_form_template_9_data 2024-09-25T22:50:17Z Rafael Solorzano <6
@1.203.2 2024-10-29T17:37:47Z CCBC Service Account <ccbc@button.is> # release v1.203.2
mutations/archive_application_sow [mutations/archive_application_sow@1.201.0] 2024-10-24T19:57:11Z Anthony Bushara <anthony@button.is> # Add application ID to prevent archiving other applications
@1.203.3 2024-10-29T21:17:39Z CCBC Service Account <ccbc@button.is> # release v1.203.3
tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:37Z Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> # grant missing roles access to application template 9 table
Loading