Timeline View
Every schema version on one strip — table counts, change summaries, and a jump to the exact migration file. Your history stops being tribal knowledge.
A folder of numbered .sql files hides everything that matters.
SQL Migration Visualizer turns it into a navigable timeline — scoring risky changes,
diffing any two versions, and generating the next migration in your database's dialect.
All inside the IDE.
This is the actual generator. Pick a change, switch the target database, and watch the SQL — and the risk score — react. Exactly what the plugin produces in your IDE.
Same diff, same risk — the generator adapts the SQL strategy to each engine's ALTER rules.
Every schema version on one strip — table counts, change summaries, and a jump to the exact migration file. Your history stops being tribal knowledge.
Dropped columns, narrowing types, tightening nullability — each migration is scored High / Medium / Low before it ever reaches review. The dangerous one never slips through.
Edit your schema and the plugin drafts the migration from the actual diff — in your dialect, with a banner the moment it detects a saved change.
Compare any two versions side by side — added, removed, and modified tables and columns, highlighted.
Table relationships with zoom, pan, and clean PNG export for design docs and pull requests.
Catch version gaps, duplicates, invalid alters, and inconsistent history before they cause runtime errors.
Find any table or column across every version of your schema in a single keystroke.
Generic, PostgreSQL, MySQL/MariaDB, and SQLite — each with its own ALTER rules and safe rebuilds.
Draft, edit, delete, and renumber migration files right in the IDE — no folder spelunking.
The generator respects each dialect's ALTER rules and falls back to a safe table rebuild when a change can't be made in place.
ALTER COLUMN … TYPE / SET NOT NULL / SET DEFAULT.MODIFY COLUMN and CHANGE COLUMN for changes and renames.PRAGMA foreign_keys guards, since SQLite can't ALTER COLUMN.Any IntelliJ-based IDE on build 2024.1 or newer — IntelliJ IDEA Community and Ultimate, plus the rest of the JetBrains family. No edition-specific features are required.
No. It parses your migration and schema .sql files statically — it never connects to a database and works fully offline. Nothing leaves your machine.
Common locations are auto-detected: src/main/sqldelight, src/commonMain/sqldelight, db/migrations, database/migrations, migrations, src/main/resources/db/migration(s), and …/schema. You can also point it at any folder in Settings → Tools → SQL Migration Visualizer.
Plain versions (1.sql, 2.sqm), version + name (12_add_users.sql), and Flyway-style (V3__create_orders.sql).
Generic SQL, PostgreSQL, MySQL/MariaDB, and SQLite — each with its own ALTER rules and safe table rebuilds. Set your default in the plugin settings.
Yes — free and open source under the GPL v3.0 license.
Grab the latest pre-built plugin ZIP — no account, no telemetry.
Install in IntelliJ via Settings → Plugins → ⚙ → Install Plugin from Disk. JetBrains Marketplace listing coming soon.
$ git clone https://github.com/jakubn11/sql-migration-visualizer.git
$ cd sql-migration-visualizer
$ ./gradlew buildPlugin
Then load the ZIP from build/distributions/.