fix: 回退迁移0010到原内容, 新增0013, 删除已应用迁移记录重新对齐
迁移 0010/0011 在首次 service 运行后被修改,导致 sqlx 校验和不匹配。 0010 回退到仅 ALTER COLUMN DROP NOT NULL(已幂等执行)。 新增 0013 处理全新数据库缺少 kind/entry 列的问题。 已通过 psql 删除 _sqlx_migrations 中的 0010/0011 记录, 下次 service 启动将重新应用(均为幂等操作)。
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- 确保 llm_usage 表在全新数据库上也有 kind/entry 列(迁移 0010 仅解除了旧库的 NOT NULL)
|
||||
ALTER TABLE llm_usage ADD COLUMN IF NOT EXISTS kind TEXT;
|
||||
ALTER TABLE llm_usage ADD COLUMN IF NOT EXISTS entry JSONB;
|
||||
Reference in New Issue
Block a user