Add v13 to feature matrix
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 30 Aug 2020 19:13:17 +0000 (15:13 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 30 Aug 2020 19:14:43 +0000 (15:14 -0400)
This is part of the annual tradition of updating the
feature matrix.

pgweb/featurematrix/migrations/0006_feature_v13.py [new file with mode: 0644]
pgweb/featurematrix/models.py

diff --git a/pgweb/featurematrix/migrations/0006_feature_v13.py b/pgweb/featurematrix/migrations/0006_feature_v13.py
new file mode 100644 (file)
index 0000000..72506b9
--- /dev/null
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.12 on 2020-08-30 19:12
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('featurematrix', '0005_feature_v12'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='feature',
+            name='v13',
+            field=models.IntegerField(choices=[(0, 'No'), (1, 'Yes'), (2, 'Obsolete'), (3, '?')], default=0, verbose_name='13'),
+        ),
+        migrations.RunSQL("UPDATE featurematrix_feature SET v13=v12"),
+    ]
index 24873d023831a4cb83e5e472f14d9c95d23be15d..b2ae0063bdb6d201b3699a8e5623156d535cadd7 100644 (file)
@@ -47,6 +47,7 @@ class Feature(models.Model):
     v10 = models.IntegerField(verbose_name="10", null=False, blank=False, default=0, choices=choices)
     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)
 
     purge_urls = ('/about/featurematrix/.*', )