Skip to content

Commit c5897f4

Browse files
authored
Add ALTER commands (#915)
1 parent 74537ac commit c5897f4

File tree

1 file changed

+6
-0
lines changed
  • data-refactoring-advisor/hands-on-lab/virtualpdb

1 file changed

+6
-0
lines changed

data-refactoring-advisor/hands-on-lab/virtualpdb/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ GRANT SELECT ON GRANT SELECT ON College.department_courses_view to CourseCatalog
8484
8585
### then grant the role to the user coursedev
8686
GRANT CourseCatalogDeveloper TO coursedev;
87+
88+
### Make the new role a default role
89+
ALTER USER COURSEDEV DEFAULT ROLE ALL;
8790
```
8891

8992
Now, the coursedev user can attach to the database and run queries on the view
@@ -164,6 +167,9 @@ GRANT DELETE ON College.students_view to StudentDeveloper
164167
165168
### then grant the role to the user studentdev
166169
GRANT StudentDeveloper TO studentdev;
170+
171+
### Make the new role a default role
172+
ALTER USER STUDENTDEV DEFAULT ROLE ALL;
167173
```
168174
Now, the studentdev user can attach to the database and run CRUD operations on the view
169175

0 commit comments

Comments
 (0)