analyze_migration_safety
Analyze SQL migration scripts to detect table locks, destructive drops, and breaking changes before execution, helping prevent database outages.
Instructions
Analyze a SQL migration script for table locks, destructive drops, and breaking changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Raw SQL migration text to inspect. | |
| dialect | No | SQL dialect ('postgres', 'mysql', 'sqlite'). Default: 'postgres'. |