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
b67e9ed8
Kaydet (Commit)
b67e9ed8
authored
Haz 20, 2014
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Swapped placeholders in [sql]migrate command error
üst
08221d1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
migrate.py
django/core/management/commands/migrate.py
+4
-2
sqlmigrate.py
django/core/management/commands/sqlmigrate.py
+4
-2
No files found.
django/core/management/commands/migrate.py
Dosyayı görüntüle @
b67e9ed8
...
@@ -87,9 +87,11 @@ class Command(BaseCommand):
...
@@ -87,9 +87,11 @@ class Command(BaseCommand):
try
:
try
:
migration
=
executor
.
loader
.
get_migration_by_prefix
(
app_label
,
migration_name
)
migration
=
executor
.
loader
.
get_migration_by_prefix
(
app_label
,
migration_name
)
except
AmbiguityError
:
except
AmbiguityError
:
raise
CommandError
(
"More than one migration matches '
%
s' in app '
%
s'. Please be more specific."
%
(
app_label
,
migration_name
))
raise
CommandError
(
"More than one migration matches '
%
s' in app '
%
s'. Please be more specific."
%
(
migration_name
,
app_label
))
except
KeyError
:
except
KeyError
:
raise
CommandError
(
"Cannot find a migration matching '
%
s' from app '
%
s'."
%
(
app_label
,
migration_name
))
raise
CommandError
(
"Cannot find a migration matching '
%
s' from app '
%
s'."
%
(
migration_name
,
app_label
))
targets
=
[(
app_label
,
migration
.
name
)]
targets
=
[(
app_label
,
migration
.
name
)]
target_app_labels_only
=
False
target_app_labels_only
=
False
elif
options
[
'app_label'
]:
elif
options
[
'app_label'
]:
...
...
django/core/management/commands/sqlmigrate.py
Dosyayı görüntüle @
b67e9ed8
...
@@ -35,9 +35,11 @@ class Command(BaseCommand):
...
@@ -35,9 +35,11 @@ class Command(BaseCommand):
try
:
try
:
migration
=
executor
.
loader
.
get_migration_by_prefix
(
app_label
,
migration_name
)
migration
=
executor
.
loader
.
get_migration_by_prefix
(
app_label
,
migration_name
)
except
AmbiguityError
:
except
AmbiguityError
:
raise
CommandError
(
"More than one migration matches '
%
s' in app '
%
s'. Please be more specific."
%
(
app_label
,
migration_name
))
raise
CommandError
(
"More than one migration matches '
%
s' in app '
%
s'. Please be more specific."
%
(
migration_name
,
app_label
))
except
KeyError
:
except
KeyError
:
raise
CommandError
(
"Cannot find a migration matching '
%
s' from app '
%
s'. Is it in INSTALLED_APPS?"
%
(
app_label
,
migration_name
))
raise
CommandError
(
"Cannot find a migration matching '
%
s' from app '
%
s'. Is it in INSTALLED_APPS?"
%
(
migration_name
,
app_label
))
targets
=
[(
app_label
,
migration
.
name
)]
targets
=
[(
app_label
,
migration
.
name
)]
# Make a plan that represents just the requested migrations and show SQL
# Make a plan that represents just the requested migrations and show SQL
...
...
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