db_validate_migration
Analyze DDL migrations for zero-downtime safety by detecting locking risks, dangerous NOT NULL columns, and destructive table or column drops before deployment.
Instructions
Analyze DDL migrations against zero-downtime safety rules, detect table-level locking risks (e.g. non-concurrent index creation), dangerous NOT NULL columns, and destructive column/table drops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The DDL SQL statement or multi-statement migration script to validate. |