]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
add variant render step for user-defined types
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Feb 2023 04:30:58 +0000 (23:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Feb 2023 13:58:33 +0000 (08:58 -0500)
commite6c67ae42284a711eaae64aabe14c722d9eeed54
treeb0b5a0e486b46832cdcabdad859541dcd423cad6
parent08266a49db1ce69224e62fa89f34f03a2f0f9529
add variant render step for user-defined types

due to SQLA 2.0's variant being integrated into types,
the variant rendering conditional would no longer take effect
as the type was not under the "sqlalchemy" module namespace.

Fixed issue where rendering of user-defined types that then went onto use
the ``.with_variant()`` method would fail to render, if using SQLAlchemy
2.0's version of variants.

Change-Id: I3c6f14325d6dffb2ddc1bf955753ee5a2de2cedd
Fixes: #1167
alembic/autogenerate/render.py
docs/build/unreleased/1167.rst [new file with mode: 0644]
tests/test_autogen_render.py