cjw
|
bee439cf34
|
x
|
2026-08-31 18:01:34 +08:00 |
|
cjw
|
853c478657
|
xxx
|
2026-07-30 10:30:50 +08:00 |
|
cjw
|
cf6d708566
|
xxx
|
2026-07-27 15:54:25 +08:00 |
|
cjw
|
00ca81287e
|
feat(db): 引入 Alembic 取代裸 DDL 迁移
- alembic init + env.py 接 settings/models metadata(asyncpg->psycopg2 同步 URL)
- 补 3 个 CheckConstraint 到 models(原只在裸 DDL)
- 离线生成初始迁移(31 表+约束+95 索引,全 sa.* 通用类型)
- init_db 用 _run_alembic_migrations(自动基线+upgrade head)替换 create_tables+ensure_schema_updates(删 92 行裸 DDL)
- 删破坏性 migrate_db.py(drop_all)
- 既有 DB 首次启动自动 stamp 基线,无需手动
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-20 11:04:23 +08:00 |
|
cjw
|
8493f0df03
|
init
|
2026-07-13 17:44:50 +08:00 |
|
cjw
|
6b3188e693
|
x
|
2026-06-23 09:38:31 +08:00 |
|
cjw
|
b22431d3cb
|
x
|
2026-06-01 10:44:08 +08:00 |
|
cjw
|
823a387118
|
后端模块拆分
|
2026-05-29 18:10:08 +08:00 |
|