P
Prisma3w ago
TJ

Does Prisma support MariaDB 10.6

https://www.prisma.io/docs/orm/reference/supported-databases mentioned MariaDB 10.0+ Does the + means 10.0.x or the versions from 10.0 (including 10.6)?
Databases supported by Prisma ORM | Prisma Documentation
This page lists all the databases and their versions that are supported by Prisma ORM.
5 Replies
Nurul
Nurul3w ago
Hi @TJ 👋 I believe MariaDB 10.6 is supported. Are you running into any issues?
TJ
TJOP3w ago
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
Nurul
Nurul3w ago
Hmm, that seems like a bug, what happens if you remove map attribute?
TJ
TJOP3w ago
The error is gone after removing the empty string map attribute.
Nurul
Nurul3w ago
Cool, I would still recommend reporting a bug using this link: https://github.com/prisma/prisma/issues/new/choose Our ORM team would like to dig into why the map attribute was empty. 🙏
Want results from more Discord servers?
Add your server