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
25a0781a
Kaydet (Commit)
25a0781a
authored
Ara 21, 2018
tarafından
Simon Charette
Kaydeden (comit)
Tim Graham
Ara 22, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #29182 -- Corrected SQLite's supports_atomic_references_rename feature flag.
üst
e5b8626c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
features.py
django/db/backends/sqlite3/features.py
+1
-1
tests.py
tests/backends/sqlite/tests.py
+5
-1
No files found.
django/db/backends/sqlite3/features.py
Dosyayı görüntüle @
25a0781a
...
...
@@ -25,7 +25,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_transactions
=
True
atomic_transactions
=
False
can_rollback_ddl
=
True
supports_atomic_references_rename
=
Database
.
version_info
>=
(
3
,
26
,
0
)
supports_atomic_references_rename
=
Database
.
sqlite_
version_info
>=
(
3
,
26
,
0
)
supports_paramstyle_pyformat
=
False
supports_sequence_reset
=
False
can_clone_databases
=
True
...
...
tests/backends/sqlite/tests.py
Dosyayı görüntüle @
25a0781a
...
...
@@ -6,7 +6,9 @@ from django.db import connection, transaction
from
django.db.models
import
Avg
,
StdDev
,
Sum
,
Variance
from
django.db.models.fields
import
CharField
from
django.db.utils
import
NotSupportedError
from
django.test
import
TestCase
,
TransactionTestCase
,
override_settings
from
django.test
import
(
TestCase
,
TransactionTestCase
,
override_settings
,
skipIfDBFeature
,
)
from
django.test.utils
import
isolate_apps
from
..models
import
Author
,
Item
,
Object
,
Square
...
...
@@ -112,6 +114,7 @@ class SchemaTests(TransactionTestCase):
self
.
assertFalse
(
constraint_checks_enabled
())
self
.
assertTrue
(
constraint_checks_enabled
())
@skipIfDBFeature
(
'supports_atomic_references_rename'
)
def
test_field_rename_inside_atomic_block
(
self
):
"""
NotImplementedError is raised when a model field rename is attempted
...
...
@@ -129,6 +132,7 @@ class SchemaTests(TransactionTestCase):
with
connection
.
schema_editor
(
atomic
=
True
)
as
editor
:
editor
.
alter_field
(
Author
,
Author
.
_meta
.
get_field
(
'name'
),
new_field
)
@skipIfDBFeature
(
'supports_atomic_references_rename'
)
def
test_table_rename_inside_atomic_block
(
self
):
"""
NotImplementedError is raised when a table rename is attempted inside
...
...
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