suggest_fix
Fix unsafe PostgreSQL migration SQL by automatically producing corrected SQL and a list of changes.
Instructions
Auto-fix safe violations in a PostgreSQL migration SQL. Returns the fixed SQL and list of changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL migration to fix | |
| pg_version | No | Target PostgreSQL version (default: 17) |