Certain types of schema changes don't work with CockroachDB v22.2 #16909
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: cockroachdb
topic: migrate
Milestone
Bug description
CockroachDB had the following change as part of v22.2:
See the release notes. This change was made in order to be compatible with the PostgreSQL behavior documented at multiple statements in a single query.
This has an unfortunate interaction with how some schema changes work in CockroachDB. Specifically, trying to drop and add a column does not work.
This can be resolved in one of two ways:
enable_implicit_transaction_for_batch_statements
tofalse
when running these schema changes.How to reproduce
prisma migrate dev
Expected behavior
The migration should work.
Prisma information
See above repo for schema.
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: