Audits a database migration for operations that lock tables, break running code, or fail to roll back. Checks for blocking index builds, non-nullable columns added without defaults, renames and drops that break the currently deployed release, missing indexes on new foreign keys, and unbounded backfills. Produces a safe rewrite and a deployment order. Use when reviewing or writing a schema migration, or before running one against production. Do not use for query performance tuning of existing tables or for ORM model design questions.