TJ
TJ
Explore posts from servers
PPrisma
Created by TJ on 11/1/2024 in #help-and-questions
Does Prisma support MariaDB 10.6
The error is gone after removing the empty string map attribute.
7 replies
PPrisma
Created by TJ on 11/1/2024 in #help-and-questions
Does Prisma support MariaDB 10.6
I used db pull to introspect a MariaDB 10.6 database, and a schema is generated without error. Then I encounter the following error when I tried to generate the Prisma Client,
$ pnpm prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Error parsing attribute "@relation": The `map` argument cannot be an empty string.
--> prisma/schema.prisma:5285
|
5284 | updated_at DateTime? @db.Timestamp(0)
5285 | book_groups book_groups @relation(fields: [book_group_id], references: [id], onDelete: Cascade, map: "")
|

Validation Error Count: 1
[Context: getDmmf]

Prisma CLI Version : 5.21.1
$ pnpm prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Error parsing attribute "@relation": The `map` argument cannot be an empty string.
--> prisma/schema.prisma:5285
|
5284 | updated_at DateTime? @db.Timestamp(0)
5285 | book_groups book_groups @relation(fields: [book_group_id], references: [id], onDelete: Cascade, map: "")
|

Validation Error Count: 1
[Context: getDmmf]

Prisma CLI Version : 5.21.1
7 replies