2

This is React JS project in which I'm transferring DB from postgres to sqlite, in schema.prisma file I'm writing enum for some tables and it gives me an error that Error validating: You defined the enum but the current connector does not support enums. Any help is appreciated.

juliomalves
  • 42,130
  • 20
  • 150
  • 146
Riddhi
  • 755
  • 11
  • 31

2 Answers2

0

I just follow these steps indicates in this then add all the migration files into migration folder and ran yarn db-migrate problem resolved, hope it'll help to someone.

Riddhi
  • 755
  • 11
  • 31
0

Prisma seems to have removed their shim for enums in sqlite back in 2020. See issue Prisma issue #1906 for details.

You might find this answer helpful in seeking out an alternative to using enums:

Ash Ryan Arnwine
  • 1,471
  • 1
  • 11
  • 27