From a6f3c5a7b8dc8dee6d685a8724355d5b126fbb9f Mon Sep 17 00:00:00 2001 From: Automated Action Date: Fri, 30 May 2025 20:42:39 +0000 Subject: [PATCH] Fix Alembic migration import path issue --- migrations/env.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migrations/env.py b/migrations/env.py index 93f3acd..1ac55c5 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -2,6 +2,11 @@ Alembic environment configuration """ from logging.config import fileConfig +import os +import sys + +# Add the parent directory to the Python path +sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) from sqlalchemy import engine_from_config from sqlalchemy import pool