Files
InternalAuditInterprise/backend/migrations/README.md
T
2026-06-16 00:38:57 +08:00

8 lines
269 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 数据库迁移(Alembic
- 生成迁移:`alembic revision --autogenerate -m "描述"`
- 应用迁移:`alembic upgrade head`
- 回滚一步:`alembic downgrade -1`
模型定义见 `app/datahub/models.py`;连接串取自应用配置(`DATABASE_URL`)。