Skip to content

1.18.4

Latest

Choose a tag to compare

@sqla-tester sqla-tester released this 10 Feb 16:00
· 8 commits to main since this release

1.18.4

Released: February 10, 2026

bug

  • [bug] [operations] Reverted the behavior of Operations.add_column() that would
    automatically render the "PRIMARY KEY" keyword inline when a
    Column with primary_key=True is added. The automatic
    behavior, added in version 1.18.2, is now opt-in via the new
    Operations.add_column.inline_primary_key parameter. This
    change restores the ability to render a PostgreSQL SERIAL column, which is
    required to be primary_key=True, while not impacting the ability to
    render a separate primary key constraint. This also provides consistency
    with the Operations.add_column.inline_references parameter and
    gives users explicit control over SQL generation.

    To render PRIMARY KEY inline, use the
    Operations.add_column.inline_primary_key parameter set to
    True:

    op.add_column(
    "my_table",
    Column("id", Integer, primary_key=True),
    inline_primary_key=True
    )References: #1232