]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
support 2.0 style variants
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Nov 2021 19:10:58 +0000 (14:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Nov 2021 19:13:02 +0000 (14:13 -0500)
commitd18af2d6d1c49cc86b878d654b3404bb26614be6
treed5ae0b551ec83aefd136878e922d5f8bf46bfcdc
parentbb2cf1e56cbc443dc96e80f7d6c32929330bf89e
support 2.0 style variants

Implemented support for recognizing and rendering SQLAlchemy "variant"
types going forward into SQLAlchemy 2.0, where the architecture of
"variant" datatypes will be changing.

Specifically any TypeEngine can now have "variants" by looking
in the _variant_mapping dictionary collection associated with the
type directly.

Change-Id: I0b5ca887dce1dd77af3504dbe318701b31c7d574
alembic/autogenerate/render.py
alembic/util/sqla_compat.py
docs/build/unreleased/variant.rst [new file with mode: 0644]