mirror of
https://github.com/django/django.git
synced 2025-08-06 20:08:20 +00:00
Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2.
This commit is contained in:
parent
50798d4389
commit
e536fa5ce1
10 changed files with 17 additions and 36 deletions
|
@ -59,10 +59,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
validates_explain_options = False # A query will error on invalid options.
|
||||
supports_deferrable_unique_constraints = True
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_9_6(self):
|
||||
return self.connection.pg_version >= 90600
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_10(self):
|
||||
return self.connection.pg_version >= 100000
|
||||
|
@ -75,8 +71,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
def is_postgresql_12(self):
|
||||
return self.connection.pg_version >= 120000
|
||||
|
||||
has_bloom_index = property(operator.attrgetter('is_postgresql_9_6'))
|
||||
has_brin_autosummarize = property(operator.attrgetter('is_postgresql_10'))
|
||||
has_phraseto_tsquery = property(operator.attrgetter('is_postgresql_9_6'))
|
||||
has_websearch_to_tsquery = property(operator.attrgetter('is_postgresql_11'))
|
||||
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue