rel_1_18_5
📦 alembicView on GitHub →
✨ 2 features🐛 3 fixes🔧 4 symbols
Summary
This release enhances the `merge` command with `--splice` support and improves head revision detection logic. It also fixes several bugs related to autogenerated script rendering and dialect comparisons for MySQL ENUMs.
✨ New Features
- Added support for the `--splice` flag in the `merge()` command via CLI and `command.merge()` function.
- Added `ScriptDirectory.get_heads.consider_depends_on` parameter to `ScriptDirectory.get_heads()` to exclude head revisions that are dependencies of other revisions.
🐛 Bug Fixes
- Fixed rendering of dialect keyword arguments containing `~sqlalchemy.schema.Column` objects within sequences (e.g., `postgresql_include`) in autogenerated scripts; column objects are now rendered as their string column names.
- Implemented type comparison for MySQL `ENUM` datatypes, checking for equivalent enum values to generate diffs.
- Fixed a bug where the `inline_references` parameter of `Operations.add_column()` failed to include foreign key referential actions (like `ON DELETE`, `ON UPDATE`) when rendering the inline `REFERENCES` clause.