VibeDict

🗄️Table doesn't exist

What you'll see
error: relation "users" does not exist

The database doesn't have a table with that name yet. It's in the code, but it was never created in the database.

🤔 Why does it happen?

  • The step that creates tables (migration, db push) wasn't run
  • It exists in the development database but not in the live database
  • The table name's spelling or capital letters are different

🔧 Try this

  1. If you use an ORM, run its table-creating command (for example, drizzle-kit push or prisma migrate)
  2. Check which database you're connected to right now (DATABASE_URL)

🤖 Ask your AI like this

I get the error below from the database. Please check how this project creates tables (migrations), and tell me the command to create the tables in the real database. If a command would delete existing data, warn me first. [Paste the full error here]

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group