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
NoahLan 9a71aa8c93 refactor: rebuild fastapi framework foundation 2 weeks ago
..
versions refactor: 重构框架项目,轻量微服务+copier+底包仓库依赖方式,而非代码直接进入 3 weeks ago
README.md.jinja refactor: rebuild fastapi framework foundation 2 weeks ago
alembic.ini refactor: rebuild fastapi framework foundation 2 weeks ago
env.py refactor: rebuild fastapi framework foundation 2 weeks ago
script.py.mako refactor: 重构框架项目,轻量微服务+copier+底包仓库依赖方式,而非代码直接进入 3 weeks ago

README.md.jinja

# 数据库迁移

本目录是业务项目唯一的 Alembic migration 流。

```bash
uv run alembic revision --autogenerate -m "alice add example table"
uv run alembic upgrade head
```

`versions/` 下的 migration 文件必须提交到 Git。

{% if include_system %}
系统 migration 同步:

```bash
uv run iti-system migrations sync --target migrations/versions
```
{% endif %}