FORGE-85: shared enum value arrays in @forgegraph/db/enums #696
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!696
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-85-enum-arrays"
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?
Part 1 of FORGE-85 (D1 Phase 2, parent FORGE-69). No behaviour change.
packages/db/src/enums.ts:as constvalue arrays for all 78 pgEnums, exported as@forgegraph/db/enums.z.enum([...])or[...] as constnow import the array. Subsets (queued/running), coincidental matches (app-release semver bump vs registry_upgrade_type), tests, mobile and client UI are left alone.Verification
drizzle-kit exportSQL is byte-identical before and after (78 CREATE TYPE, no diff).packages/db/src/enums.test.tsasserts each pgEnum is built from its array (79 tests).🤖 Generated with Claude Code