]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Drop default-related structures after the Table is dropped.
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Jul 2018 13:41:21 +0000 (09:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Jul 2018 02:38:52 +0000 (22:38 -0400)
commit532566ba1f28ff8a6afa6eacc10c59eb918501f6
treec3b2d7ef4e07ca1b5919cfe0aa6415b64bfb3aec
parentf7076ecf361f276f5ddb81f80931e5c88215e8ca
Drop default-related structures after the Table is dropped.

Fixed bug where a :class:`.Sequence` would be dropped explicitly before any
:class:`.Table` that refers to it, which breaks in the case when the
sequence is also involved in a server-side default for that table, when
using :meth:`.MetaData.drop_all`.   The step which processes sequences
to be dropped via non server-side column default functions is now invoked
after the table itself is dropped.

Change-Id: I185f2cc76d2011ad4dd3ba9bde5d8aef0ec335ae
Fixes: #4300
doc/build/changelog/unreleased_12/4300.rst [new file with mode: 0644]
doc/build/core/defaults.rst
lib/sqlalchemy/sql/ddl.py
test/engine/test_execute.py
test/requirements.py
test/sql/test_defaults.py