Skip to content

Commit 8167182

Browse files
committed
- 1.18.2
1 parent 8bf6926 commit 8167182

5 files changed

Lines changed: 35 additions & 32 deletions

File tree

docs/build/changelog.rst

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,39 @@ Changelog
55

66
.. changelog::
77
:version: 1.18.2
8-
:include_notes_from: unreleased
8+
:released: January 28, 2026
9+
10+
.. change::
11+
:tags: usecase, operations
12+
:tickets: 1232
13+
14+
The ``primary_key`` parameter on :class:`.Column` is now honored when
15+
:meth:`.Operations.add_column` is used, and will emit the "PRIMARY KEY"
16+
keyword inline within the ADD COLUMN directive. This is strictly a syntax
17+
enhancement; no attempt is made to reconcile the column's primary key
18+
status with any existing primary key constraint or particular backend
19+
limitations on adding columns to the primary key.
20+
21+
.. change::
22+
:tags: bug, typing
23+
:tickets: 1669
24+
25+
Fixed typing issue where the :paramref:`.AlterColumnOp.server_default` and
26+
:paramref:`.AlterColumnOp.existing_server_default` parameters failed to
27+
accommodate common SQLAlchemy SQL constructs such as ``null()`` and
28+
``text()``. Pull request courtesy Sebastian Kreft.
29+
30+
31+
.. change::
32+
:tags: usecase, operations
33+
:tickets: 1780
34+
35+
Added ``inline_references`` parameter to :meth:`.Operations.add_column`
36+
which allows rendering of ``REFERENCES`` clauses inline within the ``ADD
37+
COLUMN`` directive rather than as a separate ``ADD CONSTRAINT`` directive.
38+
This syntax is supported by PostgreSQL, Oracle, MySQL 5.7+, and MariaDB
39+
10.5+, and can provide performance benefits on large tables by avoiding
40+
full table validation when adding a nullable foreign key column.
941

1042
.. changelog::
1143
:version: 1.18.1

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.1"
105-
release_date = "January 14, 2026"
104+
release = "1.18.2"
105+
release_date = "January 28, 2026"
106106

107107

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

docs/build/unreleased/1232.rst

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

docs/build/unreleased/1669.rst

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

docs/build/unreleased/1780.rst

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

0 commit comments

Comments
 (0)