From 192399e6eaad2bfcae5acf0d77169ea46e580a2e Mon Sep 17 00:00:00 2001 From: "alireza.bahrami" Date: Sun, 4 May 2025 17:09:25 +0330 Subject: [PATCH] fix(docs/en/sql-databases): removing the warning for app event deprication --- docs/en/docs/tutorial/sql-databases.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/en/docs/tutorial/sql-databases.md b/docs/en/docs/tutorial/sql-databases.md index 3f3f11943..706bb5728 100644 --- a/docs/en/docs/tutorial/sql-databases.md +++ b/docs/en/docs/tutorial/sql-databases.md @@ -110,15 +110,6 @@ Here we create the tables on an application startup event. For production you would probably use a migration script that runs before you start your app. 🤓 -/// warning - -The `@app.on_event("startup")` and `@app.on_event("shutdown")` decorators are **deprecated** as of FastAPI v0.103.0. - -Use the `lifespan` parameter in the `FastAPI` class instead for lifecycle management. - -/// - - /// tip SQLModel will have migration utilities wrapping Alembic, but for now, you can use Alembic directly.