Prisma1: Prisma Introspect generates invalid relation names

Created on 5 Apr 2019  路  4Comments  路  Source: prisma/prisma1

Describe the bug

I have introspected a Django PostgreSQL database with Prisma and the datamodel.prisma file that has been generated cannot be deployed because all the relation fields are not specifying a @relation directive.

This is the error that I get

Screen Shot 2019-04-05 at 9 31 28 AM

I'm using [email protected]

bu2-confirmed areintrospection kinbug

Most helpful comment

I have exactly same problem, prisma introspect generates datamodel-timetamps.prisma, but it omits @relation directive at all.

image

related to #3746 #4081 #4090

All 4 comments

I have exactly same problem, prisma introspect generates datamodel-timetamps.prisma, but it omits @relation directive at all.

image

related to #3746 #4081 #4090

Currently, there is an ongoing PR that will possibly fix this: https://github.com/prisma/prisma/pull/4304

We will try to merge it very soon. cc @ejoebstl

Thanks a lot for reporting! Could you post the generated datamodel or give us a small subset of the datamodel that contains the troubling types?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ragnorc picture ragnorc  路  3Comments

akoenig picture akoenig  路  3Comments

dohomi picture dohomi  路  3Comments

marktani picture marktani  路  3Comments

Fi1osof picture Fi1osof  路  3Comments