diff --git a/backend/alembic/env.py b/backend/alembic/env.py index ba288ef..50ac91b 100644 --- a/backend/alembic/env.py +++ b/backend/alembic/env.py @@ -43,7 +43,8 @@ def run_migrations_offline() -> None: script output. """ - url = config.get_main_option("sqlalchemy.url", os.environ["DATABASE_URL"]) + url = os.environ["DATABASE_URL"] + print(url) context.configure( url=url, target_metadata=target_metadata, diff --git a/backend/requirements.txt b/backend/requirements.txt index b30441d..7a1aa15 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -11,4 +11,5 @@ bcrypt==4.3.0 uvicorn==0.41.0 pyyaml==6.0.3 psycopg2-binary==2.9.11 -python-multipart==0.0.22 \ No newline at end of file +python-multipart==0.0.22 +alembic==1.18.4 \ No newline at end of file