-
|
I was playing around with Nile DB and came across the following error when I ran My schema.prisma file contain the following datasource db { model Book { summaries Summary[] model Summary { book_id Int @@index([book_id]) Framework in use: Next.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Since Nile includes built-in tables (for example,
and then pushing your own objects with |
Beta Was this translation helpful? Give feedback.



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 supportedWhich is exactly what I got when trying to use
npx prisma db pushto 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 tablestatement to also include the constraints, rather than perform a separatealterstep. 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: