Skip to content

prisma introspect drops some @relation custom names in existing schema #4664

@ashih42

Description

@ashih42

Hello,

I used Python/Sqlalchemy to define tables in a Sqlite database, and then ran prisma introspect together with an existing schema in prisma/schema.prisma. The problem is that prisma introspect consistently retains some, but drops other, @relation custom names defined in the existing prisma/schema.prisma.

Please see this bug demo repo here for details:
https://github.com/ashih42/prisma-introspect-bug-report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/2-confirmedBug has been reproduced and confirmed.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions