# Migration to add industry field to Site model

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


class Migration(migrations.Migration):

    dependencies = [
        ('igny8_core_auth', '0004_add_industry_models'),
    ]

    operations = [
        migrations.AddField(
            model_name='site',
            name='industry',
            field=models.ForeignKey(
                blank=True,
                help_text='Industry this site belongs to',
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name='sites',
                to='igny8_core_auth.industry'
            ),
        ),
        migrations.AddIndex(
            model_name='site',
            index=models.Index(fields=['industry'], name='igny8_site_industr_idx'),
        ),
    ]

