-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing access to app template 9 table
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
db/deploy/tables/application_form_template_9_data_001_add_missing_roles.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
7 changes: 7 additions & 0 deletions
7
db/revert/tables/application_form_template_9_data_001_add_missing_roles.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters