From 02983c5242ee71925a7a9ca15ea7cab49e81396b Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 18 Oct 2019 10:08:50 +0100 Subject: Fixed #30943 -- Added BloomIndex to django.contrib.postgres. --- tests/postgres_tests/migrations/0001_setup_extensions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/postgres_tests/migrations') 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(), -- cgit v1.3