From f4895addc0352a6c4b2e0d6f605f48f0231fdf93 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Wed, 7 Aug 2019 20:36:48 -0400 Subject: [PATCH] Migration to add features to the Feature Matrix for v12. --- .../migrations/0005_feature_v12.py | 20 +++++++++++++++++++ pgweb/featurematrix/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 pgweb/featurematrix/migrations/0005_feature_v12.py diff --git a/pgweb/featurematrix/migrations/0005_feature_v12.py b/pgweb/featurematrix/migrations/0005_feature_v12.py new file mode 100644 index 00000000..93217fe3 --- /dev/null +++ b/pgweb/featurematrix/migrations/0005_feature_v12.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.18 on 2019-08-08 00:35 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('featurematrix', '0004_feature_v11'), + ] + + operations = [ + migrations.AddField( + model_name='feature', + name='v12', + field=models.IntegerField(choices=[(0, 'No'), (1, 'Yes'), (2, 'Obsolete'), (3, '?')], default=0, verbose_name='12'), + ), + ] diff --git a/pgweb/featurematrix/models.py b/pgweb/featurematrix/models.py index 4234c656..69c688b4 100644 --- a/pgweb/featurematrix/models.py +++ b/pgweb/featurematrix/models.py @@ -46,6 +46,7 @@ class Feature(models.Model): 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) + v12 = models.IntegerField(verbose_name="12", null=False, blank=False, default=0, choices=choices) purge_urls = ('/about/featurematrix/.*', ) -- 2.39.5