Add "v11" to the PostgreSQL Feature Matrix.

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.
This commit is contained in:
Jonathan S. Katz
2018-06-08 10:07:11 -04:00
parent c9c4ce728e
commit 8d8e910aa0
2 changed files with 22 additions and 0 deletions

View File

@ -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"),
]

View File

@ -43,6 +43,7 @@ class Feature(models.Model):
v95 = models.IntegerField(verbose_name="9.5", null=False, blank=False, default=0, choices=choices) 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) 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) 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/.*', ) purge_urls = ('/about/featurematrix/.*', )