Skip to content
The NSchema logo

NSchema

Describe the schema you want. NSchema computes and applies the migration to get there — Terraform, for your database schema.

Declarative, not migrations

You write the final shape of your schema in SQL-flavoured DDL — no ALTER steps, no migration files to number and order. NSchema diffs it against the live database and computes the plan.

Plan before you apply

Every run previews the exact changes first, Terraform-style. Save a plan and apply that exact file later, so what you reviewed is what runs.

Safe by default

Destructive changes error out unless you opt in. Drift detection, offline planning against persisted state, and idempotent deployment scripts round it out.

Adopt any database

Point import at an existing PostgreSQL database and NSchema writes your schema out as DDL, ready to check in and manage from there.