analyze_liquibase_yaml
Analyzes Liquibase YAML changelogs to identify lock contention risks, data loss potential, and unsafe patterns. Supports all major change types and inline SQL analysis.
Instructions
Analyze a Liquibase YAML changelog for lock risks, data loss potential, and unsafe patterns. Supports all major change types: createTable, dropTable, addColumn, dropColumn, modifyDataType, addNotNullConstraint, createIndex, dropIndex, addForeignKeyConstraint, dropForeignKeyConstraint, renameTable, renameColumn. Inline sql changeSets are also analyzed for TRUNCATE, DELETE without WHERE, and UPDATE without WHERE. Returns lock risk severity (ACCESS EXCLUSIVE, SHARE locks) and data loss risk per operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | The Liquibase YAML changelog content |