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 /tests/postgres_tests/migrations | |
| parent | 50798d43898c7d46926a4292f86fdf3859a433da (diff) | |
Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2.
Diffstat (limited to 'tests/postgres_tests/migrations')
| -rw-r--r-- | tests/postgres_tests/migrations/0001_setup_extensions.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index d0a21791ba..5064f7ff99 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -1,6 +1,6 @@ from unittest import mock -from django.db import connection, migrations +from django.db import migrations try: from django.contrib.postgres.operations import ( @@ -23,11 +23,7 @@ except ImportError: class Migration(migrations.Migration): operations = [ - ( - BloomExtension() - if getattr(connection.features, 'has_bloom_index', False) - else mock.Mock() - ), + BloomExtension(), BtreeGinExtension(), BtreeGistExtension(), CITextExtension(), |
