Add "v11" to the PostgreSQL Feature Matrix.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Fri, 8 Jun 2018 14:07:11 +0000 (10:07 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Fri, 8 Jun 2018 14:07:11 +0000 (10:07 -0400)
This will allow us to populate new features added to PostgreSQL 11
earlier in the release lifecycle to help drive more awareness to
what has changed.

pgweb/featurematrix/migrations/0004_feature_v11.py [new file with mode: 0644]
pgweb/featurematrix/models.py

diff --git a/pgweb/featurematrix/migrations/0004_feature_v11.py b/pgweb/featurematrix/migrations/0004_feature_v11.py
new file mode 100644 (file)
index 0000000..70060d5
--- /dev/null
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.13 on 2018-06-06 14:31
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('featurematrix', '0003_feature_v10'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='feature',
+            name='v11',
+            field=models.IntegerField(choices=[(0, b'No'), (1, b'Yes'), (2, b'Obsolete'), (3, b'?')], default=0, verbose_name=b'11'),
+        ),
+        migrations.RunSQL("UPDATE featurematrix_feature SET v11=v10 WHERE NOT v11=v10"),
+    ]
index fe6eae06f0f8d527a05877477b3ada1709633fac..433e3c3f1624641a164c527c07e31d61771e28bf 100644 (file)
@@ -43,6 +43,7 @@ class Feature(models.Model):
        v95 = models.IntegerField(verbose_name="9.5", null=False, blank=False, default=0, choices=choices)
        v96 = models.IntegerField(verbose_name="9.6", null=False, blank=False, default=0, choices=choices)
        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)
 
        purge_urls = ('/about/featurematrix/.*', )