mirror of
https://github.com/django/django.git
synced 2025-07-23 05:05:17 +00:00
Fixed #28126 -- Added GistIndex to contrib.postgres.
Thanks to Marc Tamlyn for the initial patch.
This commit is contained in:
parent
66657eb01f
commit
f4135783ad
7 changed files with 161 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue