Using Lists / Arrays in MySQL when migrating from Postgres?

Viewed 25

I am moving from Postgres to Mysql (using Prisma as my connector).

This schema used to work:

model Page {
  slug        String  @id
  someValue   String
  ...
  tags        String[]
}

However, mysql doesn't seem to like String[]

Unable to get DMMF from Prisma Client: Error: Schema parsing error: Field "tags" in model "Page" can't be a list. The current connector does not support lists of primitive types.

What am I supposed to do in mysql instead?

0 Answers
Related