From: Mike Bayer Date: Wed, 28 Jan 2026 21:20:52 +0000 (-0500) Subject: - 1.18.2 X-Git-Tag: rel_1_18_2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8167182d852fbcd4c36d3b867b601144fd96b0c9;p=thirdparty%2Fsqlalchemy%2Falembic.git - 1.18.2 --- diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst index 22dbc9cc..bb6ea0b3 100644 --- a/docs/build/changelog.rst +++ b/docs/build/changelog.rst @@ -5,7 +5,39 @@ Changelog .. changelog:: :version: 1.18.2 - :include_notes_from: unreleased + :released: January 28, 2026 + + .. change:: + :tags: usecase, operations + :tickets: 1232 + + The ``primary_key`` parameter on :class:`.Column` is now honored when + :meth:`.Operations.add_column` is used, and will emit the "PRIMARY KEY" + keyword inline within the ADD COLUMN directive. This is strictly a syntax + enhancement; no attempt is made to reconcile the column's primary key + status with any existing primary key constraint or particular backend + limitations on adding columns to the primary key. + + .. change:: + :tags: bug, typing + :tickets: 1669 + + Fixed typing issue where the :paramref:`.AlterColumnOp.server_default` and + :paramref:`.AlterColumnOp.existing_server_default` parameters failed to + accommodate common SQLAlchemy SQL constructs such as ``null()`` and + ``text()``. Pull request courtesy Sebastian Kreft. + + + .. change:: + :tags: usecase, operations + :tickets: 1780 + + Added ``inline_references`` parameter to :meth:`.Operations.add_column` + which allows rendering of ``REFERENCES`` clauses inline within the ``ADD + COLUMN`` directive rather than as a separate ``ADD CONSTRAINT`` directive. + This syntax is supported by PostgreSQL, Oracle, MySQL 5.7+, and MariaDB + 10.5+, and can provide performance benefits on large tables by avoiding + full table validation when adding a nullable foreign key column. .. changelog:: :version: 1.18.1 diff --git a/docs/build/conf.py b/docs/build/conf.py index 9ade210a..9c288d80 100644 --- a/docs/build/conf.py +++ b/docs/build/conf.py @@ -101,8 +101,8 @@ author = "Mike Bayer" # The short X.Y version. version = alembic.__version__ # The full version, including alpha/beta/rc tags. -release = "1.18.1" -release_date = "January 14, 2026" +release = "1.18.2" +release_date = "January 28, 2026" # The language for content autogenerated by Sphinx. Refer to documentation diff --git a/docs/build/unreleased/1232.rst b/docs/build/unreleased/1232.rst deleted file mode 100644 index 3fff7559..00000000 --- a/docs/build/unreleased/1232.rst +++ /dev/null @@ -1,10 +0,0 @@ -.. change:: - :tags: usecase, operations - :tickets: 1232 - - The ``primary_key`` parameter on :class:`.Column` is now honored when - :meth:`.Operations.add_column` is used, and will emit the "PRIMARY KEY" - keyword inline within the ADD COLUMN directive. This is strictly a syntax - enhancement; no attempt is made to reconcile the column's primary key - status with any existing primary key constraint or particular backend - limitations on adding columns to the primary key. diff --git a/docs/build/unreleased/1669.rst b/docs/build/unreleased/1669.rst deleted file mode 100644 index 0e148c10..00000000 --- a/docs/build/unreleased/1669.rst +++ /dev/null @@ -1,9 +0,0 @@ -.. change:: - :tags: bug, typing - :tickets: 1669 - - Fixed typing issue where the :paramref:`.AlterColumnOp.server_default` and - :paramref:`.AlterColumnOp.existing_server_default` parameters failed to - accommodate common SQLAlchemy SQL constructs such as ``null()`` and - ``text()``. Pull request courtesy Sebastian Kreft. - diff --git a/docs/build/unreleased/1780.rst b/docs/build/unreleased/1780.rst deleted file mode 100644 index 69fa23fd..00000000 --- a/docs/build/unreleased/1780.rst +++ /dev/null @@ -1,10 +0,0 @@ -.. change:: - :tags: usecase, operations - :tickets: 1780 - - Added ``inline_references`` parameter to :meth:`.Operations.add_column` - which allows rendering of ``REFERENCES`` clauses inline within the ``ADD - COLUMN`` directive rather than as a separate ``ADD CONSTRAINT`` directive. - This syntax is supported by PostgreSQL, Oracle, MySQL 5.7+, and MariaDB - 10.5+, and can provide performance benefits on large tables by avoiding - full table validation when adding a nullable foreign key column.