Adding db infrastructure setup
This commit is contained in:
parent
7dae58ec1e
commit
58bf4bea00
11 changed files with 125 additions and 6 deletions
13
SetupInfrastructure/CreateRole.txt
Normal file
13
SetupInfrastructure/CreateRole.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
CREATE ROLE sathumper WITH
|
||||
CREATEROLE
|
||||
CREATEDB
|
||||
LOGIN
|
||||
PASSWORD '<yoursecretpassword>';
|
||||
|
||||
CREATE SCHEMA ptmain;
|
||||
GRANT USAGE, CREATE ON SCHEMA ptmain TO sathumper;
|
||||
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA ptmain TO sathumper;
|
||||
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA ptmain TO sathumper;
|
||||
ALTER DEFAULT PRIVILEGES IN SCHEMA ptmain
|
||||
GRANT ALL PRIVILEGES ON TABLES TO sathumper;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue