Add v14 to the feature matrix
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Mon, 20 Sep 2021 01:49:23 +0000 (21:49 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Mon, 20 Sep 2021 01:49:36 +0000 (21:49 -0400)
pgweb/featurematrix/migrations/0007_feature_v14.py [new file with mode: 0644]
pgweb/featurematrix/models.py

diff --git a/pgweb/featurematrix/migrations/0007_feature_v14.py b/pgweb/featurematrix/migrations/0007_feature_v14.py
new file mode 100644 (file)
index 0000000..c85e4c0
--- /dev/null
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.24 on 2021-09-20 01:48
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('featurematrix', '0006_feature_v13'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='feature',
+            name='v14',
+            field=models.IntegerField(choices=[(0, 'No'), (1, 'Yes'), (2, 'Obsolete'), (3, '?')], default=0, verbose_name='13'),
+        ),
+        migrations.RunSQL("UPDATE featurematrix_feature SET v14=v13"),
+    ]
index fb6580ad3e44cc158eae50763a5308de31811574..0b526cc0861e10cf8c8bb4fc1180f85da1be05f0 100644 (file)
@@ -48,6 +48,7 @@ class Feature(models.Model):
     v11 = models.IntegerField(verbose_name="11", null=False, blank=False, default=0, choices=choices)
     v12 = models.IntegerField(verbose_name="12", null=False, blank=False, default=0, choices=choices)
     v13 = models.IntegerField(verbose_name="13", null=False, blank=False, default=0, choices=choices)
+    v14 = models.IntegerField(verbose_name="13", null=False, blank=False, default=0, choices=choices)
 
     purge_urls = ('/about/featurematrix/.*', )