From df4b6614e1b96e315109744115c1c52ba833aee8 Mon Sep 17 00:00:00 2001 From: Kofi Kusi Appau Date: Mon, 29 Sep 2025 14:54:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20function=20name=20from?= =?UTF-8?q?=20create=5Ftables=20to=20create=5Fdb=5Fand=5Ftables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tutorial/fastapi/simple-hero-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/simple-hero-api.md b/docs/tutorial/fastapi/simple-hero-api.md index 163fa281b1..79cf075e1b 100644 --- a/docs/tutorial/fastapi/simple-hero-api.md +++ b/docs/tutorial/fastapi/simple-hero-api.md @@ -60,7 +60,7 @@ And then create an `app` object that is an instance of that `FastAPI` class: ## Create Database and Tables on `startup` -We want to make sure that once the app starts running, the function `create_tables` is called. To create the database and tables. +We want to make sure that once the app starts running, the function `create_db_and_tables` is called. To create the database and tables. This should be called only once at startup, not before every request, so we put it in the function to handle the `"startup"` event: