You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prisma Studio still uses the old DATABASE_URL resolution logic and resolves DATABASE_URL relative to the prisma folder instead of the schema file. Because of the new prismaSchemaFolder feature, prisma/prisma#24609 changed the DATABASE_URL resolution to be based on the location of the schema file.
How to reproduce
Choose the sqlite provider
Enable the prismaSchemaFolder preview feature and move the main schema file to projectRoot/prisma/schema/main.schema
Use a relative DATABASE_URL such as DATABASE_URL=file:../../.data/dev.db
Run db migrations - it will correctly create dev.db under projectRoot/.data/dev.db
Run prisma studio - it will try to open the db under projectRoot/../.data/dev.db
Expected behavior
Prisma Studio should use the same DATABASE_URL resolution logic as Prisma.
Prisma information
5.19.1
Environment & setup
OS: Linux
Browser: Firefox
Database: sqlite
Prisma logs
No response
The text was updated successfully, but these errors were encountered:
Bug description
Prisma Studio still uses the old DATABASE_URL resolution logic and resolves DATABASE_URL relative to the prisma folder instead of the schema file. Because of the new
prismaSchemaFolder
feature, prisma/prisma#24609 changed the DATABASE_URL resolution to be based on the location of the schema file.How to reproduce
prismaSchemaFolder
preview feature and move the main schema file toprojectRoot/prisma/schema/main.schema
DATABASE_URL=file:../../.data/dev.db
dev.db
underprojectRoot/.data/dev.db
prisma studio
- it will try to open the db underprojectRoot/../.data/dev.db
Expected behavior
Prisma Studio should use the same
DATABASE_URL
resolution logic as Prisma.Prisma information
5.19.1
Environment & setup
Prisma logs
No response
The text was updated successfully, but these errors were encountered: