FORGE-85: parse D1's extended constraint messages; dialect-aware D1 tests #745
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!745
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-85-d1-lane-fixes"
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?
Follow-up to FORGE-85 (#703, #706, #708, #712) for the non-required
database-d1lane.UNIQUE constraint failed: changesets.id: SQLITE_CONSTRAINT (extended: SQLITE_CONSTRAINT_PRIMARYKEY).classifyDbErrorkept the suffix in the column name, so column-based checks (deployment_events.seq collisions in #713) could never match on D1. The column list now stops at: SQLITE_. A unit test covers the exact D1 message.db-error-classification: asserts the SQLite shape on D1 and runs the FK case there too (D1 enforces FKs).registry-stale-cutoff: the bound cutoff is tested through drizzle on both dialects; the raw-SQL encoder bind (registry raw Postgres until Phase 6) is Postgres-only.json-helpers:jsonGetand counts run on D1;jsonMergestays Postgres until the D1 schema swaps its body (per-key json_set);::intreference values are Postgres-only.d1-known-failures.txt: +deployment-events-seq-index(its serial-default first try has no default on D1; #713 removes that path).Verification:
pnpm --filter @forgegraph/api test:d127 files passed, 0 failed. The changed files pass on D1, PGlite and Postgres 16. packages/db errors tests 9/9. No schema change.🤖 Generated with Claude Code
Preview environment is live: https://pr-745-forgegraph.forgegraf.com
Deployed
7669d57awith the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.7669d57a261b1bb220c7Preview environment is live: https://pr-745-forgegraph.forgegraf.com
Deployed
1b1bb220with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.Preview environment is live: https://pr-745-forgegraph.forgegraf.com
Deployed
1b1bb220with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.