]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Fix compat issue with older SQLAlchemy versions.
authorFederico Caselli <cfederico87@gmail.com>
Mon, 8 May 2023 21:05:40 +0000 (23:05 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 May 2023 22:11:13 +0000 (18:11 -0400)
commit2866272251637c0dd246c275cf04947849ea88b8
tree061f9310693d04387c56d61438901591c35faaec
parente17e59ee2be160fff35b38b08d68766a971b3069
Fix compat issue with older SQLAlchemy versions.

Added placeholder classes for ``Computed`` and ``Identity`` when older 1.x
SQLAlchemy versions are in use, namely prior to SQLAlchemy 1.3.11 when the
``Computed`` construct was introduced. Previously these were set to None,
however this could cause issues with certain codepaths that were using
``isinstance()`` such as one within "batch mode".

Fixes: #1237
Change-Id: I033712158baa68cca6a56bd41d0636109e156b86
alembic/testing/fixtures.py
alembic/testing/requirements.py
alembic/testing/util.py
alembic/util/__init__.py
alembic/util/sqla_compat.py
docs/build/unreleased/1109.rst
docs/build/unreleased/1237.rst [new file with mode: 0644]