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

Error in migration engine #20633

Closed
srohimah opened this issue Aug 10, 2023 · 2 comments
Closed

Error in migration engine #20633

srohimah opened this issue Aug 10, 2023 · 2 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: basic error report topic: postgresql topic: prisma db push CLI: prisma db push

Comments

@srohimah
Copy link

Hi Prisma Team! The following command just crashed.

Command

db push

Versions

Name Version
Platform debian-openssl-1.1.x
Node v16.10.0
Prisma CLI 4.6.1
Engine 694eea289a8462c80264df36757e4fdc129b1b32

Error

Error: Error in migration engine.
Reason: [migration-engine/connectors/sql-migration-connector/src/sql_renderer/postgres_renderer.rs:1019: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

@Jolg42
Copy link
Member

Jolg42 commented Aug 10, 2023

Hi @srohimah 👋🏼
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. kind/bug A reported bug. team/schema Issue for team Schema. topic: prisma db push CLI: prisma db push topic: basic error report topic: postgresql labels Aug 10, 2023
@Jolg42
Copy link
Member

Jolg42 commented Aug 22, 2023

@srohimah I'll close this as it should be fixed already, let us know if it's indeed the case or if we should reopen this.

@Jolg42 Jolg42 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 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: basic error report topic: postgresql topic: prisma db push CLI: prisma db push
Projects
None yet
Development

No branches or pull requests

2 participants