Files
xiaoxia-saas/alembic
灵应 ff660b1438
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Staging E2E Tests (push) Failing after 92h30m48s
Deploy / Deploy Staging (push) Failing after 92h39m46s
CI/CD Pipeline / Frontend Lint (push) Failing after 92h39m54s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 92h39m54s
feat: 补025号迁移文件 — wechat_openid/wechat_unionid 字段纳入版本管理
- 新建 alembic/versions/025_add_user_wechat_fields.py
  - revision=025, down_revision=024
  - upgrade: 幂等加字段+唯一索引(检查列/索引是否存在再操作)
  - downgrade: 删除索引+删除字段
- UserModel 新增 wechat_openid / wechat_unionid 列定义
- 验证:upgrade 024→025 ✓ | downgrade 025→024 ✓ | 全量测试 994 passed

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 16:14:36 +08:00
..

Alembic Migrations

This directory contains database migration scripts managed by Alembic.

Usage

# Apply all pending migrations
alembic upgrade head

# Rollback one migration
alembic downgrade -1

# Show current revision
alembic current

# Show migration history
alembic history

Current Migrations

  • 001_initial_schema.py - Initial database schema (projects, asset_libraries, assets, ingest_jobs)