Table of Contents

How to update prisma and migrate to new version.

prisma-docker-typescript

In this tutorial you will learn how to upgrade prisma and migrate to new version.

Tags: Prisma, Docker, Typescript

Time to read: 2 min

Prerequisites

  • Familiarity with the command line
  • Install Node.js version 16.0 or higher
  • Install Docker and Docker Compose. Easiest way is to install Docker Desktop which includes both. Read more how to install here.
  • A working Nuxt 3 project with prisma.
  1. Update all packages related to prisma in the package.json file.
  2. Build and deploy your application to your server.
  3. Enter the docker container with below command:
docker exec -it my_container_name sh
  1. Run below command to start migration
npx prisma migrate dev
  1. Select a migration name or just press enter for default name.
  2. Type "exit" and press enter to leave the docker image, and now you are done!

Did you like this tutorial?

You can support me, so that i can continue to make more tutorials like this one.

buy-me-a-coffee