Fix Alembic migration import path issue
This commit is contained in:
parent
2f6fcf68fe
commit
a6f3c5a7b8
@ -2,6 +2,11 @@
|
|||||||
Alembic environment configuration
|
Alembic environment configuration
|
||||||
"""
|
"""
|
||||||
from logging.config import fileConfig
|
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 engine_from_config
|
||||||
from sqlalchemy import pool
|
from sqlalchemy import pool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user