Closed timhall closed 3 years ago
I'm having the same issue. Did you find a solution @timhall ?
Not yet, ended up upgrading to early access. Had to restart that project's migrations from scratch, but it's working well so far.
Thanks for taking the time to report this issue!
We've recently released a Prisma Migrate Preview (2.1.3.0 release notes), which has quite a few changes compared to the previous experimental version. We believe this issue is no longer relevant in this new version, so we are closing this.
We would encourage you to try out Prisma Migrate Preview. If you come across this or any other issue in the preview version, please feel free to open a new issue in prisma/prisma. For general feedback on Prisma Migrate Preview, feel free to chime in on this issue.
Bug description
I have a migration step that is failing with the following output when using
DEBUG=*
:This is ok and I can look into the issue. The problem is that this underlying issue fails to report because migration progress fails on the following line: https://github.com/prisma/prisma-engines/blob/ebf0f4d10e5b5e396811addb862c01449d05c81a/migration-engine/core/src/commands/migration_progress.rs#L20. My understanding is that since it's a new migration it hasn't been written to the database yet and therefore reading from the db is failing. This throws the following error:
Much less helpful error message. A few additional details:
migrate save
and thenmigrate up
were run against a local DBmigrate up
against remove DB warns "There will be data loss: ..."How to reproduce
prisma migrate up --experimental
Prisma information
Environment & setup