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
a76d12ce
Kaydet (Commit)
a76d12ce
authored
Ock 21, 2017
tarafından
Arkadiusz Adamski
Kaydeden (comit)
Tim Graham
Ock 21, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused imports in example migrations.
üst
503e944a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
writing-migrations.txt
docs/howto/writing-migrations.txt
+1
-1
migration-operations.txt
docs/ref/migration-operations.txt
+1
-1
migrations.txt
docs/topics/migrations.txt
+2
-2
No files found.
docs/howto/writing-migrations.txt
Dosyayı görüntüle @
a76d12ce
...
...
@@ -152,7 +152,7 @@ the respective field according to your needs.
:filename: 0005_populate_uuid_values.py
# Generated by Django A.B on YYYY-MM-DD HH:MM
from django.db import migrations
, models
from django.db import migrations
import uuid
def gen_uuid(apps, schema_editor):
...
...
docs/ref/migration-operations.txt
Dosyayı görüntüle @
a76d12ce
...
...
@@ -310,7 +310,7 @@ class in the migration file, and just pass it to ``RunPython``. Here's an
example of using ``RunPython`` to create some initial objects on a ``Country``
model::
from django.db import migrations
, models
from django.db import migrations
def forwards_func(apps, schema_editor):
# We get the model from the versioned app registry;
...
...
docs/topics/migrations.txt
Dosyayı görüntüle @
a76d12ce
...
...
@@ -455,7 +455,7 @@ the file in the right place, suggest a name, and add dependencies for you)::
Then, open up the file; it should look something like this::
# Generated by Django A.B on YYYY-MM-DD HH:MM
from django.db import migrations
, models
from django.db import migrations
class Migration(migrations.Migration):
initial = True
...
...
@@ -482,7 +482,7 @@ combined values of ``first_name`` and ``last_name`` (we've come to our senses
and realized that not everyone has first and last names). All we
need to do is use the historical model and iterate over the rows::
from django.db import migrations
, models
from django.db import migrations
def combine_names(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
...
...
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