Migration failed to apply cleanly to shadow database #24175
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: migrate
topic: prisma migrate dev
CLI: prisma migrate dev
topic: shadow database
Bug description
We're running into an issue with
npx prisma migrate dev
where it's failing to apply the first migration in our migration history cleanly to the shadow db and failing with the error codeHowever it is very clearly able to connect to the db because before this error is thrown it created the db
unwrap_v2
and applies all the migrations to the db. I can also go into the DB and see all the tables created. Is there a way in the short term to turn off the shadow db check?See the full stack trace below.
How to reproduce
I'm not actually sure how to reproduce. I can only get this to happen on two of our dev db's. This is verified on a fresh db however, we dropped the database
unwrap_v2
as well as all shadow databases. It happens reproducibly on two of our dbs.Expected behavior
It should just create and apply the migration file
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: