summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-10-18 10:08:50 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-07 11:23:53 +0100
commit02983c5242ee71925a7a9ca15ea7cab49e81396b (patch)
tree37a1d6e4db0b32e88ccb792f525ad41ebba60ac0 /tests/postgres_tests/migrations
parent26554cf5d1e96db10d0d5f4b69683a22fb82fdf8 (diff)
Fixed #30943 -- Added BloomIndex to django.contrib.postgres.
Diffstat (limited to 'tests/postgres_tests/migrations')
-rw-r--r--tests/postgres_tests/migrations/0001_setup_extensions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py
index 067c21849e..5064f7ff99 100644
--- a/tests/postgres_tests/migrations/0001_setup_extensions.py
+++ b/tests/postgres_tests/migrations/0001_setup_extensions.py
@@ -4,11 +4,12 @@ from django.db import migrations
try:
from django.contrib.postgres.operations import (
- BtreeGinExtension, BtreeGistExtension, CITextExtension,
+ BloomExtension, BtreeGinExtension, BtreeGistExtension, CITextExtension,
CreateExtension, CryptoExtension, HStoreExtension, TrigramExtension,
UnaccentExtension,
)
except ImportError:
+ BloomExtension = mock.Mock()
BtreeGinExtension = mock.Mock()
BtreeGistExtension = mock.Mock()
CITextExtension = mock.Mock()
@@ -22,6 +23,7 @@ except ImportError:
class Migration(migrations.Migration):
operations = [
+ BloomExtension(),
BtreeGinExtension(),
BtreeGistExtension(),
CITextExtension(),