mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #27030 -- Added BtreeGinExtension operation.
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user