You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord user cev#2144 says that the setup command works as intended when using postgresql, but runs twice when using sqlite.
It is unclear from the Prisma Docs which behavior is intended.
migrate dev says it will generate artifacts, but does not say it's supposed to run the seed command.
The next section, migrate reset, does explicitly state that it runs the seed command.
In my case, using sqlite, the problem is effectively fixed by replacing "setup": "prisma migrate dev" && prisma db seed with "setup": "prisma migrate dev"
However, it sounds like this would not automatically seed the db for users who switch to postgresql.
Have you experienced this bug with the latest version of the template?
Yes
Steps to Reproduce
npm run setup
Expected Behavior
prisma migrate dev
runs, syncing database and generating clientprisma db seed
runs, seeding the database according to seed.tsActual Behavior
prisma migrate dev
runs, and in addition to syncing db and generating client, it also runs the seed script.prisma db seed
runs, and fails when it hits a unique constraint because the db has already been seededremixSeedSqliteIssue.txt
.
The text was updated successfully, but these errors were encountered: