Skip to content

Commit

Permalink
fixup! ✨(api) integrate postgresql database support
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaupetit committed Mar 28, 2024
1 parent aeeecb9 commit 54cdc86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api/qualicharge/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ prepend_sys_path = .
# sourceless = false

# version location specification; This defaults
# to warren/migrations/versions. When using multiple version
# to qualicharge/migrations/versions. When using multiple version
# directories, initial revisions must be specified with --version-path.
# The path separator used here should be the separator specified by "version_path_separator" below.
# version_locations = %(here)s/bar:%(here)s/bat:warren/migrations/versions
# version_locations = %(here)s/bar:%(here)s/bat:qualicharge/migrations/versions

# version path separator; As mentioned above, this is the character used to split
# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
Expand Down
4 changes: 2 additions & 2 deletions src/api/qualicharge/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class Settings(BaseSettings):
# Database
DB_ENGINE: str = "postgresql"
DB_HOST: str = "postgresql"
DB_NAME: str = "warren-api"
DB_NAME: str = "qualicharge-api"
DB_USER: str = "fun"
DB_PASSWORD: str = "pass"
DB_PORT: int = 5432
TEST_DB_NAME: str = "test-warren-api"
TEST_DB_NAME: str = "test-qualicharge-api"

@computed_field # type: ignore[misc]
@property
Expand Down

0 comments on commit 54cdc86

Please sign in to comment.