]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
generalize conditional DDL throughout schema / DDL
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Jan 2022 20:07:17 +0000 (15:07 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Mar 2022 14:16:36 +0000 (10:16 -0400)
commit57877461c1bd3b43a9d833fbca873d59db36b6f7
treee6fa8a914f8275ee2a7b99b4772cff14438c6b7f
parent6f02d5edd88fe2475629438b0730181a2b00c5fe
generalize conditional DDL throughout schema / DDL

Expanded on the "conditional DDL" system implemented by the
:class:`_schema.DDLElement` class to be directly available on
:class:`_schema.SchemaItem` constructs such as :class:`_schema.Index`,
:class:`_schema.ForeignKeyConstraint`, etc. such that the conditional logic
for generating these elements is included within the default DDL emitting
process. This system can also be accommodated by a future release of
Alembic to support conditional DDL elements within all schema-management
systems.

Fixes: #7631
Change-Id: I9457524d7f66f49696187cf7d2b37dbb44f0e20b
doc/build/changelog/migration_20.rst
doc/build/changelog/unreleased_20/7631.rst [new file with mode: 0644]
doc/build/core/constraints.rst
doc/build/core/ddl.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/schema.py
pyproject.toml
test/engine/test_ddlevents.py