Fixed bytes/str issues in some migrations (models.Index() arguments).
- Legacy-Id: 16410
This commit is contained in:
parent
0ef7e98e0a
commit
04a728c23d
|
@ -15,6 +15,6 @@ class Migration(migrations.Migration):
|
|||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name='docevent',
|
||||
index=models.Index(fields=[b'type', b'doc'], name='doc_doceven_type_43e53e_idx'),
|
||||
index=models.Index(fields=['type', 'doc'], name='doc_doceven_type_43e53e_idx'),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -57,7 +57,7 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AddIndex(
|
||||
model_name='docevent',
|
||||
index=models.Index(fields=[b'type', b'doc2'], name='doc_doceven_type_ac7748_idx'),
|
||||
index=models.Index(fields=['type', 'doc2'], name='doc_doceven_type_ac7748_idx'),
|
||||
),
|
||||
# The following 9 migrations are related to the m2m fields on Document
|
||||
# Remove the intermediary model field pointing to Document.name
|
||||
|
|
|
@ -63,7 +63,7 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AddIndex(
|
||||
model_name='docevent',
|
||||
index=models.Index(fields=[b'type', b'doc'], name='doc_doceven_type_43e53e_idx'),
|
||||
index=models.Index(fields=['type', 'doc'], name='doc_doceven_type_43e53e_idx'),
|
||||
),
|
||||
# Add back the m2m field we removed in 0018_...
|
||||
migrations.AddField(
|
||||
|
|
Loading…
Reference in a new issue