Harden auth and persist report schedules
This commit is contained in:
@@ -76,6 +76,9 @@ async def init_db() -> None:
|
||||
Note: In production, use Alembic migrations instead.
|
||||
This is useful for development and testing.
|
||||
"""
|
||||
if settings.ENVIRONMENT == "production":
|
||||
return
|
||||
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user