summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
authorAkshesh <aksheshdoshi@gmail.com>2016-08-08 08:45:08 +0530
committerTim Graham <timograham@gmail.com>2016-08-12 18:37:00 -0400
commit236baa0f0ec31422bc8c36b24e41112f7a564532 (patch)
tree43d0ec9a009d894be4bc247c6a3be8fc3172b572 /tests/postgres_tests/migrations
parente1acc9dc6638379513648b301e870ff2a40001fd (diff)
Refs #27030 -- Added BtreeGinExtension operation.
Diffstat (limited to 'tests/postgres_tests/migrations')
-rw-r--r--tests/postgres_tests/migrations/0001_setup_extensions.py5
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'),