@@ -5,7 +5,46 @@ Changelog
55
66.. changelog ::
77 :version: 1.18.3
8- :include_notes_from: unreleased
8+ :released: January 29, 2026
9+
10+ .. change ::
11+ :tags: bug, autogenerate
12+ :tickets: 1787
13+
14+ Fixed regression in version 1.18.0 due to :ticket: `1771 ` where autogenerate
15+ would raise ``NoReferencedTableError `` when a foreign key constraint
16+ referenced a table that was not part of the initial table load, including
17+ tables filtered out by the
18+ :paramref: `.EnvironmentContext.configure.include_name ` callable or tables
19+ in remote schemas that were not included in the initial reflection run.
20+
21+ The change in :ticket: `1771 ` was a performance optimization that eliminated
22+ additional reflection queries for tables that were only referenced by
23+ foreign keys but not explicitly included in the main reflection run.
24+ However, this optimization inadvertently removed the creation of
25+ :class: `.Table ` objects for these referenced tables, causing autogenerate
26+ to fail when processing foreign key constraints that pointed to them.
27+
28+ The fix creates placeholder :class: `.Table ` objects for foreign key targets
29+ that are not reflected, allowing the autogenerate comparison to proceed
30+ without error while maintaining the performance improvement from
31+ :ticket: `1771 `. When multiple foreign keys reference different columns in
32+ the same filtered table, the placeholder table accumulates all necessary
33+ columns. These placeholder tables may be visible when using the
34+ :paramref: `.EnvironmentContext.configure.include_object ` callable to
35+ inspect :class: `.ForeignKeyConstraint ` objects; they will have the name,
36+ schema and basic column information for the relevant columns present.
37+
38+ .. change ::
39+ :tags: bug, general
40+ :tickets: 1788
41+
42+ Fixed regression caused by :ticket: `1669 ` which requires SQLAlchemy objects
43+ to support generic type subscripting; for the older SQLAlchemy 1.4 series,
44+ this requires version 1.4.23. Changed the minimum requirements to require
45+ version 1.4.23 rather than 1.4.0.
46+
47+
948
1049.. changelog ::
1150 :version: 1.18.2
0 commit comments