Join Slack
Powered by
hmm...which means that I have to alter my database...
# orm-help
o
onePunchMan
11/21/2018, 9:02 PM
hmm...which means that I have to alter my database to be able to use prisma 😞
m
Michael
11/21/2018, 9:04 PM
Try this
Copy code
type Thing { id: ID! @unique user_id: Int! @unique }
o
onePunchMan
11/21/2018, 9:05 PM
is it just for prisma? I mean some meta data that prisma uses and needs internaly
m
Michael
11/21/2018, 9:09 PM
They enforce having an id in the type, even if you don’t use it. Try it. Worst thing that could happen is it doesn’t work.
o
onePunchMan
11/21/2018, 10:09 PM
it is working, but I dont need it, so at this moment it is hard to migrate with prisma, but I guess they will fix it
d
do4gr
11/22/2018, 5:03 PM
We are in the process of making all this customizable. Here is how that will probably work in the future:
https://github.com/prisma/prisma/issues/3404
Open in Slack
Previous
Next