Add mcp_assets Drizzle migration - #50
Closed
eliteprox wants to merge 4 commits into
Closed
Conversation
Move table creation out of request-time DDL so follow-up PRs can query the table without owning schema or rewriting MCP/store code.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Sep 5, 2026
Skip native Git production builds so schema is applied with pnpm db:migrate before vercel build --prod / deploy --prebuilt, matching the PymtHouse path and keeping preview Git deploys.
The initial migration is a no-op on production (same unique and indexes) so we do not need a follow-up ALTER.
7 tasks
4 tasks
Schema and drizzle journal stay here; Actions plus ignoreCommand live in the dedicated deploy workflow PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schema-only. Adds the
mcp_assetstable (principal-scoped media URLs for MCP/history joins) via Drizzle so later PRs can query it without shipping DDL in app code.db/schema.ts+drizzle/0000_warm_hellfire_club.sql(CREATE TABLE IF NOT EXISTS+ indexes)drizzle-orm/drizzle-kitandpnpm db:generate/pnpm db:migrateignoreCommand— that moved to Add production GitHub deploy (migrate then Vercel) #52No foreign keys.
principal_idis an opaqueeu_…string, not a waitlist/EA user UUID. Unique is(gateway_request_id, url)only.Safe to run on the shared production/preview Neon fork:
IF NOT EXISTSmatches the table already created byensureSchema. Do not runpnpm db:migrateagainst waitlist primarymain(br-wild-boat-auv00x69); that journal already owns 0000–0004.Follow-up: #47.
Replaces the broader #49.
Test plan
pnpm typecheck/pnpm lintlib/mcp/or runtime query pathsmcp_assets(live waitlist table and this SQL)VERCEL_PRODUCTION_AUTO_DEPLOYpnpm db:migrateagainst the shared fork only; waitlist primary journal stays at 0000–0004