Skip to content

Commit 07fb08e

Browse files
committed
fix: url and schema name
1 parent db1e444 commit 07fb08e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

api-ms-agent/app/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Settings(BaseSettings):
144144
postgres_min_pool_size: int = 1
145145
postgres_max_pool_size: int = 10
146146
postgres_command_timeout_seconds: float = 30.0
147-
147+
postgres_schema: str = "public"
148148
# Azure AI Search settings - for vector embeddings storage
149149
azure_search_endpoint: str = ""
150150
azure_search_key: str = "" # Optional if using managed identity

api-ms-agent/app/services/postgres_db_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ async def _initialize_client(self) -> None:
117117
min_size=max(1, int(settings.postgres_min_pool_size)),
118118
max_size=max(1, int(settings.postgres_max_pool_size)),
119119
command_timeout=float(settings.postgres_command_timeout_seconds),
120+
server_settings={"search_path": settings.postgres_schema or "public"},
120121
)
121122

122123
await self._ensure_schema()

charts/app/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ data:
4343
POSTGRES_HOST: {{ $hostWithoutPort | b64enc | quote }}
4444
PGBOUNCER_URL: {{ $pgbouncerUrl | b64enc | quote }}
4545
postgres_dsn: {{ $databaseURL | b64enc | quote }}
46+
postgres_schema: {{ $databaseName | b64enc | quote }}
4647
---
4748
apiVersion: v1
4849
kind: Secret

0 commit comments

Comments
 (0)