SQL Formatter for Migration Scripts

Your data never leaves your browser

Format migration scripts for review before running against production.

Example

ALTER TABLE users ADD COLUMN dept_id INTEGER REFERENCES departments(id); CREATE INDEX idx_dept ON users(dept_id); UPDATE users SET dept_id = 1 WHERE role LIKE '%eng%';

Tips

  1. 1Catch missing WHERE clauses.
  2. 2Separate DDL from DML.
  3. 3Include rollback statements.

Frequently Asked Questions

Safe?

Yes. Schema stays in browser.

Affects execution?

No. Whitespace only.

Multiple statements?

Yes. Semicolon-separated.