rel_1_19_0
📦 alembicView on GitHub →
✨ 1 features🐛 1 fixes🔧 1 symbols
Summary
This release enhances autogenerate functionality to detect named CHECK constraints and resolves an inconsistency in offline mode for version table management. It also updates Python version support.
✨ New Features
- Autogenerate now detects the addition and removal of named CHECK constraints based on name, assuming equivalence if the name is unchanged. This behavior is controlled by the `alembic.autogenerate.checkconstraint_byname` plugin and can be disabled via `EnvironmentContext.configure.autogenerate_plugins`.
🐛 Bug Fixes
- Fixed an inconsistency where `stamp` or `downgrade` to `base` in offline (`--sql`) mode would emit a `DROP TABLE alembic_version` statement, which is not present in online mode. Offline mode now matches online behavior by not emitting this spurious drop.