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.
Asked
Active
Viewed 2,293 times
2

juliomalves
- 42,130
- 20
- 150
- 146

Riddhi
- 755
- 11
- 31
2 Answers
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