Skip to content

Commit bcb52f8

Browse files
committed
no-mistakes(review): Export UNSUPPORTED_SCHEMA code, clarify MySQL checks in changelog
1 parent 8be0235 commit bcb52f8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ here.**
2727
created by `prisma db push` with the checks file applied passes `meta verify --db`, and a
2828
change to it fails. On SQLite, which cannot take the checks file, the gate reports each
2929
missing CHECK and nothing else, and a change to the database fails it.
30-
What a Prisma schema cannot express is refused with an `ERR_PRISMA_*` code, never dropped: a
30+
Most of what a Prisma schema cannot express is refused with an `ERR_PRISMA_*` code, never dropped: a
3131
view `meta verify --db` expects, an expression or partial index, a CHECK on SQLite, a `@schema`
3232
outside Postgres, a table with no primary key, a relation Prisma cannot model, a name
33-
collision, or an unsupported provider. A model with projections, write-through read views or
33+
collision, or an unsupported provider. The exception is MySQL, which gets the enum CHECKs only:
34+
the other checks are Postgres SQL and are left out. A model with projections, write-through read views or
3435
served reports therefore needs each of those views marked `@unmanaged` or its object left out
3536
by the generator's `filter`. A flattened `field.object` maps to one Prisma field per column.
3637
`orm: "prisma"` also makes every target default to `runtime: false`. It refuses a target set to

‎server/typescript/packages/codegen-ts/src/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ export {
490490
ERR_PRISMA_UNSUPPORTED_CHECK,
491491
ERR_PRISMA_UNSUPPORTED_INDEX,
492492
ERR_PRISMA_UNSUPPORTED_PROVIDER,
493+
ERR_PRISMA_UNSUPPORTED_SCHEMA,
493494
} from "./prisma/prisma-errors.js";
494495
export type { PrismaErrorCode } from "./prisma/prisma-errors.js";
495496
export type {

0 commit comments

Comments
 (0)