]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
apply PG ddl paren rules to index expressions
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Oct 2023 17:29:58 +0000 (13:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Oct 2023 17:30:33 +0000 (13:30 -0400)
commit5a95c35910185c5b1d53324d5e95b290bdac2446
tree45c8bdf0c32a4f6d16d96039683c92ab89e3a312
parentbd8e465ded7ead899472dcc8efc4e033ff14d802
apply PG ddl paren rules to index expressions

Fixed autogen render issue where expressions inside of indexes for PG need
to be double-parenthesized, meaning a single parens must be present within
the generated ``text()`` construct.

Change-Id: Iaf88ce28612707994a4753ee57384a8bb26f1133
Fixes: #1322
alembic/autogenerate/render.py
alembic/ddl/postgresql.py
docs/build/unreleased/1322.rst [new file with mode: 0644]
tests/test_postgresql.py