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
a7e29571
Kaydet (Commit)
a7e29571
authored
Şub 09, 2014
tarafından
Andrew Godwin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21917: Overly cautious SQLite3 backend for null fields + defaults
üst
a5391db7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
schema.py
django/db/backends/sqlite3/schema.py
+0
-5
No files found.
django/db/backends/sqlite3/schema.py
Dosyayı görüntüle @
a7e29571
...
...
@@ -88,11 +88,6 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
# Special-case implicit M2M tables
if
isinstance
(
field
,
ManyToManyField
)
and
field
.
rel
.
through
.
_meta
.
auto_created
:
return
self
.
create_model
(
field
.
rel
.
through
)
# Detect bad field combinations
if
(
not
field
.
null
and
(
not
field
.
has_default
()
or
field
.
get_default
()
is
None
)
and
not
field
.
empty_strings_allowed
):
raise
ValueError
(
"You cannot add a null=False column without a default value on SQLite."
)
self
.
_remake_table
(
model
,
create_fields
=
[
field
])
def
remove_field
(
self
,
model
,
field
):
...
...
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