PlanetScale

Automatically copy migration data in PlanetScale branches

Aug 23, 2021Taylor Barnett
Automatically copy migration data in PlanetScale branches
SummaryAI, from the source post

This post introduces the capability to automatically copy migration data from framework-specific migration tables (e.g., Rails, Phoenix, Django, .NET, Prisma, Sequelize) to PlanetScale database branches. This ensures that the migration history is preserved when creating new branches or deploy requests, preventing tools from incorrectly re-applying past migrations. It provides examples for Prisma and Ruby on Rails, and links to relevant documentation.

More from the Database Branching and Blue/Green Deployments trail