File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 22title : 主键
33---
44
5- 我们在 fba 中为数据库主键添加了两种选择,分别为传统模式(自增 ID)和雪花算法(雪花 ID),==我们在全局范围内(包括插件)使用自增
5+ 我们在 fba 中为数据库主键添加了两种选择,分别为传统模式(自增 ID)和雪花算法(雪花 ID),==我们在全局范围内使用自增
66ID 作为主键的默认声明方式=={.note}
77
88在切换主键声明方式之前,让我们先来简单了解一下它们的特性,再决定是否需要切换
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
114114 ```
115115
1161167 . 按需修改配置文件 ` backend/core/conf.py ` 和 ` .env `
117- 8 . 创建数据库表 <Badge type =" warning " text =" 三选一 " />
117+ 8 . 创建数据库表 <Badge type =" warning " text =" 二选一 " />
118118
119119 ::: tabs
120120 @tab 自动创建
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ title: 快速开始
3838
3939::::
4040
41+ ::: warning
42+ 任意方式安装插件后,在重启 fba 服务前,务必检查插件内的 sqlalchemy model
43+ 文件(如果存在)中的主键模式是否与你当前正在使用的主键模式相匹配,参考:[ 切换主键] ( ../backend/reference/pk.md )
44+ :::
45+
4146::: caution
4247无论采用哪种安装方式,fba 服务都不会实时热重载,您必须重新启动,插件功能才能被正确加载到 FastAPI 应用中
4348
You can’t perform that action at this time.
0 commit comments