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
d8b651a5
Kaydet (Commit)
d8b651a5
authored
Ock 03, 2016
tarafından
Jarek Glowacki
Kaydeden (comit)
Tim Graham
Ock 04, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added missing step to transitioning squashed migrations.
üst
6a298b22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
migrations.txt
docs/topics/migrations.txt
+6
-5
No files found.
docs/topics/migrations.txt
Dosyayı görüntüle @
d8b651a5
...
@@ -614,12 +614,13 @@ migrations it replaces and distribute this change to all running instances
...
@@ -614,12 +614,13 @@ migrations it replaces and distribute this change to all running instances
of your application, making sure that they run ``migrate`` to store the change
of your application, making sure that they run ``migrate`` to store the change
in their database.
in their database.
After this has been done, you must then transition the squashed migration to
You must then transition the squashed migration to a normal migration by:
a normal initial migration, by:
- Deleting all the migration files it replaces
- Deleting all the migration files it replaces.
- Removing the ``replaces`` argument in the ``Migration`` class of the
- Updating all migrations that depend on the deleted migrations to depend on
squashed migration (this is how Django tells that it is a squashed migration)
the squashed migration instead.
- Removing the ``replaces`` attribute in the ``Migration`` class of the
squashed migration (this is how Django tells that it is a squashed migration).
.. note::
.. note::
Once you've squashed a migration, you should not then re-squash that squashed
Once you've squashed a migration, you should not then re-squash that squashed
...
...
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