aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-06-04 17:13:47 +0100
committerMichael Wood <michael.g.wood@intel.com>2015-06-04 17:13:47 +0100
commit2543753ff9b5fff56e48005c0f189fef5847fdf6 (patch)
tree7a2892815f894b9438978cf52a790f3366152db6
parentf5d77729b994e6d0ffef57856e970347651ede28 (diff)
downloaderror-report-web-2543753ff9b5fff56e48005c0f189fef5847fdf6.tar.gz
error-report-web-2543753ff9b5fff56e48005c0f189fef5847fdf6.tar.bz2
error-report-web-2543753ff9b5fff56e48005c0f189fef5847fdf6.zip
Add migration for LEV_DISTANCE to support the similar errors feature
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
-rw-r--r--Post/migrations/0003_auto_20150603_0913.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/Post/migrations/0003_auto_20150603_0913.py b/Post/migrations/0003_auto_20150603_0913.py
new file mode 100644
index 0000000..46729ee
--- /dev/null
+++ b/Post/migrations/0003_auto_20150603_0913.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+def add_lev_distance_data(apps, schema_editor):
+ BuildFailure = apps.get_model("Post", "BuildFailure")
+ for buildfail in BuildFailure.objects.all():
+ buildfailure.save(recalc_lev_distance=True)
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('Post', '0002_build_link_back'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='buildfailure',
+ name='LEV_DISTANCE',
+ field=models.IntegerField(null=True, blank=True),
+ preserve_default=True,
+ ),
+ ]