fix: 删除 AssetModel 幽灵列 storage_key(修复 P0 端点 500) #115
Reference in New Issue
Block a user
Delete Branch "fix/p0-endpoint-500-root-cause"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复内容
PR#114 合并后,3 个 P0 端点仍然 500。
根因
AssetModel 定义了 storage_key 列,但 assets 表从未包含此列。SQLAlchemy 生成 SELECT 时包含 assets.storage_key,导致数据库查询报错。
修复
从 AssetModel 中移除 storage_key 列定义。
变更
packages/infrastructure/database/models.py: 删除 AssetModel.storage_key验证