cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.09k stars 3.81k forks source link

prisma: prisma migrate meta issue #73137

Open otan opened 2 years ago

otan commented 2 years ago

This issue captures known issues with using prisma migrate by running the test suite.



Blocking issues:

Somewhat ignorable issues (we can probably skip these tests if we don't think they matter)

Ignorable issues (probably will skip tests):

Epic CRDB-12077

Jira issue: CRDB-11438

ajwerner commented 2 years ago

(cockroachdb/prisma issue) Prisma drops a PRIMARY KEY and sets another set of fields as PK on PG. This setup needs to use ALTER PRIMARY KEY in CockroachDB.

We support this syntax within a transaction.

otan commented 2 years ago

We support this syntax within a transaction.

guess prisma doesn't do it within a txn then, hehe! (haven't looked deep enough to know, but they recalled it being a problem and i see some error messages related to it)

edit: looks like they drop PKs, do schema changes, then sometimes readd it