Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

PANIC: column on null constraint violation error #25

Description

@janpio

When using prisma-test-utils via prisma-test-utils-automation, some databases (schemas from: https://github.com/prisma/database-schema-examples) fail with this error message:

Error in: chinook (postgres)
PrismaClientUnknownRequestError:
Invalid `seed = await client[methodName].create()` invocation in
C:\Users\Jan\Documents\prisma-test-utils\src\static\seed.ts:973:45

   969
   970 /**
   971  * Load the data to database.
   972  */
→  973 const seed = await client[methodName].create(

PANIC: column on null constraint violation error
    at PrismaClientFetcher.request (C:\Users\Jan\Documents\prisma-test-utils-automation\dbs\chinook\node_modules\prisma-client\index.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions