To deploy your migrations to Planetscale, follow these steps:
-
Set up
.env
file: Update theDATABASE_URL
with the connection URL for your Planetscale account repository. -
Push your migrations to Planetscale branch:
npx prisma db push
-
Open the Planetscale dashboard.
-
Go to Branches, create a pull request, and deploy changes to the
main
branch.
By following these steps, you will successfully deploy your migrations to Planetscale and update the Main branch with the changes.