Skip to content

Commit

Permalink
Move GENIE setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Oct 17, 2023
1 parent 3ab1088 commit 1fa878f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
14 changes: 14 additions & 0 deletions admin/genie_setup.sql
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;
12 changes: 0 additions & 12 deletions admin/roles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 0 additions & 18 deletions elt/genie_setup.sql

This file was deleted.

0 comments on commit 1fa878f

Please sign in to comment.