Update all table references to opensprout_ prefix#61
Merged
Conversation
All OpenSprout primary tables renamed to opensprout_ prefix to cleanly share the Supabase project with OpenSend (opensend_ prefix). Co-Authored-By: Claude <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
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 | AllDatabasetype 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 | Addeddelete_account()replacement (table RENAME doesn't update function bodies) |\n\nCritical fix: Thedelete_account()RPC function had hardcoded old table names in its body — PostgreSQL'sALTER TABLE ... RENAMEdoesn't update function bodies, so account deletion would fail withrelation 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 ✅