]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Remove unique/index flags when copying table
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 May 2021 17:06:52 +0000 (13:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 May 2021 20:22:13 +0000 (16:22 -0400)
commitacc82bff397be712a7e4f5e2069e7bfbf93ff5a9
tree47c72f20d8ec041cc794d3fe5c27dced384d7775
parent361076e847c7c60dd00438f1a612aba799e90b1d
Remove unique/index flags when copying table

Fixed 1.6-series regression where ``UniqueConstraint`` and to a lesser
extent ``Index`` objects would be doubled up in the generated model when
the ``unique=True`` / ``index=True`` flags were used.

Change-Id: Idb21891d66cc8d46b257f53062660ce1d4825fb8
Fixes: #844
alembic/operations/ops.py
alembic/operations/schemaobj.py
docs/build/unreleased/844.rst [new file with mode: 0644]
tests/test_autogen_indexes.py