14 lines
186 B
Markdown
14 lines
186 B
Markdown
|
# 数据库迁移文件
|
||
|
|
||
|
## 生成数据库迁移文件
|
||
|
|
||
|
```shell
|
||
|
alembic revision --autogenerate -m "create table user"
|
||
|
```
|
||
|
|
||
|
## 执行数据库迁移
|
||
|
|
||
|
```shell
|
||
|
alembic upgrade head
|
||
|
```
|