Skip to content

Commit

Permalink
Change default database name (#13)
Browse files Browse the repository at this point in the history
This reflects changes made to the database container image.

Change database environment variables prefixes to be implementation agnostic.
  • Loading branch information
samdoran authored Jan 13, 2025
1 parent 4e91299 commit 4d551b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

DB_NAME = os.getenv("SQLALCHEMY_DB", "release_notes_db")
DB_USER = os.getenv("SQLALCHEMY_USER", "postgres")
DB_PASSWORD = os.getenv("SQLALCHEMY_PASSWORD", "password")
DB_NAME = os.getenv("DB_NAME", "digital_roadmap")
DB_USER = os.getenv("DB_USER", "postgres")
DB_PASSWORD = os.getenv("DB_PASSWORD", "password")
DB_HOST = os.getenv("DB_HOST", "localhost")
DB_PORT = os.getenv("DB_PORT", 5432)
SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}"

0 comments on commit 4d551b0

Please sign in to comment.