Postgres Migration Diff Generator

Migration Diff
PostgresGUIPostgresGUI
Before
After

Generate PostgreSQL migration SQL

Paste two CREATE TABLE schemas and generate a conservative Postgres migration. The tool runs in your browser, does not use AI, and highlights destructive changes before you copy SQL.

ALTER TABLE users ADD COLUMN display_name text;
ALTER TABLE posts DROP COLUMN published_at;

What it flags

  • Dropped tables
  • Dropped columns
  • Type changes
  • Required columns
  • SET NOT NULL
  • Default changes