PlanetScale

Revert a migration without losing data

Mar 24, 2022Taylor Barnett
Revert a migration without losing data
SummaryAI, from the source post

Introduces a new schema revert feature that allows users to revert a migration with zero downtime and zero data loss within 30 minutes of deployment. This is enabled by Vitess's VReplication, which performs a lossless sync at the MySQL transaction level to restore the database to its previous state, including any data added during the erroneous migration.

More from the Database Branching and Blue/Green Deployments trail