Files
postgres-web/pgweb/featurematrix/migrations/0003_feature_v10.py
Magnus Hagander e151c08218 Update migrations for py3
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.

No actual changes included in this patch.
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.
2019-02-10 14:48:34 +01:00

21 lines
569 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('featurematrix', '0002_featurematrix_96'),
]
operations = [
migrations.AddField(
model_name='feature',
name='v10',
field=models.IntegerField(default=0, verbose_name='10', choices=[(0, 'No'), (1, 'Yes'), (2, 'Obsolete'), (3, '?')]),
),
migrations.RunSQL("UPDATE featurematrix_feature SET v10=v96 WHERE NOT v10=v96"),
]