diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-19 09:26:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 09:26:48 +0200 |
commit | 981c23c0ccbcaa155a80f894fd9e832beaab661d (patch) | |
tree | e74d0d4ef436c10bbd426d8197f8486e551f2144 /django/contrib/postgres/constraints.py | |
parent | 9f5548952906c6ea97200c016734b4f519520a64 (diff) | |
download | django-981c23c0ccbcaa155a80f894fd9e832beaab661d.tar.gz |
Fixed #33717 -- Dropped support for PostgreSQL 11.
Diffstat (limited to 'django/contrib/postgres/constraints.py')
-rw-r--r-- | django/contrib/postgres/constraints.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index 8b59704063..c19602b26e 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -144,15 +144,6 @@ class ExclusionConstraint(BaseConstraint): def check_supported(self, schema_editor): if ( self.include - and self.index_type.lower() == "gist" - and not schema_editor.connection.features.supports_covering_gist_indexes - ): - raise NotSupportedError( - "Covering exclusion constraints using a GiST index require " - "PostgreSQL 12+." - ) - if ( - self.include and self.index_type.lower() == "spgist" and not schema_editor.connection.features.supports_covering_spgist_indexes ): |