summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2017-07-01 15:30:34 +0200
committerTim Graham <timograham@gmail.com>2017-09-04 21:08:02 -0400
commitf4135783add90e8e392db81b3592f4e3b9f01754 (patch)
tree840bc1d36cd716dffda286610cf0227c16747a74 /tests/postgres_tests/migrations
parent66657eb01f36081f33d847390e4f7034ff3e9f52 (diff)
Fixed #28126 -- Added GistIndex to contrib.postgres.
Thanks to Marc Tamlyn for the initial patch.
Diffstat (limited to 'tests/postgres_tests/migrations')
-rw-r--r--tests/postgres_tests/migrations/0001_setup_extensions.py7
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.