I am working on a NextJS project that uses prisma. I was able to define my initial schemas and deploy my initial migrations successfully. I made a small change in the diff screenshot attached to this message and I am able to run
npx run db push
npx run db push
with no issues. When I try to run
npx prisma migrate dev
npx prisma migrate dev
to generate a migration, I get the following error:
Error: P3005The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
Error: P3005The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
I understand I can follow the docs to basically reset my migration history, but I would rather understand how to do this properly, because I would imagine I shouldn't be starting from scratch every time I make a scehma change?