Database migration review

Lints and formats your new schema, then diffs it against the current schema and generates the migration SQL for PostgreSQL, MySQL or SQLite.

Combines 2 tools · Developer

Try an example: ·

How this workflow works

Workflows chain several tools for one real-life task. Each step is a real tool call; nothing is guessed.

  1. Opsdeck SQL Formatter & Linter: Formats the new schema and flags risky patterns before you migrate. Format SQL and catch UPDATE/DELETE without WHERE, SELECT * in views and cross joins.
  2. Opsdeck Schema Diff & Migration Generator (PostgreSQL, MySQL, SQLite): Table/column/index differences and the migration statements. Compare two DDL versions: ordered migration, rollback script and data-loss warnings.