Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
236baa0f
Kaydet (Commit)
236baa0f
authored
Agu 08, 2016
tarafından
Akshesh
Kaydeden (comit)
Tim Graham
Agu 12, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #27030 -- Added BtreeGinExtension operation.
üst
e1acc9dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
operations.py
django/contrib/postgres/operations.py
+6
-0
operations.txt
docs/ref/contrib/postgres/operations.txt
+9
-0
0001_setup_extensions.py
tests/postgres_tests/migrations/0001_setup_extensions.py
+4
-1
No files found.
django/contrib/postgres/operations.py
Dosyayı görüntüle @
236baa0f
...
...
@@ -46,3 +46,9 @@ class TrigramExtension(CreateExtension):
def
__init__
(
self
):
self
.
name
=
'pg_trgm'
class
BtreeGinExtension
(
CreateExtension
):
def
__init__
(
self
):
self
.
name
=
'btree_gin'
docs/ref/contrib/postgres/operations.txt
Dosyayı görüntüle @
236baa0f
...
...
@@ -18,6 +18,15 @@ the ``django.contrib.postgres.operations`` module.
This is a required argument. The name of the extension to be installed.
``BtreeGinExtension``
=====================
.. class:: BtreeGinExtension()
.. versionadded:: 1.11
Install the ``btree_gin`` extension.
``HStoreExtension``
===================
...
...
tests/postgres_tests/migrations/0001_setup_extensions.py
Dosyayı görüntüle @
236baa0f
...
...
@@ -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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment