Prisma

Prisma issue (Nov 30): Prisma contract infer Drops DESC/NULLS FIRST and Modifies INCLUDE Indexes

high

Is it fixed? Not yet.

Ongoing since Nov 30, 12:53 UTC. First reported Nov 30, 12:53 UTC. Not on the vendor’s status page yet.

What happened

Prisma 8.0.0-rc.36 (`@prisma/orm-postgres@8.0.0-rc.25`) drops `DESC` and `NULLS FIRST` clauses from indexes and converts `INCLUDE` columns into key columns when using `contract infer`. This causes rebuilt indexes, such as `UNIQUE ... INCLUDE`, to alter behavior and fail to enforce uniqueness correctly.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Official fix

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    [v8] `contract infer` drops `DESC`/`NULLS FIRST` from indexes and turns `INCLUDE` columns into key columns, so a rebuilt `UNIQUE ... INCLUDE` index no longer enforces uniqueness

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    [v8] `contract infer` drops `DESC`/`NULLS FIRST` from indexes and turns `INCLUDE` columns into key columns, so a rebuilt `UNIQUE ... INCLUDE` index no longer enforces uniqueness(opens GitHub issue in a new tab)

    Package and version prisma@8.0.0-rc.36 (@prisma/orm-postgres@8.0.0-rc.25) What happened? A database created from a contract that prisma contract infer read from an existing database has different indexes: | Original index | After contract infer → db update on an empty database | |---|---| | (a DESC) | (a) | | (a, b DESC) | (a, b) | | (b NULLS FIRST) | (b) | | (a) INCLUDE (c) | (a, c) | | UNIQUE (email) INCLUDE (name) | UNIQUE (email, name) | The last row changes behaviour. The original index…

    by adcode9158 0upvotes 1comments

Prisma issue FAQ

What happened in the Prisma issue, and why?

Ongoing since Nov 30, 12:53 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Prisma issue?

Prisma (versions: prisma@8.0.0-rc.36 (@prisma/orm-postgres@8.0.0-rc.25)).

When did the Prisma issue start and end?

It started Nov 30, 12:53 UTC and is still ongoing (23 h 7 min so far). This page updates as it develops.

How do I get alerts for Prisma?

Subscribe to the Prisma RSS feed for every new Prisma incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Prisma is down. Prisma feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.