Skip to content

Update all table references to opensprout_ prefix#61

Merged
sparshsam merged 2 commits into
mainfrom
migrate-opensprout-table-prefix
Jun 28, 2026
Merged

Update all table references to opensprout_ prefix#61
sparshsam merged 2 commits into
mainfrom
migrate-opensprout-table-prefix

Conversation

@sparshsam

Copy link
Copy Markdown
Owner

Database migration renamed all OpenSprout tables with an opensprout_ prefix to namespace them in the shared Supabase project with OpenSend.\n\n26 files updated across web app, MCP server, tests, and migration:\n\n| Area | Changes |\n|------|---------|\n| Web app data layer | All .from('tablename').from('opensprout_tablename') (12 files) |\n| Type definitions | All Database type keys prefixed, all exports updated (2 files) |\n| MCP server tools | All .from() calls + join syntax updated (7 files) |\n| MCP tests | All mock expectations updated (1 file) |\n| Migration | Added delete_account() replacement (table RENAME doesn't update function bodies) |\n\nCritical fix: The delete_account() RPC function had hardcoded old table names in its body — PostgreSQL's ALTER TABLE ... RENAME doesn't update function bodies, so account deletion would fail with relation does not exist.\n\n## Verification\n\n- npm run typecheck ✅\n- npm run build ✅\n- npm run -w @opensprout/mcp test — 112/112 ✅\n- No remaining old .from('oldname') calls in source ✅

sparshsam and others added 2 commits June 28, 2026 12:14
All OpenSprout primary tables renamed to opensprout_ prefix
to cleanly share the Supabase project with OpenSend (opensend_ prefix).

Co-Authored-By: Claude <[email protected]>
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opensprout Ready Ready Preview, Comment Jun 28, 2026 4:29pm

@sparshsam sparshsam merged commit f1debb7 into main Jun 28, 2026
4 checks passed
@sparshsam sparshsam deleted the migrate-opensprout-table-prefix branch June 28, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant