@@ -2115,21 +2115,16 @@ def add_column(
21152115
21162116 .. note::
21172117
2118- With the exception of NOT NULL constraints or single-column FOREIGN
2119- KEY constraints, other kinds of constraints such as PRIMARY KEY,
2120- UNIQUE or CHECK constraints **cannot** be generated using this
2121- method; for these constraints, refer to operations such as
2122- :meth:`.Operations.create_primary_key` and
2123- :meth:`.Operations.create_check_constraint`. In particular, the
2124- following :class:`~sqlalchemy.schema.Column` parameters are
2125- **ignored**:
2126-
2127- * :paramref:`~sqlalchemy.schema.Column.primary_key` - SQL databases
2128- typically do not support an ALTER operation that can add
2129- individual columns one at a time to an existing primary key
2130- constraint, therefore it's less ambiguous to use the
2131- :meth:`.Operations.create_primary_key` method, which assumes no
2132- existing primary key constraint is present.
2118+ Not all contraint types may be indicated with this directive.
2119+ PRIMARY KEY, NOT NULL, FOREIGN KEY, and CHECK are honored, UNIQUE
2120+ is currently not.
2121+
2122+ .. versionadded:: 1.18.2 Added support for PRIMARY KEY to be
2123+ emitted within :meth:`.Operations.add_column`.
2124+
2125+ As of 1.18.2, the following :class:`~sqlalchemy.schema.Column`
2126+ parameters are **ignored**:
2127+
21332128 * :paramref:`~sqlalchemy.schema.Column.unique` - use the
21342129 :meth:`.Operations.create_unique_constraint` method
21352130 * :paramref:`~sqlalchemy.schema.Column.index` - use the
0 commit comments