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
1b077812
Kaydet (Commit)
1b077812
authored
May 20, 2014
tarafından
Andrew Godwin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add feature for implied null (needed for Firebird backend)
üst
a4737bf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
__init__.py
django/db/backends/__init__.py
+3
-0
schema.py
django/db/backends/schema.py
+2
-2
No files found.
django/db/backends/__init__.py
Dosyayı görüntüle @
1b077812
...
...
@@ -646,6 +646,9 @@ class BaseDatabaseFeatures(object):
# Suffix for backends that don't support "SELECT xxx;" queries.
bare_select_suffix
=
''
# If NULL is implied on columns without needing to be explicitly specified
implied_column_null
=
False
uppercases_column_names
=
True
def
__init__
(
self
,
connection
):
...
...
django/db/backends/schema.py
Dosyayı görüntüle @
1b077812
...
...
@@ -132,9 +132,9 @@ class BaseDatabaseSchemaEditor(object):
if
(
field
.
empty_strings_allowed
and
not
field
.
primary_key
and
self
.
connection
.
features
.
interprets_empty_strings_as_nulls
):
null
=
True
if
null
:
if
null
and
not
self
.
connection
.
features
.
implied_column_null
:
sql
+=
" NULL"
el
se
:
el
if
not
null
:
sql
+=
" NOT NULL"
# Primary key/unique outputs
if
field
.
primary_key
:
...
...
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