v0.6.97: migration fix for copilot_messages#4805
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Also adds a Reviewed by Cursor Bugbot for commit 15ca66f. Configure here. |
Greptile SummaryThis PR makes migration
Confidence Score: 5/5Safe to merge — all three changes are targeted and low-risk. The migration change is purely additive idempotency guards with no schema logic altered; the UPDATE CTE was already safe to re-run. The swap file deletion is housekeeping. The new test accurately reflects the implementation's behaviour and adds useful regression coverage for nested sub-workflow cost accounting. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Drizzle as Drizzle Migration Runner
participant PG as PostgreSQL
Drizzle->>PG: ADD COLUMN IF NOT EXISTS "seq" integer
alt Column already exists (re-run scenario)
PG-->>Drizzle: no-op (no error)
else Column does not exist
PG-->>Drizzle: column created
end
Drizzle->>PG: WITH ordered / first_occurrence / ranked → UPDATE copilot_messages SET seq
PG-->>Drizzle: rows updated (idempotent)
Drizzle->>PG: CREATE INDEX IF NOT EXISTS copilot_messages_chat_seq_idx
alt Index already exists (re-run scenario)
PG-->>Drizzle: no-op (no error)
else Index does not exist
PG-->>Drizzle: index created
end
Reviews (1): Last reviewed commit: "fix(copilot): seq migration (#4804)" | Re-trigger Greptile |
fix(copilot): seq migration (#4804)