Compare commits

..

No commits in common. "de5f54f9701c04cd5a7e466390c35c124401e713" and "792a7878f0c159725d130204690f36f9260c2fac" have entirely different histories.

View File

@ -223,9 +223,7 @@ async def startup_event():
# Run database migrations
try:
logger.info("Running database migrations...")
alembic_cfg = Config()
alembic_cfg.set_main_option("script_location", "alembic")
alembic_cfg.set_main_option("sqlalchemy.url", settings.DATABASE_URL)
alembic_cfg = Config("alembic.ini")
command.upgrade(alembic_cfg, "head")
logger.info("Database migrations completed successfully.")
except Exception as e: