From d0db8e9e680d6d2a9efd0622b39b091c520b6a6e Mon Sep 17 00:00:00 2001 From: Razvan Vacaru Date: Fri, 17 Sep 2021 17:36:32 +0200 Subject: [PATCH] restored creation of dbt schema, aparently this is needed even if docker compose also creates it... --- test/setup_db.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/setup_db.sh b/test/setup_db.sh index 5d948ac92e0..acf386a99a9 100644 --- a/test/setup_db.sh +++ b/test/setup_db.sh @@ -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;"