using prisma
need to change db but not go through data loss
prisma migrate is an option and am trying to see if that works for my usecase
hmm. wondering if chatgpt might help with better ways
you just need to know these commands:
prisma db migrate dev
prisma db push
prisma db migrate deploy
npx prisma migrate dev —create-only
npx prisma migrate dev —name rename-migration —create-only
npx prisma migrate deploy
pretty much lol
i just did a migration for some changes on the schema, here’s what i did
yarn prisma migrate dev --name default-values-2-12 --create-only
yarn prisma migrate dev
yarn prisma migrate deploy ( on prod db )