Skip to content

Commit

Permalink
Merge pull request #67 from tweag/marcosh/fix-db-setup
Browse files Browse the repository at this point in the history
grant to database user all privileges on public schema
  • Loading branch information
cgeorgii authored Apr 22, 2024
2 parents 2800370 + 9c94d2f commit 42745e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/db/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42745e4

Please sign in to comment.