docs: remove hardcoded alembic database url

This commit is contained in:
Ilgiz Kalmetyev 2026-04-09 23:23:27 +05:00
parent 9d718c3b73
commit 3f61f42666
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
script_location = migrations
prepend_sys_path = src
version_path_separator = os
sqlalchemy.url = postgresql+psycopg://techlib:change-me@localhost:5432/techlib
# sqlalchemy.url is injected from environment-driven project config in migrations/env.py
[loggers]
keys = root,sqlalchemy,alembic

View File

@ -89,6 +89,7 @@ Run Alembic from the project virtual environment, not from the system Python ins
If you are on the deployment host, activate `/opt/techlib_mcpserver/.venv` first or call `/opt/techlib_mcpserver/.venv/bin/alembic` directly.
Run it from the repository root so `alembic.ini` is visible, or pass the config
explicitly with `-c /path/to/repo/alembic.ini`.
The Alembic config file must not hardcode live credentials; `migrations/env.py` builds the connection URL from the current environment.
Recommended settings for migration runs: