Fixed bytes/str issues in some migrations (models.Index() arguments).

- Legacy-Id: 16410
This commit is contained in:
Henrik Levkowetz 2019-07-07 12:41:11 +00:00
parent 0ef7e98e0a
commit 04a728c23d
3 changed files with 3 additions and 3 deletions

View file

@ -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'),
),
]

View file

@ -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

View file

@ -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(