mirror of https://github.com/tiangolo/fastapi.git
Update sql-databases.md
This commit is contained in:
parent
4abd050d7e
commit
2c70984d35
|
|
@ -506,7 +506,7 @@ current_user.items
|
|||
|
||||
“迁移”是每当您更改 SQLAlchemy 模型的结构、添加新属性等以在数据库中复制这些更改、添加新列、新表等时所需的一组步骤。
|
||||
|
||||
您可以在[Project Generation - Template](https://fastapi.tiangolo.com/zh/project-generation/)的模板中找到一个 FastAPI 项目中的 Alembic 示例。具体在[`alembic`代码目录中](https://github.com/tiangolo/full-stack-fastapi-postgresql/tree/master/src/backend/app/alembic/)。
|
||||
您可以在[Project Generation - Template](https://fastapi.tiangolo.com/zh/project-generation/)的模板中找到一个 FastAPI 项目中的 Alembic 示例。具体在[`alembic`代码目录中](https://github.com/tiangolo/full-stack-fastapi-template/tree/master/backend/app/alembic)。
|
||||
|
||||
### 创建依赖项
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue