Skip to content

Commit 766b5ee

Browse files
committed
- 1.18.4
1 parent b844a9c commit 766b5ee

3 files changed

Lines changed: 28 additions & 27 deletions

File tree

docs/build/changelog.rst

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

66
.. changelog::
77
:version: 1.18.4
8-
:include_notes_from: unreleased
8+
:released: February 10, 2026
9+
10+
.. change::
11+
:tags: bug, operations
12+
:tickets: 1232
13+
14+
Reverted the behavior of :meth:`.Operations.add_column` that would
15+
automatically render the "PRIMARY KEY" keyword inline when a
16+
:class:`.Column` with ``primary_key=True`` is added. The automatic
17+
behavior, added in version 1.18.2, is now opt-in via the new
18+
:paramref:`.Operations.add_column.inline_primary_key` parameter. This
19+
change restores the ability to render a PostgreSQL SERIAL column, which is
20+
required to be ``primary_key=True``, while not impacting the ability to
21+
render a separate primary key constraint. This also provides consistency
22+
with the :paramref:`.Operations.add_column.inline_references` parameter and
23+
gives users explicit control over SQL generation.
24+
25+
To render PRIMARY KEY inline, use the
26+
:paramref:`.Operations.add_column.inline_primary_key` parameter set to
27+
``True``::
28+
29+
op.add_column(
30+
"my_table",
31+
Column("id", Integer, primary_key=True),
32+
inline_primary_key=True
33+
)
934

1035
.. changelog::
1136
:version: 1.18.3

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.3"
105-
release_date = "January 29, 2026"
104+
release = "1.18.4"
105+
release_date = "February 10, 2026"
106106

107107

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

docs/build/unreleased/1232_amendment.rst

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

0 commit comments

Comments
 (0)