From e6dae202d181e4fcd71818375cc76f2b826076c3 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Fri, 23 May 2025 09:53:28 +0000 Subject: [PATCH] Fix Alembic migration error by adding project root to Python path --- migrations/env.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migrations/env.py b/migrations/env.py index afcd539..06ebf22 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -1,4 +1,9 @@ from logging.config import fileConfig +import sys +from pathlib import Path + +# Add the project root directory to Python's path +sys.path.insert(0, str(Path(__file__).parents[1])) from sqlalchemy import engine_from_config from sqlalchemy import pool