Skip to content

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

Open

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)?

Activity

  1. ajile-in commented on Feb 10, 2026

    @ajile-in
    Member

    Thanks @sahilkhude117 - upgrade to Prisma 7+ is encouraged as opposed to a downgrade. Please feel free to create a PR, and reach out for any help in the process.

  2. sahilkhude117 commented on Feb 12, 2026

    @sahilkhude117
    Author

    yes @ajile-in I am looking into it, thanks for asking.

  3. sahilkhude117 commented on Feb 17, 2026

    @sahilkhude117
    Author

    Raised PR #1568 for this. @ajile-in could you please review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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