]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
improve autogen rendering for PG ExcludeConstraint
authorJan Katins <jasc@gmx.net>
Mon, 6 Mar 2023 21:18:17 +0000 (16:18 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Mar 2023 00:25:59 +0000 (19:25 -0500)
commit6f8d9af59aa431aca3be851066c729c52b12a7a2
tree444b0d5bf76c9788cc42b084661bc3df04ff52da
parentcd7b1a94cc90ca533a84b47332900888151e22d0
improve autogen rendering for PG ExcludeConstraint

Fixed issue regarding PostgreSQL :class:`.ExcludeConstraint`, where
constraint elements which made use of :func:`.literal_column` could not be
rendered for autogenerate. Additionally, using SQLAlchemy 2.0.5 or greater,
:func:`.text()` constructs are also supported within PostgreSQL
:class:`.ExcludeConstraint` objects for autogenerate render. Pull request
courtesy Jan Katins.

Fixes: #1184
Closes: #1185
Pull-request: https://github.com/sqlalchemy/alembic/pull/1185
Pull-request-sha: 68360ce9aa746a85407c5e1e04b8021123d98504

Change-Id: I302f3f4007a186ffac13b344ff6769dd302f28f5
alembic/ddl/postgresql.py
docs/build/unreleased/1184.rst [new file with mode: 0644]
tests/test_postgresql.py