mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26117 -- Consulted database routers in initial migration detection.
Thanks Simon Charette for help.
This commit is contained in:
@@ -9,7 +9,6 @@ class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
operations = [
|
||||
|
||||
migrations.CreateModel(
|
||||
"Author",
|
||||
[
|
||||
@@ -20,7 +19,6 @@ class Migration(migrations.Migration):
|
||||
("silly_field", models.BooleanField(default=False)),
|
||||
],
|
||||
),
|
||||
|
||||
migrations.CreateModel(
|
||||
"Tribble",
|
||||
[
|
||||
@@ -28,10 +26,13 @@ class Migration(migrations.Migration):
|
||||
("fluffy", models.BooleanField(default=True)),
|
||||
],
|
||||
),
|
||||
|
||||
migrations.AddField(
|
||||
model_name='tribble',
|
||||
name='bool',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='author',
|
||||
unique_together=set([('name', 'slug')]),
|
||||
),
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user