Prisma

Prisma issue (Nov 30): Prisma v8 `db update` Ignores Missing onDelete and Retains Cascade

medium

Is it fixed? Not yet.

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

What happened

In prisma@8.0.0-rc.36, `db update` fails to migrate foreign keys when the contract's relation lacks an explicit `onDelete` property, incorrectly retaining `ON DELETE CASCADE` or other rules from the database. Additionally, `db verify --strict` erroneously reports that the database matches the contract.

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] `db update` keeps `ON DELETE CASCADE` when the contract's relation has no `onDelete`, and `db verify --strict` reports a match

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    [v8] `db update` keeps `ON DELETE CASCADE` when the contract's relation has no `onDelete`, and `db verify --strict` reports a match(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? Take a foreign key that is ON DELETE CASCADE in the database (the same happens with SET NULL and RESTRICT), and a contract whose relation has no onDelete. Such a key is never migrated: prisma db update plans no operation and signs the database. prisma db verify, including with --strict, reports that the database matches the contract. So deletes keep cascading. In practice, this happens when an action is…

    by adcode9158 0upvotes 1comments

Prisma issue FAQ

What happened in the Prisma issue, and why?

Ongoing since Nov 30, 11:33 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).

When did the Prisma issue start and end?

It started Nov 30, 11:33 UTC and is still ongoing (1 d 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.