:wave: what's the expected behaviour of `prisma se...
# orm-help
l
👋 what's the expected behaviour of
prisma seed --reset
? When I run it with the same
seed.graphql
as used initially, I get the error:
A unique constraint would be violated on User. Details: Field name = email
. If I change the user's email address in the
seed.graphql
file, the command will run, but the database won't be reset. I would expect the database to be cleared by the
--reset
flag? I'm using Prisma 1.8.3 (although was using 1.8.0 when I first saw this).
d
Do you have a prisma.yml secret deployed? There is currently a bug where Prisma reset does not report an error if authentication fails.
Oh and you could just run prisma reset to reset the data. The --reset is probably silently ignored.
l
Thanks @do4gr! I switched over to running a local instance of Prisma with Docker and the
--reset
flag worked. Previously I was using the Prisma cloud sandbox environment. Docker is better suited to our needs so I'll stick with this 👍