Skip to content

Commit 033f3e7

Browse files
committed
fix: update Alembic configuration for proper module imports
1 parent 9b1bd32 commit 033f3e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/app/alembic/env.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import os
2+
import sys
23
from logging.config import fileConfig
34

45
from alembic import context
56
from sqlalchemy import engine_from_config, pool
67

8+
# Add the parent directory of 'app' to Python path
9+
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
10+
711
# this is the Alembic Config object, which provides
812
# access to the values within the .ini file in use.
913
config = context.config

0 commit comments

Comments
 (0)