generate_rollback
Create reverse DDL to undo a SQL migration, producing rollback SQL with warnings for irreversible operations and Flyway schema_history cleanup.
Instructions
Generate reverse DDL to undo a SQL migration. Produces rollback SQL with warnings for irreversible operations (DROP TABLE, DROP COLUMN, type changes). Includes Flyway schema_history cleanup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL content of the migration file | |
| filename | Yes | Migration filename (e.g., V2__add_user_email.sql) |