summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-06-05 17:37:48 +0100
committerTim Graham <timograham@gmail.com>2016-05-13 12:38:21 -0400
commit1962a96a30e02de78a674a2e02979c00cc55655b (patch)
tree2abaf90658eaf619563b96aa7c8c810e5b83f365 /tests/postgres_tests/migrations
parentd7334b405fb0e677e79cb064074df68188f0ddb5 (diff)
Fixed #24938 -- Added PostgreSQL trigram support.
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 07d5bfc7e7..400dd091f4 100644
--- a/tests/postgres_tests/migrations/0001_setup_extensions.py
+++ b/tests/postgres_tests/migrations/0001_setup_extensions.py
@@ -5,12 +5,13 @@ from django.db import migrations
try:
from django.contrib.postgres.operations import (
- CreateExtension, HStoreExtension, UnaccentExtension,
+ CreateExtension, HStoreExtension, TrigramExtension, UnaccentExtension,
)
except ImportError:
from django.test import mock
CreateExtension = mock.Mock()
HStoreExtension = mock.Mock()
+ TrigramExtension = mock.Mock()
UnaccentExtension = mock.Mock()
@@ -21,5 +22,6 @@ class Migration(migrations.Migration):
# dash in its name.
CreateExtension('uuid-ossp'),
HStoreExtension(),
+ TrigramExtension(),
UnaccentExtension(),
]