We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1bd32 commit 033f3e7Copy full SHA for 033f3e7
backend/app/alembic/env.py
@@ -1,9 +1,13 @@
1
import os
2
+import sys
3
from logging.config import fileConfig
4
5
from alembic import context
6
from sqlalchemy import engine_from_config, pool
7
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
+
11
# this is the Alembic Config object, which provides
12
# access to the values within the .ini file in use.
13
config = context.config
0 commit comments