-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grant additional schema permissions to analysis role (#2503)
- Loading branch information
1 parent
9ebb24e
commit ea0692a
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...ations/user-permissions/20230503161141.do.analysis-schema-data-role-create-table-view.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,3 @@ | ||
GRANT CREATE TABLE TO [data_analysis_role] | ||
-- allow data analysis role to create foreign keys and view object definitions | ||
GRANT REFERENCES, VIEW DEFINITION ON SCHEMA ::[mtc_analysis] TO [data_analysis_role] |
2 changes: 2 additions & 0 deletions
2
...ions/user-permissions/20230503161141.undo.analysis-schema-data-role-create-table-view.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,2 @@ | ||
REVOKE CREATE TABLE TO [data_analysis_role] | ||
REVOKE REFERENCES, VIEW DEFINITION ON SCHEMA ::[mtc_analysis] TO [data_analysis_role] |