#24 most commondatabaseLovableBolt.newCursorReplitv0Windsurf
relation "public.x" does not exist / Could not find the table in the schema cache
relation "public.profiles" does not exist (42P01) / Could not find the table 'public.profiles' in the schema cache (PGRST205)
Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.
Paste your error →What it means
The code is asking for a database table that doesn't exist. Often the AI wrote code for a table but the step that creates it (the migration) never ran on your actual database.
How to fix it: paste this prompt into your AI builder
Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
My app says a table does not exist. Check which tables the code uses versus the tables that actually exist in my Supabase project. Write a single SQL migration that creates any missing table with the columns the code expects, enables RLS, and adds appropriate policies. Don't rename existing tables or change code that already works. Tell me exactly where to run the SQL if it can't be applied automatically.
If the AI can't fix it: manual steps
- Supabase dashboard, Table Editor: check the table name and spelling (and that it's in the 'public' schema).
- Paste the migration SQL into the Supabase SQL Editor and run it.
Where this happens
Seen in these AI app builders and editors:
LovableBolt.newCursorReplitv0Windsurf
Sources
Related database errors
Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.
Fix my error →