# Generated by Django 2.2 on 2019-09-04 18:55

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('entities', '0005_auto_20190904_1635'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='notification',
            name='form_header_code',
        ),
        migrations.AddField(
            model_name='notification',
            name='form_code',
            field=models.ForeignKey(default=django.utils.timezone.now, on_delete=django.db.models.deletion.DO_NOTHING, to='entities.ChangeRequestFormHeader', to_field='form_code'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='changerequestformapprovers',
            name='form_code',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='frm_approvers', to='entities.ChangeRequestFormHeader', to_field='form_code'),
        ),
        migrations.AlterField(
            model_name='changerequestformattachments',
            name='form_code',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='frm_attachments', to='entities.ChangeRequestFormHeader', to_field='form_code'),
        ),
        migrations.AlterField(
            model_name='changerequestformdetails',
            name='field_idx',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequestformdetails',
            name='field_props',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequestformdetails',
            name='field_ref',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequestformdetails',
            name='field_val',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequestformdetails',
            name='form_code',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='frm_details', to='entities.ChangeRequestFormHeader', to_field='form_code'),
        ),
        migrations.AlterField(
            model_name='changerequestformstakeholders',
            name='form_code',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='frm_stakes', to='entities.ChangeRequestFormHeader', to_field='form_code'),
        ),
        migrations.AlterField(
            model_name='changerequesttemplateapprovers',
            name='template_no',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='tmp_approvers', to='entities.ChangeRequestTemplateHeader', to_field='template_no'),
        ),
        migrations.AlterField(
            model_name='changerequesttemplateattachments',
            name='template_no',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='tmp_attachments', to='entities.ChangeRequestTemplateHeader', to_field='template_no'),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatedetails',
            name='field_idx',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatedetails',
            name='field_props',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatedetails',
            name='field_ref',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatedetails',
            name='field_val',
            field=models.TextField(max_length=255),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatedetails',
            name='template_no',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='tmp_details', to='entities.ChangeRequestTemplateHeader', to_field='template_no'),
        ),
        migrations.AlterField(
            model_name='changerequesttemplatestakeholders',
            name='template_no',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='tmp_stakes', to='entities.ChangeRequestTemplateHeader', to_field='template_no'),
        ),
    ]
