Change8

rel_1_18_3

📦 alembicView on GitHub →
🐛 2 fixes🔧 3 symbols

Summary

This patch fixes a critical regression in autogenerate related to foreign key referencing unreflected tables and updates the minimum required SQLAlchemy version for the 1.4 series to 1.4.23.

Migration Steps

  1. Ensure SQLAlchemy version is at least 1.4.23 if using SQLAlchemy 1.4 series.

🐛 Bug Fixes

  • Fixed regression in autogenerate where NoReferencedTableError was raised if a foreign key referenced a table not included in the initial reflection run (e.g., filtered tables or tables in remote schemas). Placeholder Table objects are now created for unreflected foreign key targets.
  • Fixed regression caused by requiring SQLAlchemy objects to support generic type subscripting by raising the minimum required SQLAlchemy version from 1.4.0 to 1.4.23 for compatibility with SQLAlchemy 1.4 series.

Affected Symbols