Skip to content

Commit

Permalink
restored creation of dbt schema, aparently this is needed even if doc…
Browse files Browse the repository at this point in the history
…ker compose also creates it...
  • Loading branch information
rvacaru committed Oct 8, 2021
1 parent 839ed70 commit d0db8e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/setup_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ until pg_isready -h ${PGHOST} -p ${PGPORT} -U ${PGUSER}; do
sleep 2;
done;

createdb dbt
psql -c "CREATE ROLE root WITH PASSWORD 'password';"
psql -c "ALTER ROLE root WITH LOGIN;"
psql -c "GRANT CREATE, CONNECT ON DATABASE dbt TO root WITH GRANT OPTION;"

psql -c "CREATE ROLE noaccess WITH PASSWORD 'password' NOSUPERUSER;"
psql -c "ALTER ROLE noaccess WITH LOGIN;"
psql -c "GRANT CONNECT ON DATABASE dbt TO noaccess;"
Expand Down

0 comments on commit d0db8e9

Please sign in to comment.