Skip to content

Prisma schema validation error - Relation map argument is too long #1466

@ruizehung

Description

@ruizehung

Description and expected behavior
When I use polymorphic feature withs models that have long names, I got Prisma schema validation error due to long map argument in @relation constraint. The maximum allowed length is 63 bytes for PostgreSql. The issue can be temporarily fixed by manually replacing the generated map argument with a shorter string.

I can see myself easily getting this error as I have descriptive model names.

Screenshots
image

Environment (please complete the following information):

  • ZenStack version: 2.1.2
  • Prisma version: 5.13.0
  • Database type: Postgresql

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions