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

README.md.jinja

# 数据库迁移

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

```bash
uv run alembic -c migrations/alembic.ini revision --autogenerate -m "alice add example table"
uv run alembic -c migrations/alembic.ini upgrade head
```

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

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

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