Skip to content

Commit

Permalink
Merge pull request #40 from MinaFoundation/fix-create-db-script
Browse files Browse the repository at this point in the history
fix initial connection in create-database script
  • Loading branch information
piotr-iohk authored Mar 15, 2024
2 parents 236d3b7 + b664fae commit 4e42b0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ def create_database(ctx):
db_password = os.environ.get("POSTGRES_PASSWORD")

# Establishing connection to PostgreSQL server
# (connect to initial database 'postgres' to create a new database)
conn = psycopg2.connect(
host=db_host, port=db_port, user=db_user, password=db_password
host=db_host,
port=db_port,
dbname="postgres",
user=db_user,
password=db_password,
)
conn.autocommit = True
cursor = conn.cursor()
Expand Down

0 comments on commit 4e42b0f

Please sign in to comment.