PrismaP
Prisma14mo ago
15 replies
514sid

Studio is not working with multifile schemas

I have created a folder schema and added the following code to the schema.prisma file

datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["prismaSchemaFolder"]
}


I can read from and write to the database, but when I run Prisma Studio, I get the following error:

The table main.User does not exist in the current database.
Solution
GitHub
I encountered an issue when using the prismaSchemaFolder preview feature with a SQLite database. The problem occurs when running prisma db push. The database file is generated in the prisma/schema/...
Was this page helpful?