mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #30943 -- Added BloomIndex to django.contrib.postgres.
This commit is contained in:
parent
26554cf5d1
commit
02983c5242
8 changed files with 177 additions and 5 deletions
|
@ -4,11 +4,12 @@ from django.db import migrations
|
|||
|
||||
try:
|
||||
from django.contrib.postgres.operations import (
|
||||
BtreeGinExtension, BtreeGistExtension, CITextExtension,
|
||||
BloomExtension, BtreeGinExtension, BtreeGistExtension, CITextExtension,
|
||||
CreateExtension, CryptoExtension, HStoreExtension, TrigramExtension,
|
||||
UnaccentExtension,
|
||||
)
|
||||
except ImportError:
|
||||
BloomExtension = mock.Mock()
|
||||
BtreeGinExtension = mock.Mock()
|
||||
BtreeGistExtension = mock.Mock()
|
||||
CITextExtension = mock.Mock()
|
||||
|
@ -22,6 +23,7 @@ except ImportError:
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
BloomExtension(),
|
||||
BtreeGinExtension(),
|
||||
BtreeGistExtension(),
|
||||
CITextExtension(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue