Skip to content

Error with Prisma Migrate Dev: Multi-Region Enum Conflict in CockroachDB #6

@Sirach99

Description

@Sirach99

Following the instructions on https://www.cockroachlabs.com/docs/v24.2/build-a-nodejs-app-with-cockroachdb-prisma and
node_modules/.bin/prisma migrate dev --name init results in the following error:

ERROR: "defaultdb.public.crdb_internal_region" is a multi-region enum and cannot be modified directly
HINT: try ALTER DATABASE defaultdb DROP REGION crdb_internal_region

The hint results in the following error:
"crdb_internal_region" has not been added to the database

Is there a workaround to this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions