]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Preserve comment and info in Drop/CreateTableOp
authorNicolas CANIART <nicolas@caniart.net>
Tue, 10 Aug 2021 14:36:55 +0000 (10:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Aug 2021 16:05:07 +0000 (12:05 -0400)
commit1ce816684f213ae50287fb22ce5ff5633257e3d4
tree78f2acd24b07b1727e4379ce95acad9c603f86e0
parent8917b3532da6dabc07187adf597573624b32fe3c
Preserve comment and info in Drop/CreateTableOp

Fixed regression due to :ticket:`803` where the ``.info`` and ``.comment``
attributes of ``Table`` would be lost inside of the :class:`.DropTableOp`
class, which when "reversed" into a :class:`.CreateTableOp` would then have
lost these elements. Pull request courtesy Nicolas CANIART.

Fixes: #879
Closes: #881
Pull-request: https://github.com/sqlalchemy/alembic/pull/881
Pull-request-sha: e509b9e8180085998e32746721eeb9266b9f2145

Change-Id: I84a0680266fcf80f3dc922f3cbc76dabd74eedd3
alembic/operations/ops.py
docs/build/unreleased/879.rst [new file with mode: 0644]
tests/test_op.py