You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/copier-template/migrations/README.md.jinja

18 lines
317 B
Django/Jinja

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 数据库迁移
本目录是业务项目唯一的 Alembic migration 流。
初始化时先同步框架 migration
```bash
python -m flask --app app.py iti migrations sync
```
再升级数据库:
```bash
python -m flask --app app.py db upgrade
```
`versions/` 下的 migration 文件必须提交到 Git。