When saving a migration with prisma lift save
, Lift creates three migration files for you:
README.md
datamodel.prisma
steps.json
The README contains information about the migration in human-readable form:
- An overview of the SQL statements that will be executed by Lift when you run
prisma2 lift up
- A diff of the changes in your Prisma schema
The schema.prisma
file represents the target Prisma schema of the migration.
The steps.json
is another representation of the steps that will be performed by Lift when you're executing the migration with prisma2 lift up
. You can learn more about it in the spec.