HomeToolsAbout

Prisma

Creating migration

Write your schema updates to the schema file

repo_name/prisma/schema.prisma

OR Create a new migration file using yarn (preferred)

yarn workspace workspace_name db:makeMigration migration_name

This will create a new migration.sql containing the effective SQL changes based on the schema delta generated.

Running migration

Running yarn db:migrate will apply the new changes to your local database.

AboutContact