Postgres migration reader (strings, dollar quotes, comments handled) showing what each step locks, which rewrite big tables and which drops can't be undone, and catching failing NOT NULL adds, mid-deploy renames, CONCURRENTLY in a transaction and no lock_timeout.