Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #579
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
--- /dev/null
+import patchwork.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('patchwork', '0046_patch_comment_events'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='patch',
+ name='hash',
+ field=patchwork.fields.HashField(
+ blank=True, db_index=True, max_length=40, null=True
+ ),
+ ),
+ ]
)
state = models.ForeignKey(State, null=True, on_delete=models.CASCADE)
archived = models.BooleanField(default=False)
- hash = HashField(null=True, blank=True)
+ hash = HashField(null=True, blank=True, db_index=True)
# series metadata