Danny
10/15/2021, 6:30 PMprisma db push to "push" the changes to the database without actually creating a new migration, but if I run prisma db seed, it doesn't reset the database in the same way that prisma migrate reset would do - it would just run the seed scripts twice, potentially duplicating data, etc. Is there a suggested workflow for prototyping seed changes without needing to either (a) prisma migrate reset or (b) drop all the records across all tables in the seed script?Ryan
10/18/2021, 5:18 AMDanny
10/21/2021, 9:09 PMprisma db seed automatically resets the data and makes it as easy to prototype changes as prisma db push does.Danny
10/21/2021, 9:34 PMprisma db push will notice schema changes that are not possible to execute due to existing data that presumably originating from the (now outdated) seed so it prompts for a db reset. At that point I could make the changes to my seed file and try to re-run prisma db seed for prototyping. Still, my natural inclination would be that prisma db seed should be idempotent and reset the database for me (maybe with a prisma db seed --no-reset option).Ryan
10/22/2021, 4:46 AMprisma migrate reset and to get clean data on inserts.Ryan
10/22/2021, 4:46 AM