diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-14 06:33:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-14 06:33:00 +0200 |
| commit | e536fa5ce1f2249d171c5890751aea58e51b3849 (patch) | |
| tree | 53447f081c4a61b357453b038a135c09643d3a63 /django | |
| parent | 50798d43898c7d46926a4292f86fdf3859a433da (diff) | |
Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/db/backends/postgis/operations.py | 2 | ||||
| -rw-r--r-- | django/contrib/postgres/indexes.py | 4 | ||||
| -rw-r--r-- | django/db/backends/postgresql/features.py | 6 |
3 files changed, 1 insertions, 11 deletions
diff --git a/django/contrib/gis/db/backends/postgis/operations.py b/django/contrib/gis/db/backends/postgis/operations.py index f81f5da152..e9bcfc8a30 100644 --- a/django/contrib/gis/db/backends/postgis/operations.py +++ b/django/contrib/gis/db/backends/postgis/operations.py @@ -180,7 +180,7 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations): raise ImproperlyConfigured( 'Cannot determine PostGIS version for database "%s" ' 'using command "SELECT postgis_lib_version()". ' - 'GeoDjango requires at least PostGIS version 2.2. ' + 'GeoDjango requires at least PostGIS version 2.3. ' 'Was the database created from a spatial database ' 'template?' % self.connection.settings_dict['NAME'] ) diff --git a/django/contrib/postgres/indexes.py b/django/contrib/postgres/indexes.py index a5ffe94431..91286046e4 100644 --- a/django/contrib/postgres/indexes.py +++ b/django/contrib/postgres/indexes.py @@ -68,10 +68,6 @@ class BloomIndex(PostgresIndex): kwargs['columns'] = self.columns return path, args, kwargs - def check_supported(self, schema_editor): - if not schema_editor.connection.features.has_bloom_index: - raise NotSupportedError('Bloom indexes require PostgreSQL 9.6+.') - def get_with_params(self): with_params = [] if self.length is not None: diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py index 00a8009cf2..80cee8e8da 100644 --- a/django/db/backends/postgresql/features.py +++ b/django/db/backends/postgresql/features.py @@ -60,10 +60,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): 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')) |
