Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
0036_year_of_diagnosis_default.py 717 B
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-25 07:28
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ('web', '0035_screening_number'),
    ]

    operations = [
        migrations.AlterField(
            model_name='subject',
            name='year_of_diagnosis',
            field=models.IntegerField(blank=True, null=True, verbose_name=b'Year of diagnosis (YYYY)'),
        ),
        migrations.RunSQL(
            "UPDATE web_subject SET year_of_diagnosis=NULL WHERE year_of_diagnosis = 0;",
            "UPDATE web_subject SET year_of_diagnosis=0 WHERE year_of_diagnosis = NULL;"),
    ]