DevTools Logo

DB Migration Script Generator

DB Migration Script Generator

Compare two CREATE TABLE schemas and generate ALTER, CREATE, and DROP migration SQL.

Quick start

Dialect

About this tool

Compare two database schema snapshots expressed as CREATE TABLE DDL and generate ALTER, CREATE, and DROP migration statements. Supports PostgreSQL, MySQL, and SQLite with explicit warnings when destructive changes are detected.

How to use

  1. Old schema

    Paste the current CREATE TABLE definitions.

  2. New schema

    Paste the target CREATE TABLE definitions after your model changes.

  3. Generate

    Select dialect and copy the migration script after reviewing DROP warnings.

Use cases

Schema review

Preview SQL diffs before applying migrations in staging.

Documentation

Attach generated scripts to pull requests describing database changes.

Frequently asked questions