From d389125606152a6cd57d0f6cadeddf0bd6232215 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 20 Aug 2016 12:14:02 +0200 Subject: Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexes Thanks Akshesh for help with the PostgreSQL query. Thanks Tim Graham for the review. --- docs/internals/deprecation.txt | 2 ++ docs/releases/1.11.txt | 7 +++++++ 2 files changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 151cdff68d..8be137e635 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -36,6 +36,8 @@ details on these changes. * Silencing of exceptions raised while rendering the ``{% include %}`` template tag will be removed. +* ``DatabaseIntrospection.get_indexes()`` will be removed. + .. _deprecation-removed-in-2.0: 2.0 diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index b2ba159c8a..7b5bcc450f 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -399,6 +399,10 @@ Database backend API dictionaries with a list of ``'ASC'`` and/or ``'DESC'`` values corresponding to the the ordering of each column in the index. +* :djadmin:`inspectdb` no longer calls ``DatabaseIntrospection.get_indexes()`` + which is deprecated. Custom database backends should ensure all types of + indexes are returned by ``DatabaseIntrospection.get_constraints()``. + Dropped support for PostgreSQL 9.2 and PostGIS 2.0 -------------------------------------------------- @@ -549,3 +553,6 @@ Miscellaneous :ttag:`{% include %} ` template tag is deprecated as the behavior is often more confusing than helpful. In Django 2.1, the exception will be raised. + +* ``DatabaseIntrospection.get_indexes()`` is deprecated in favor of + ``DatabaseIntrospection.get_constraints()``. -- cgit v1.3