Skip to content

Commit

Permalink
Update database service account privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Lubken committed Sep 13, 2024
1 parent dbee189 commit fa79dd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions {{cookiecutter.name}}/postgres/sql/initdb.d/003.create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ create extension if not exists tablefunc;

create schema if not exists {{cookiecutter.name}};
grant usage on schema {{cookiecutter.name}} to public;

create user if not exists {{cookiecutter.name}} with password 'password';
grant usage on schema {{coockiecutter.name}} to {{cookiecutter.name}};
grant all privileges on all tables in schema {{cookiecutter.name}} to {{cookiecutter.name}};
alter default privileges in schema {{cookiecutter.name}} grant all privileges on tables to {{cookiecutter.name}};

0 comments on commit fa79dd6

Please sign in to comment.