diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.1.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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 ~~~~~~~~~~ |
