Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prisma crashed when trying to create a new migration #14490

Closed
ElayadeIsmail opened this issue Jul 26, 2022 · 3 comments
Closed

Prisma crashed when trying to create a new migration #14490

ElayadeIsmail opened this issue Jul 26, 2022 · 3 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: migrate topic: postgresql topic: prisma migrate dev CLI: prisma migrate dev

Comments

@ElayadeIsmail
Copy link

Hi Prisma Team! Prisma Migrate just crashed.

Command

migrate dev --name [redacted]

Versions

Name Version
Platform darwin
Node v16.13.2
Prisma CLI 4.1.0
Engine 8d8414deb360336e4698a65aa45a1fbaf1ce13d8

Error

Error: Error in migration engine.
Reason: [migration-engine/connectors/sql-migration-connector/src/sql_renderer/postgres_renderer.rs:908:22] We should only be setting a changed default if there was one on the previous schema and in the next with the same enum.

Please create an issue with your `schema.prisma` at
https://github.com/prisma/prisma/issues/new

@aqrln aqrln added team/schema Issue for team Schema. process/candidate topic: migrate kind/bug A reported bug. bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Jul 26, 2022
@jkomyno
Copy link
Contributor

jkomyno commented Jul 29, 2022

Also reported here and here.

@janpio janpio added topic: prisma migrate dev CLI: prisma migrate dev bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. and removed bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. process/candidate labels Aug 4, 2022
@Jolg42
Copy link
Member

Jolg42 commented Aug 10, 2023

Hi @ElayadeIsmail 👋🏼
It looks like this was fixed in 4.7.0, could you try upgrading to that version or a more recent one?

PR: prisma/prisma-engines#3379

If this is not already fixed, we would need more information here to get to a reproduction.

@Jolg42 Jolg42 added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Aug 10, 2023
@Jolg42
Copy link
Member

Jolg42 commented Nov 1, 2023

Closing this, if you still experience this on a recent version of Prisma, please create a new issue.

@Jolg42 Jolg42 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: migrate topic: postgresql topic: prisma migrate dev CLI: prisma migrate dev
Projects
None yet
Development

No branches or pull requests

5 participants