]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
note that 2.0 has behavioral changes outside of the 1.4->2.0 process
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Dec 2022 20:53:03 +0000 (15:53 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Dec 2022 20:53:03 +0000 (15:53 -0500)
Change-Id: I0ab9611c75f592acec73ca92271f970eae74d7ab

doc/build/changelog/migration_20.rst

index 61a527464e514e8786446b403aea2c56592a2f68..41a3e36368be0be85882b0731b0a6dcf89b12cf0 100644 (file)
@@ -108,9 +108,12 @@ new ORM declarative system that unifies classical and declarative mapping,
 support for Python dataclasses, and asyncio support for Core and ORM.
 
 The steps to achieve 2.0 migration are in the following subsections; overall,
-the general strategy is that once an application runs on 1.4 with all
-warning flags turned on and does not emit any 2.0-deprecation warnings, it is
-now cross-compatible with SQLAlchemy 2.0.
+the general strategy is that once an application runs on 1.4 with all warning
+flags turned on and does not emit any 2.0-deprecation warnings, it is now
+**mostly** cross-compatible with SQLAlchemy 2.0. **Please note there may be
+additional API and behavioral changes that may behave differently when running
+against SQLAlchemy 2.0; always test code against an actual SQLAlchemy 2.0
+release as the final step in migrating**.
 
 
 First Prerequisite, step one - A Working 1.3 Application
@@ -532,6 +535,21 @@ that descend from ``Base``::
    that don't use :class:`_orm.Mapped` to remain usable.
 
 
+.. _migration_20_step_seven:
+
+Migration to 2.0 Step Seven - Test against a SQLAlchemy 2.0 Release
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+As mentioned previously, SQLAlchemy 2.0 has additional API and behavioral
+changes that are intended to be backwards compatible, however may introduce
+some incompatibilities nonetheless.  Therefore after the overall porting
+process is complete, the final step is to test against the most recent release
+of SQLAlchemy 2.0 to correct for any remaining issues that might be present.
+
+The guide at :ref:`whatsnew_20_toplevel` provides an overview of
+new features and behaviors for SQLAlchemy 2.0 which extend beyond the base
+set of 1.4->2.0 API changes.
+
 2.0 Migration - Core Connection / Transaction
 ---------------------------------------------