From 1697c4081c9ffd4ad621564134d81cdbcbd5e908 Mon Sep 17 00:00:00 2001 From: Kazunori Kimura Date: Sun, 18 May 2025 00:32:34 +0900 Subject: [PATCH] GRANT ALL ON SCHEMA public TO ${DB_USER} --- runtime/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/functions b/runtime/functions index f6e7042..d0c1bdc 100755 --- a/runtime/functions +++ b/runtime/functions @@ -342,6 +342,9 @@ create_database() { if [[ -n ${DB_USER} ]]; then echo "‣ Granting access to ${DB_USER} user..." psql -U ${PG_USER} -c "GRANT ALL PRIVILEGES ON DATABASE \"${database}\" to \"${DB_USER}\";" >/dev/null + + echo "‣ Granting access on public schema to user '${DB_USER}'" + psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" >/dev/null fi done ;;