Add index to patchhistory.date
authorMagnus Hagander <[email protected]>
Wed, 6 Feb 2019 20:36:42 +0000 (21:36 +0100)
committerMagnus Hagander <[email protected]>
Wed, 6 Feb 2019 20:36:42 +0000 (21:36 +0100)
pgcommitfest/commitfest/migrations/0005_history_dateindex.py [new file with mode: 0644]

diff --git a/pgcommitfest/commitfest/migrations/0005_history_dateindex.py b/pgcommitfest/commitfest/migrations/0005_history_dateindex.py
new file mode 100644 (file)
index 0000000..c7be8fc
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.17 on 2019-02-06 20:36
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('commitfest', '0004_target_version'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='patchhistory',
+            name='date',
+            field=models.DateTimeField(auto_now_add=True, db_index=True),
+        ),
+    ]