diff --git a/alembic/env.py b/alembic/env.py index 3ea4777..ab232e2 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -1,4 +1,9 @@ from logging.config import fileConfig +import os +import sys + +# Add the parent directory to the path so imports work correctly +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from sqlalchemy import engine_from_config from sqlalchemy import pool