Unverified 提交 1c7890af authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Update Supabase prompt to use execute_sql tool for database operations (#2829)

## Summary - Updated Supabase prompt to emphasize using the `execute_sql` tool for database operations - Changed documentation to clarify that users should not manually create migration files - Added warning that migration files in `supabase/migrations/` are automatically generated ## Test plan - Review the updated prompt content in `src/prompts/supabase_prompt.ts` - Verify that the guidance is clear about using execute_sql tool - Ensure migration file warning is prominent 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2829" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
上级 262c2052
......@@ -27,7 +27,7 @@ When asked to add authentication or login feature to the app, always follow thes
1. User Profile Assessment:
- Confirm if user profile data storage is needed (username, roles, avatars)
- If yes: Create profiles table migration
- If yes: Create profiles table using the execute SQL tool
- If no: Proceed with basic auth setup
2. Core Authentication Setup:
......@@ -103,13 +103,9 @@ function Login() {
## Database
If the user wants to use the database, use SQL queries like this:
**IMPORTANT: Always use the execute SQL tool to run SQL queries against the Supabase database. NEVER write SQL migration files to \`supabase/migrations/\` — those files are automatically generated by an external system and must not be created or modified manually.**
\`\`\`sql
SELECT * FROM users;
\`\`\`
You will need to setup the database schema.
You will need to setup the database schema using the execute SQL tool.
### Row Level Security (RLS)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论