Compare commits

..

No commits in common. "e62bceb9559e86198fcd62cd6813532159188996" and "99d06baa0371f204f4de1e637d0725ac5ca111fa" have entirely different histories.

View File

@ -218,13 +218,12 @@ async def run_migrations():
"""Run database migrations."""
try:
logger.info("Running database migrations...")
# Get the absolute path to the alembic.ini file
base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
alembic_ini_path = os.path.join(base_path, 'alembic.ini')
# Get the path to the alembic.ini file
alembic_ini_path = os.path.join(os.path.dirname(__file__), '..', 'alembic.ini')
alembic_cfg = Config(alembic_ini_path)
# Set the script_location to the absolute path
script_location = os.path.join(base_path, 'alembic')
script_location = os.path.join(os.path.dirname(__file__), '..', 'alembic')
alembic_cfg.set_main_option('script_location', script_location)
# Set the sqlalchemy.url