]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Fix postgresql_include in create_index
authorSteven Bronson <791612+sbronson@users.noreply.github.com>
Thu, 19 Aug 2021 16:06:25 +0000 (12:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Aug 2021 16:34:41 +0000 (12:34 -0400)
commit84bbbebe41042eacb2b0e15d9a0959ee60fbcc67
tree7e291b9e84a567e5b406a694828ee635f0eb3279
parent6aad68605f510e8b51f42efa812e02b3831d6e33
Fix postgresql_include in create_index

Fixed issue where usage of the PostgreSQL ``postgresql_include`` option
within a :meth:`.Operations.create_index` would raise a KeyError, as the
additional column(s) need to be added to the table object used by the
construct internally. The issue is equivalent to the SQL Server issue fixed
in :ticket:`513`. Pull request courtesy Steven Bronson.

Copied from e01041b and 174cb4b.

Fixes: #874
Closes: #875
Pull-request: https://github.com/sqlalchemy/alembic/pull/875
Pull-request-sha: 2f9b51890a1296146bcea842dc8bbee53d1d11f5

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