Skip to content

Commit

Permalink
Do not create user database
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Mar 24, 2024
1 parent ec0b601 commit b0399db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/core/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def prepare(self):
f"CREATE USER {self._database_name} WITH CREATEDB ENCRYPTED PASSWORD '{self._database_password}';"
)
cursor.execute(f"GRANT CONNECT ON DATABASE {self._task.assigment.database} TO {self._database_name};")
cursor.execute(f"CREATE DATABASE {self._database_name} OWNER {self._database_name};")
connection.commit()

conn = psycopg.connect(
Expand Down

0 comments on commit b0399db

Please sign in to comment.