Check for pending database migrations and provide Lovable prompts to apply them.
Check for pending database migrations and generate Lovable prompts to apply them. Automatically executes migrations when yolo mode is enabled.
/plugin marketplace add 10K-Digital/lovable-claude-code/plugin install 10k-digital-lovable@10K-Digital/lovable-claude-codeCheck for pending migrations and generate Lovable deployment prompts.
List migration files:
supabase/migrations/Show migration content for review:
-- Migration: [filename]
[SQL content]
β οΈ **Destructive operation detected!**
This migration contains: [operation]
Ensure you have a backup before proceeding.
π **LOVABLE PROMPT:**
> "Apply pending Supabase migrations"
Or for review first:
π **LOVABLE PROMPT:**
> "Review and apply the migration [filename]"
After applying, verify:
> "Show me the [table_name] table structure"
After generating the prompt, check if yolo mode is enabled:
Read CLAUDE.md:
## Yolo Mode Configuration (Beta) sectionStatus fieldTesting and Debug Mode settingsIf Status: on:
/skills/yolo/SKILL.md)Testing: on
e. Show deployment summaryIf Status: off or not found:
π‘ **Tip:** Automate migrations with yolo mode!
Run: /lovable:yolo on
Benefits: No manual copy-paste, automatic testing
## Pending Migrations
### 20250101120000_add_profiles_table.sql
```sql
CREATE TABLE profiles (
id UUID PRIMARY KEY REFERENCES auth.users(id),
full_name TEXT,
avatar_url TEXT,
created_at TIMESTAMPTZ DEFAULT NOW()
);
ALTER TABLE profiles ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users can view own profile"
ON profiles FOR SELECT
USING (auth.uid() = id);
β No destructive operations detected.
π LOVABLE PROMPT:
"Apply pending Supabase migrations"
After applying:
"Show me the profiles table structure"
π‘ Remember to update CLAUDE.md with the new table.
π‘ Tip: Automate migrations with yolo mode! Run: /lovable:yolo on Benefits: No manual copy-paste, automatic testing
### Example 2: Yolo Mode Enabled (Automated)
β No destructive operations detected. β Committed and pushed to main
π€ Yolo mode: Applying Supabase migrations
β³ Step 1/7: Navigating to Lovable project... β Step 2/7: Located chat interface β Step 3/7: Submitted prompt: "Apply pending Supabase migrations" β³ Step 4/7: Waiting for Lovable response... β Step 5/7: Migration confirmed β³ Step 6/7: Running verification tests... β Step 7/7: All tests passed
Operation: Database Migration Migration: 20250101120000_add_profiles_table.sql Status: β Success Duration: 42 seconds
Verification Tests:
Next Steps:
π‘ Yolo mode is enabled. Run /lovable:yolo off to disable.