From 9ac3ef59f9538cfb520e3607af743532434d1755 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Mon, 27 Dec 2021 19:04:59 +0100 Subject: Fixed #33379 -- Added minimum database version checks. Thanks Tim Graham for the review. --- docs/releases/4.1.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index 88d283ff65..936350979f 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -157,6 +157,18 @@ CSRF * ... +Database backends +~~~~~~~~~~~~~~~~~ + +* Third-party database backends can now specify the minimum required version of + the database using the ``DatabaseFeatures.minimum_database_version`` + attribute which is a tuple (e.g. ``(10, 0)`` means "10.0"). If a minimum + version is specified, backends must also implement + ``DatabaseWrapper.get_database_version()``, which returns a tuple of the + current database version. The backend's + ``DatabaseWrapper.init_connection_state()`` method must call ``super()`` in + order for the check to run. + Decorators ~~~~~~~~~~ -- cgit v1.3