Skip to content

Commit d3f66e6

Browse files
committed
- 1.18.3
1 parent ef3cbc1 commit d3f66e6

4 files changed

Lines changed: 42 additions & 40 deletions

File tree

docs/build/changelog.rst

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

docs/build/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
# The short X.Y version.
102102
version = alembic.__version__
103103
# The full version, including alpha/beta/rc tags.
104-
release = "1.18.2"
105-
release_date = "January 28, 2026"
104+
release = "1.18.3"
105+
release_date = "January 29, 2026"
106106

107107

108108
# The language for content autogenerated by Sphinx. Refer to documentation

docs/build/unreleased/1787.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/build/unreleased/1788.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)