Skip to content

Commit

Permalink
Testare create database windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Duta-Sebastian committed Dec 22, 2024
1 parent 13bc555 commit 1b89f05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/configure-PostgreSQL/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ runs:
$env:PGPASSWORD = "root"
$env:PATH += ";C:\Program Files\PostgreSQL\14\bin"
$env:PATH += ";C:\Program Files\PostgreSQL\14\lib"
psql -h 127.0.0.1 -U postgres -c "CREATE USER `"$DATABASE_USER`" WITH CREATEDB PASSWORD `"$DATABASE_PASSWORD`";"
psql -h 127.0.0.1 -U postgres -c "CREATE DATABASE `"$DATABASE_NAME`" WITH OWNER `"$DATABASE_USER`";"
psql -h 127.0.0.1 -U postgres -c "CREATE USER `"$DATABASE_USER`" WITH CREATEDB PASSWORD '$DATABASE_PASSWORD';"
psql -h 127.0.0.1 -U postgres -c "CREATE DATABASE `"$DATABASE_NAME`" WITH OWNER `"$DATABASE_USER`";"
$env:PGPASSWORD = "$DATABASE_PASSWORD"
psql -h 127.0.0.1 -U $DATABASE_USER -c "\l;"

0 comments on commit 1b89f05

Please sign in to comment.