fastapi-sqlmodel-alembic icon indicating copy to clipboard operation
fastapi-sqlmodel-alembic copied to clipboard

init_db() not called during startup?

Open sidmitra opened this issue 3 years ago • 1 comments

I noticed that in the article init_db was being called in main.py but in the current version that's not happening. I combed through all the files figuring out if i missed it somewhere. Is there a reason or was just missed?

@app.on_event("startup")
async def on_startup():
    await init_db()

sidmitra avatar Feb 11 '22 15:02 sidmitra

Isn't init_db() removed in favor of using alembic?

mtucker502 avatar May 18 '22 14:05 mtucker502