Skip to content
Discussion options

You must be logged in to vote

I checked the logs on our side, and it looks like the last message sent back from your database to Prisma is:
adding constraints to an existing table is currently not supported

Which is exactly what I got when trying to use npx prisma db push to my database:

I am not sure why Prisma isn't showing you that error though...

The reason for this error is that Nile expects the create table statement to also include the constraints, rather than perform a separate alter step. I'll update the docs with this limitation and we'll target a solution in Nile as well.

Meanwhile, to unblock the project... I suggest managing tables manually for now.

Something like this:

CREATE TABLE "book" (
    "id" UUI…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@trace2798
Comment options

@gwenshap
Comment options

@trace2798
Comment options

@gwenshap
Comment options

Answer selected by gwenshap
@trace2798
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants