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
c2e419c2
Kaydet (Commit)
c2e419c2
authored
Ara 26, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.
üst
1729a525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
sqlsequencereset.py
django/core/management/commands/sqlsequencereset.py
+0
-2
1.7.2.txt
docs/releases/1.7.2.txt
+3
-0
No files found.
django/core/management/commands/sqlsequencereset.py
Dosyayı görüntüle @
c2e419c2
from
__future__
import
unicode_literals
from
django.core.management.base
import
AppCommand
from
django.core.management.sql
import
check_for_migrations
from
django.db
import
connections
,
DEFAULT_DB_ALIAS
...
...
@@ -20,7 +19,6 @@ class Command(AppCommand):
if
app_config
.
models_module
is
None
:
return
connection
=
connections
[
options
.
get
(
'database'
)]
check_for_migrations
(
app_config
,
connection
)
models
=
app_config
.
get_models
(
include_auto_created
=
True
)
statements
=
connection
.
ops
.
sequence_reset_sql
(
self
.
style
,
models
)
return
'
\n
'
.
join
(
statements
)
docs/releases/1.7.2.txt
Dosyayı görüntüle @
c2e419c2
...
...
@@ -167,3 +167,6 @@ Bugfixes
instead of ``DeleteModel`` and ``CreateModel`` operations when changing
``Meta.managed``. This prevents data loss when changing ``managed`` from
``False`` to ``True`` and vice versa (:ticket:`24037`).
* Enabled the ``sqlsequencereset`` command on apps with migrations
(:ticket:`24054`).
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