From c9124dddaa31085d8ba60cd251ae82e431be9076 Mon Sep 17 00:00:00 2001 From: Kazunori Kimura Date: Sun, 18 May 2025 01:28:23 +0900 Subject: [PATCH] fix: specify database to GRANT ALL ON SCHEMA public TO ${DB_USER} --- runtime/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/functions b/runtime/functions index d0c1bdc..433de51 100755 --- a/runtime/functions +++ b/runtime/functions @@ -344,7 +344,7 @@ create_database() { 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 + psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" -d "${database}" >/dev/null fi done ;;