An easy-to-use, zero-downtime schema migration tool for Postgres
open sourceMITfree
Reshape runs PostgreSQL schema migrations without downtime. Your application reads and writes through views; when a migration starts, Reshape creates a new set of views and triggers that translate inserts and updates between the old and new schema, so the old deployment keeps working while the new one rolls out. Once it's out you complete the migration, which drops the old schema, or abort it to roll back without losing data. Migrations are JSON or TOML files describing table, column and index changes, and a reshape docs command gives coding agents its documentation. It's for Postgres 12 and later, written in Rust, with binaries for macOS and Linux, a Docker image and a crate.
Problems it solves
- change a Postgres schema without downtime or locking tables during a deploy
- let the old and new app versions both work during a database migration
- roll out a column rename in Postgres gradually
Features
- Zero-downtime migrations through views and triggers
- Old and new schema usable at once
- Abort to roll back without data loss
- Migrations as JSON or TOML
- reshape docs command for coding agents
- Docker image
Alternatives
The same job
These do what Reshape does.
- pgroll Zero-downtime, reversible schema migrations for Postgres
- pgschema Terraform-style declarative schema migrations for PostgreSQL: dump, edit, plan, apply
- Liquibase Track, version, deploy and roll back database schema changes across 70+ databases
- Atlas Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases
