From 9c94d2fadcd2ec94b0536219a5e1c798f4fcd49e Mon Sep 17 00:00:00 2001 From: Marco Perone Date: Wed, 10 Apr 2024 17:37:06 +0200 Subject: [PATCH] grant to database user all privileges on public schema --- scripts/db/setup | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/db/setup b/scripts/db/setup index cbffb4c..41dbdad 100755 --- a/scripts/db/setup +++ b/scripts/db/setup @@ -28,6 +28,7 @@ then echo "[DB] Granting privileges to \"$dbuser\"..." psql --command "grant all privileges on database \"$dbname\" to \"$dbuser\";" + psql -d "$dbname" --command "grant all on schema public to \"$dbuser\"" echo "[DB] Applying schema..." psql -U "$dbuser" -d "$dbname" -f ./schema.sql;