analyze_rollback_readiness
Scans repository database migrations to classify each change as rollback-safe or destructive, returning blocking migrations and deployment strategy for rollback readiness assessment.
Instructions
Scans a repository for versioned database migration files (Flyway V*.sql, Prisma migration.sql, Liquibase XML/YAML) and classifies each operation as additive (rollback safe) or destructive (forward-fix only). Returns rollback_eligible, a list of blocking_migrations with file and line, and deployment_strategy. Use before recommending deployment to determine whether a rollback is safe after go-live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute path to the repository root to scan for migration files |