-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ab1088
commit 1fa878f
Showing
3 changed files
with
14 additions
and
30 deletions.
There are no files selected for viewing
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,14 @@ | ||
USE ROLE sysadmin; | ||
CREATE DATABASE IF NOT EXISTS genie; | ||
|
||
-- ! Grant roles | ||
USE ROLE SECURITYADMIN; | ||
grant USAGE on database genie | ||
to role genie_admin; | ||
GRANT USAGE ON FUTURE SCHEMAS IN DATABASE GENIE | ||
TO ROLE genie_admin; | ||
GRANT SELECT ON FUTURE TABLES IN DATABASE GENIE | ||
TO ROLE genie_admin; | ||
|
||
GRANT USAGE ON WAREHOUSE tableau | ||
TO ROLE genie_admin; |
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 |
---|---|---|
|
@@ -19,18 +19,6 @@ grant role genie_admin | |
to user "[email protected]"; | ||
grant role genie_admin | ||
to user "[email protected]"; | ||
grant USAGE on database genie | ||
to role genie_admin; | ||
GRANT USAGE ON FUTURE SCHEMAS IN DATABASE GENIE | ||
TO ROLE genie_admin; | ||
GRANT SELECT ON FUTURE TABLES IN DATABASE GENIE | ||
TO ROLE genie_admin; | ||
-- GRANT USAGE ON ALL SCHEMAS IN DATABASE GENIE | ||
-- TO ROLE genie_admin; | ||
-- GRANT SELECT ON ALL TABLES IN DATABASE GENIE | ||
-- TO ROLE genie_admin; | ||
GRANT USAGE ON WAREHOUSE tableau | ||
TO ROLE genie_admin; | ||
|
||
// RECOVER | ||
USE ROLE USERADMIN; | ||
|
This file was deleted.
Oops, something went wrong.