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
82c935d4
Kaydet (Commit)
82c935d4
authored
Haz 16, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed DatabaseFeature.supports_check_constraints to supports_column_check_constraints.
Thanks maxi for the suggestion.
üst
317c480c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
__init__.py
django/db/backends/__init__.py
+1
-1
base.py
django/db/backends/mysql/base.py
+1
-1
base.py
django/db/backends/sqlite3/base.py
+1
-1
tests.py
tests/schema/tests.py
+1
-1
No files found.
django/db/backends/__init__.py
Dosyayı görüntüle @
82c935d4
...
@@ -634,7 +634,7 @@ class BaseDatabaseFeatures(object):
...
@@ -634,7 +634,7 @@ class BaseDatabaseFeatures(object):
supports_foreign_keys
=
True
supports_foreign_keys
=
True
# Does it support CHECK constraints?
# Does it support CHECK constraints?
supports_check_constraints
=
True
supports_c
olumn_c
heck_constraints
=
True
# Does the backend support 'pyformat' style ("... %(name)s ...", {'name': value})
# Does the backend support 'pyformat' style ("... %(name)s ...", {'name': value})
# parameter passing? Note this can be provided by the backend even if not
# parameter passing? Note this can be provided by the backend even if not
...
...
django/db/backends/mysql/base.py
Dosyayı görüntüle @
82c935d4
...
@@ -184,7 +184,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
...
@@ -184,7 +184,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
allows_auto_pk_0
=
False
allows_auto_pk_0
=
False
uses_savepoints
=
True
uses_savepoints
=
True
atomic_transactions
=
False
atomic_transactions
=
False
supports_check_constraints
=
False
supports_c
olumn_c
heck_constraints
=
False
def
__init__
(
self
,
connection
):
def
__init__
(
self
,
connection
):
super
(
DatabaseFeatures
,
self
)
.
__init__
(
connection
)
super
(
DatabaseFeatures
,
self
)
.
__init__
(
connection
)
...
...
django/db/backends/sqlite3/base.py
Dosyayı görüntüle @
82c935d4
...
@@ -103,7 +103,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
...
@@ -103,7 +103,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_bulk_insert
=
True
has_bulk_insert
=
True
can_combine_inserts_with_and_without_auto_increment_pk
=
False
can_combine_inserts_with_and_without_auto_increment_pk
=
False
supports_foreign_keys
=
False
supports_foreign_keys
=
False
supports_check_constraints
=
False
supports_c
olumn_c
heck_constraints
=
False
autocommits_when_autocommit_is_off
=
True
autocommits_when_autocommit_is_off
=
True
can_introspect_decimal_field
=
False
can_introspect_decimal_field
=
False
can_introspect_positive_integer_field
=
True
can_introspect_positive_integer_field
=
True
...
...
tests/schema/tests.py
Dosyayı görüntüle @
82c935d4
...
@@ -478,7 +478,7 @@ class SchemaTests(TransactionTestCase):
...
@@ -478,7 +478,7 @@ class SchemaTests(TransactionTestCase):
BookWithM2M
.
_meta
.
local_many_to_many
.
remove
(
new_field
)
BookWithM2M
.
_meta
.
local_many_to_many
.
remove
(
new_field
)
del
BookWithM2M
.
_meta
.
_m2m_cache
del
BookWithM2M
.
_meta
.
_m2m_cache
@unittest.skipUnless
(
connection
.
features
.
supports_check_constraints
,
"No check constraints"
)
@unittest.skipUnless
(
connection
.
features
.
supports_c
olumn_c
heck_constraints
,
"No check constraints"
)
def
test_check_constraints
(
self
):
def
test_check_constraints
(
self
):
"""
"""
Tests creating/deleting CHECK constraints
Tests creating/deleting CHECK constraints
...
...
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