Upgrade from 6.0.1 -> 6.5.0 broke migrate dev
I recently upgraded from 6.0.1 to 6.5.0, and didn't change any migrations or schema files. But when I run
migrate reset
and then run migrate dev
I am now receiving an exit code of 130 whereas previously I could generate migrations without issue. This happens regardless of if I modify a schema file or not.
The output of the command looks like this:
The pg cron warning is something we have seen before, and I don't believe is related to the issue here, as we have been using the workaround described here for years without issue: https://github.com/prisma/prisma/issues/18214. But given the lack of any stack trace, its difficult to tell what is going wrong, as it just stops before doing anything at all. Here is 6.0.1 output:
GitHub
Issues · prisma/prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - Issues · prisma/prisma
6 Replies
You selected to wait for the human sages. They'll share their wisdom soon.
Grab some tea while you wait, or check out
#ask-ai
if you'd like a quick chat with the bot anyway!I think this issue is related to the change described in 6.5.0 release notes here: https://github.com/prisma/prisma/releases/tag/6.5.0
GitHub
Release 6.5.0 · prisma/prisma
Today, we are excited to share the 6.5.0 stable release 🎉
🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release. 🌟
Highlights
Databases can only be reset manu...
In this version we're removing the prompt entirely and instead exiting with an appropriate error message.But I don't get any message, and if the issue is with pg_cron now, I am sort of stuck?
Hey!
I haven't seen this exit code 130 error before, so it seems new.
Does prisma migrate dev command start working again if you downgrade to prisma version 6.0.1?
6.4.1 and lower works just fine, this issue is due to the fact that in 6.5.0 there is no graceful reset available anymore when an error occurs. So in my case running reset works, but running dev produces an error that I cannot fix.
I provided more details in the open issue on pg_cron here: https://github.com/prisma/prisma/issues/18214#issuecomment-2828241685
What used to happen previously? What would you usually do to workaround?
Can you share with me the steps you used to take once you got the prompt to reset the database?