Error in first migration (Prisma)
Hi,
I used planetscale and i want to migrate my prisma schema.
I run:
npx prisma migrate dev --name init
and get this error:
Error: ERROR: database "prisma_migrate_shadow_db_f80958ed-a077-4d99-9a2c-6cc057607c5a" is being accessed by other users
DETAIL: There is 1 other session using the database.
0: schema_core::state::DevDiagnostic
at schema-engine\core\src\state.rs:270
On the Databases tab on Neon i see my main db and the db:
prisma_migrate_shadow_db_fc62600b-cf21-4c96-af24-9493109b8a8b
I just want to migrate my scheama lol
Help will be much appriciated 🙂
2 Replies
dependent-tan•2y ago
What Prisma client are you running? Upgrading to the latest client might help resolve this issue. A recent related article:
https://neon.tech/blog/better-postgres-with-prisma-experience
Neon
Better Postgres with Prisma Experience - Neon
We’re Neon. We’re building Postgres that helps you confidently ship reliable and scalable apps. We made Postgres on Neon work seamlessly with Prisma. This article explains how we did it. We love Prisma, and so do developers. Prisma ORM makes it easy to perform schema migrations and map any database objects with your existing JavaScript […]
flat-fuchsia•2y ago
or you need to specify the non-pooler URL -- the console should provide a configuration file you can use with an earlier version of Prisma