Skip to content

Prisma Schema Validation Error: Deprecated url and directUrl in Datasource (Prisma 7+) #1559

@sahilkhude117

Description

@sahilkhude117

The Prisma schema is failing validation with error P1012, as url and directUrl are no longer supported in schema.prisma for Prisma 7+. These must be moved to prisma.config.ts for proper configuration.

Note: The project's package.json appears to reference an older Prisma version. Do we want to upgrade to Prisma 7+ and proceed with the migration, or stick with the current version (and potentially downgrade if needed)?

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