Change8

rel_1_15_0

Breaking Changes
📦 alembic
2 breaking2 features🐛 2 fixes🔧 4 symbols

Summary

Alembic 1.15.0 drops support for Python 3.8 and SQLAlchemy 1.3, adds label rendering for index autogeneration and revision context to diff detection, and includes several lint‑friendly and rendering bug fixes.

⚠️ Breaking Changes

  • Support for Python 3.8 has been dropped; upgrade to Python 3.9 or higher.
  • Support for SQLAlchemy 1.3 has been dropped; upgrade to SQLAlchemy 1.4 or higher.

Migration Steps

  1. If you previously edited setup.cfg or setup.py for installation, migrate to pyproject.toml using PEP 621 format.

✨ New Features

  • Index autogenerate now renders labels for expressions, enabling operator class usage in PostgreSQL.
  • Revision context added to AutogenerateDiffsDetected, allowing custom diff output formatting.

🐛 Bug Fixes

  • Added a basic docstring to migration template files so upgrade/downgrade functions satisfy D103 linter.
  • Fixed autogenerate rendering bug where the deferrable flag of UniqueConstraint was stringified instead of using repr.

🔧 Affected Symbols

AutogenerateDiffsDetectedIndex.autogenerateUniqueConstraint.deferrable handlingmigration template upgrade/downgrade functions