diff options
Diffstat (limited to 'tests/postgres_tests/migrations')
| -rw-r--r-- | tests/postgres_tests/migrations/0001_setup_extensions.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index b00c6c0838..067c21849e 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -4,11 +4,13 @@ from django.db import migrations try: from django.contrib.postgres.operations import ( - BtreeGinExtension, CITextExtension, CreateExtension, CryptoExtension, - HStoreExtension, TrigramExtension, UnaccentExtension, + BtreeGinExtension, BtreeGistExtension, CITextExtension, + CreateExtension, CryptoExtension, HStoreExtension, TrigramExtension, + UnaccentExtension, ) except ImportError: BtreeGinExtension = mock.Mock() + BtreeGistExtension = mock.Mock() CITextExtension = mock.Mock() CreateExtension = mock.Mock() CryptoExtension = mock.Mock() @@ -21,6 +23,7 @@ class Migration(migrations.Migration): operations = [ BtreeGinExtension(), + BtreeGistExtension(), CITextExtension(), # Ensure CreateExtension quotes extension names by creating one with a # dash in its name. |
