PrismaP
Prisma6mo ago
7 replies
Scott

Prisma push to PlanetScale development branches crashing schema engine

Running prisma db push to a PlanetScale development branch is crashing the schema engine:
(Vitess)
Environment variables loaded from prisma/.env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "[REDACTED]" at "aws.connect.psdb.cloud"
Oops, an unexpected error occurred!
Error in Schema engine.
Reason: [schema-engine/sql-schema-describer/src/mysql.rs:307:21] called `Result::unwrap()` on an `Err` value: "Getting table_name from Resultrow ResultRow { columns: [\"f0\", \"f1\", \"f2\"], types: [Unknown, Unknown, Unknown], values: [Value { typed: Bytes(Some([99, 97, 108, 108, 95, 101, 120, 112, 111, 114, 116, 115])), native_column_type: None }, Value { typed: Text(Some(\"\")), native_column_type: None }, Value { typed: Text(Some(\"\")), native_column_type: None }] } as String failed"             


I've noticed a couple other people seem to be running into this today: https://github.com/prisma/prisma/issues/27734

Is this a known thing? Is there a workaround or is this a new issue? This is blocking development work.
This was a routine change of adding a new table to a large project that has been using Prisma for many years. Currently on Prisma 6.8.2, but the issue is also present above on a newer version (6.10.1) per the issue.
GitHub
Bug description Running yarn prisma db push against a PlanetScale (Vitess) development branch crashes the schema engine with: Origin of the problem The very first command I ran was yarn prisma migr...
`prisma db push` panics on PlanetScale: **called Result::unwrap() o...
Was this page helpful?