fix

pull/10/head
Andrew Wang 1 year ago
parent 90818e5b1f
commit 5f74302b17
  1. 2
      ceod/db/PostgreSQLService.py

@ -21,7 +21,7 @@ class PostgreSQLService:
search_for_user = f"SELECT FROM pg_roles WHERE rolname='{username}'"
search_for_db = f"SELECT FROM pg_database WHERE datname='{username}'"
create_user = f"CREATE USER {username} WITH PASSWORD %(password)s"
reset_password = f"ALTER USER {username} WITH PASSWORD %(password)s)"
reset_password = f"ALTER USER {username} WITH PASSWORD %(password)s"
create_database = f"""
CREATE DATABASE {username} OWNER {username};
REVOKE ALL ON DATABASE {username} FROM PUBLIC;

Loading…
Cancel
Save