summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-05-24 21:23:50 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-05-27 09:49:25 +0200
commitb049bec7cfe9b5854584d240addb44fa1e9375a5 (patch)
tree802915666be8c9429530add0f621a560b5cca6be /django/db/backends/postgresql/features.py
parentbcbc4b9b8a4a47c8e045b060a9860a5c038192de (diff)
Fixed #35479 -- Dropped support for PostgreSQL 13 and PostGIS 3.0.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index ef697e85b0..6170b5501a 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -7,7 +7,7 @@ from django.utils.functional import cached_property
class DatabaseFeatures(BaseDatabaseFeatures):
- minimum_database_version = (13,)
+ minimum_database_version = (14,)
allows_group_by_selected_pks = True
can_return_columns_from_insert = True
can_return_rows_from_bulk_insert = True
@@ -153,10 +153,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
}
@cached_property
- def is_postgresql_14(self):
- return self.connection.pg_version >= 140000
-
- @cached_property
def is_postgresql_15(self):
return self.connection.pg_version >= 150000
@@ -164,8 +160,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
def is_postgresql_16(self):
return self.connection.pg_version >= 160000
- has_bit_xor = property(operator.attrgetter("is_postgresql_14"))
- supports_covering_spgist_indexes = property(operator.attrgetter("is_postgresql_14"))
supports_unlimited_charfield = True
supports_nulls_distinct_unique_constraints = property(
operator.attrgetter("is_postgresql_15")