Skip to content

Commit c9124dd

Browse files
committed
fix: specify database to GRANT ALL ON SCHEMA public TO ${DB_USER}
1 parent 1697c40 commit c9124dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ create_database() {
344344
psql -U ${PG_USER} -c "GRANT ALL PRIVILEGES ON DATABASE \"${database}\" to \"${DB_USER}\";" >/dev/null
345345

346346
echo "‣ Granting access on public schema to user '${DB_USER}'"
347-
psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" >/dev/null
347+
psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" -d "${database}" >/dev/null
348348
fi
349349
done
350350
;;

0 commit comments

Comments
 (0)