Fix · Supabase and databases
relation "..." does not exist (42P01)
Not checked against the vendor's current screens
What you may see
- The error says a table does not exist
- It works locally and not on the live database
Most likely cause
The table name is spelled differently, lives in another schema, or the migration that creates it was never run on this database.
Check first (about two minutes)
- Look at the table list in the dashboard of THIS project: is the table there with that exact name?
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Compare the table name in the code with the real list of tables (case matters when quoted).
- Check which migration files exist and which ran on this database.
- Give me the one migration file to run, plus its rollback; I will run it after a backup.
Do not do this
- Do not run SQL on live data without a backup.
- Do not create a table by guessing its columns.