Data migrations (Prisma ORM v6) (/docs/orm/v6/prisma-migrate/workflows/data-migration)
For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending
.mdto its URL.
How to migrate data using Prisma ORM with the expand and contract pattern.
Location: ORM > v6 > Prisma Migrate > Workflows > Data migrations
This guide has been moved to our new guides section. You can find the guide there.
Related pages
Section titled “Related pages”Baselining a database: How to initialize a migration history for an existing database that contains important data.Customizing migrations: How to edit a migration file before applying it to avoid data loss in production.Development and production: Development and productionGenerating down migrations: How to generate down migrationsNative database functions: How to enable PostgreSQL native database functions for projects that use Prisma Migrate.