Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init_db() not called during startup? #7

Closed
sidmitra opened this issue Feb 11, 2022 · 1 comment
Closed

init_db() not called during startup? #7

sidmitra opened this issue Feb 11, 2022 · 1 comment

Comments

@sidmitra
Copy link

sidmitra commented Feb 11, 2022

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()
@mtucker502
Copy link

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

@mjhea0 mjhea0 closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants