PrismaP
Prisma8mo ago
3 replies
FINDarkside

Prisma pull/push not working with PrismaPg adapter

I'm trying to use Prisma with GCP Cloud SQL so I have custom prisma.config.ts which uses PrismaPg and to make the connection. However on every push/pull command I get this error:
Error: Column type 'name' could not be deserialized from the database.
   0: sql_schema_connector::flavour::postgres::describe_schema_with
           with circumstances=BitFlags<Circumstances>(0b100, CanPartitionTables) preview_features=BitFlags<PreviewFeature>(0b0) namespaces=None schema="public"
             at schema-engine/connectors/sql-schema-connector/src/flavour/postgres.rs:601
   1: schema_commands::commands::schema_push::Calculate from database
             at schema-engine/commands/src/commands/schema_push.rs:34
   2: schema_engine_wasm::wasm::engine::SchemaPush
             at schema-engine/schema-engine-wasm/src/wasm/engine.rs:467


Does anyone have any ideas of the cause? The db is empty and I've tried to delete+recreate the public schema but the issue persists. The push works fine if I don't use the custom configuration, but then I have to start the SQL proxy manually.
Was this page helpful?