Prisma migration issue on vercel deployment
Hi Gang,
I'm facing a persistent migration issue with my prisma model in my PostgreSQL database hosted on Railway. Here's a breakdown of the situation:
My original prisma schema model was the following:
I removed some columns and added new ones on a feature branch
And quickly learnt that dropping columns with existing data had caused a few problems. After creating a migration file by running
I had warnings that were in the migration.sql (which i called 20230925134023_lender_product_fees) but i did not see initially
Issues:
Removing columns with data resulted in warnings upon running
Deploying to Vercel produced an error while running the script
Persistent error:
Note again, this was all done on a feature branch
So I've abandoned that branch for now and gone to branched off
Would anyone know why a branch that has nothing to do with the schema changes still be affecting the deployment?
I'm facing a persistent migration issue with my prisma model in my PostgreSQL database hosted on Railway. Here's a breakdown of the situation:
My original prisma schema model was the following:
I removed some columns and added new ones on a feature branch
feat/edit-lender-feesAnd quickly learnt that dropping columns with existing data had caused a few problems. After creating a migration file by running
prisma migrate devI had warnings that were in the migration.sql (which i called 20230925134023_lender_product_fees) but i did not see initially
Issues:
Removing columns with data resulted in warnings upon running
npx prisma migrate dev.Deploying to Vercel produced an error while running the script
"production:build": "npx prisma generate && npx prisma migrate deploy && next build"Persistent error:
Note again, this was all done on a feature branch
feat/edit-lender-feesSo I've abandoned that branch for now and gone to branched off
main again to add some new feature. This new branch does have the before mentioned migration.sql file 20230925134023_lender_product_fees but I am still getting issues when deploying in the "Building step" with the same problem mentioned above. Would anyone know why a branch that has nothing to do with the schema changes still be affecting the deployment?
