]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- restate sort_tables in terms of a more fine grained
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Jan 2015 18:47:08 +0000 (13:47 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Jan 2015 01:17:06 +0000 (20:17 -0500)
commit21f47124ab433cc74fa0a72efcc8a6c1e9c37db5
tree5edf52a65506d3c73f617ac88bb8fcdf21fbf2c8
parent8f5e4acbf693a375ad687977188a32bc941fd33b
- restate sort_tables in terms of a more fine grained
sort_tables_and_constraints function.
- The DDL generation system of :meth:`.MetaData.create_all`
and :meth:`.Metadata.drop_all` has been enhanced to in most
cases automatically handle the case of mutually dependent
foreign key constraints; the need for the
:paramref:`.ForeignKeyConstraint.use_alter` flag is greatly
reduced.  The system also works for constraints which aren't given
a name up front; only in the case of DROP is a name required for
at least one of the constraints involved in the cycle.
fixes #3282
17 files changed:
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
doc/build/core/constraints.rst
doc/build/core/ddl.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/plugin/plugin_base.py
lib/sqlalchemy/testing/util.py
test/orm/test_cycles.py
test/sql/test_constraints.py
test/sql/test_ddlemit.py