diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-08-08 08:45:08 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-12 18:37:00 -0400 |
| commit | 236baa0f0ec31422bc8c36b24e41112f7a564532 (patch) | |
| tree | 43d0ec9a009d894be4bc247c6a3be8fc3172b572 /tests/postgres_tests/migrations | |
| parent | e1acc9dc6638379513648b301e870ff2a40001fd (diff) | |
Refs #27030 -- Added BtreeGinExtension operation.
Diffstat (limited to 'tests/postgres_tests/migrations')
| -rw-r--r-- | tests/postgres_tests/migrations/0001_setup_extensions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/postgres_tests/migrations/0001_setup_extensions.py b/tests/postgres_tests/migrations/0001_setup_extensions.py index 400dd091f4..a32319b911 100644 --- a/tests/postgres_tests/migrations/0001_setup_extensions.py +++ b/tests/postgres_tests/migrations/0001_setup_extensions.py @@ -5,10 +5,12 @@ from django.db import migrations try: from django.contrib.postgres.operations import ( - CreateExtension, HStoreExtension, TrigramExtension, UnaccentExtension, + BtreeGinExtension, CreateExtension, HStoreExtension, TrigramExtension, + UnaccentExtension, ) except ImportError: from django.test import mock + BtreeGinExtension = mock.Mock() CreateExtension = mock.Mock() HStoreExtension = mock.Mock() TrigramExtension = mock.Mock() @@ -18,6 +20,7 @@ except ImportError: class Migration(migrations.Migration): operations = [ + BtreeGinExtension(), # Ensure CreateExtension quotes extension names by creating one with a # dash in its name. CreateExtension('uuid-ossp'), |
