Skip to content

Commit 07e094f

Browse files
📝 Add note about Alembic in project generator in SQL docs (fastapi#1183)
* Update sql-databases alembic docs Was helpful to refer to the full-stack project when integrating alembic into my own project * 📝 Update Alembic note in docs Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 parent 1cc30de commit 07e094f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/en/docs/tutorial/sql-databases.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ And you would also use Alembic for "migrations" (that's its main job).
437437

438438
A "migration" is the set of steps needed whenever you change the structure of your SQLAlchemy models, add a new attribute, etc. to replicate those changes in the database, add a new column, a new table, etc.
439439

440+
You can find an example of Alembic in a FastAPI project in the templates from [Project Generation - Template](../project-generation.md){.internal-link target=_blank}. Specifically in <a href="https://github.com/tiangolo/full-stack-fastapi-postgresql/tree/master/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/alembic/" class="external-link" target="_blank">the `alembic` directory in the source code</a>.
441+
440442
### Create a dependency
441443

442444
!!! info

0 commit comments

Comments
 (0)