"""
Counter band, the About section's tag and button, and the Services header.

Three parts of the homepage that were readable in the panel but not editable,
because the words lived in the template:

  * the statistics band under the hero
  * the small label above About and the button under its copy
  * the three lines introducing the service cards

One new table, one new singleton and three added columns. Every added column
is nullable with a blank default, so applying this touches no existing row and
changes nothing on any site until somebody types into the new fields.
"""
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '0046_homeslide'),
        ('tenants', '0024_module_choices_brands'),
    ]

    operations = [
        migrations.AddField(
            model_name='sitesettings', name='footer_col1_title',
            field=models.CharField(blank=True, default='', max_length=60,
                help_text='Heading above the first link column.'),
        ),
        migrations.AddField(
            model_name='sitesettings', name='footer_col2_title',
            field=models.CharField(blank=True, default='', max_length=60,
                help_text='Heading above the second link column.'),
        ),
        migrations.AddField(
            model_name='sitesettings', name='footer_col3_title',
            field=models.CharField(blank=True, default='', max_length=60,
                help_text='Heading above the contact column.'),
        ),
        migrations.AddField(
            model_name='sitesettings', name='footer_copyright',
            field=models.CharField(blank=True, default='', max_length=200,
                help_text='The line at the bottom. Leave blank to keep the theme default.'),
        ),
        migrations.AddField(
            model_name='homeabout', name='section_tag',
            field=models.CharField(blank=True, default='', max_length=80,
                help_text='Small line above the heading, e.g. Who We Are.'),
        ),
        migrations.AddField(
            model_name='homeabout', name='btn_text',
            field=models.CharField(blank=True, default='', max_length=60),
        ),
        migrations.AddField(
            model_name='homeabout', name='btn_url',
            field=models.CharField(blank=True, default='', max_length=300,
                help_text='A path such as #portfolio, or a full address.'),
        ),
        migrations.CreateModel(
            name='HomeCounter',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.PositiveIntegerField(default=0, help_text='Counts up to this from zero.')),
                ('suffix', models.CharField(blank=True, default='', max_length=8,
                    help_text='Held still beside the number, usually + or %. Leave blank for none.')),
                ('label', models.CharField(max_length=80)),
                ('order', models.PositiveIntegerField(default=1)),
                ('is_active', models.BooleanField(default=True)),
                ('tenant', models.ForeignKey(blank=True, null=True,
                    on_delete=django.db.models.deletion.CASCADE,
                    related_name='home_counters', to='tenants.tenant')),
            ],
            options={
                'verbose_name': 'Homepage Counter',
                'verbose_name_plural': 'Homepage Counters',
                'ordering': ['order', 'id'],
            },
        ),
        migrations.CreateModel(
            name='HomeServices',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('section_tag', models.CharField(blank=True, default='', max_length=80,
                    help_text='Small line above the heading, e.g. What We Do.')),
                ('heading', models.CharField(blank=True, default='', max_length=200)),
                ('heading_em', models.CharField(blank=True, default='', max_length=200,
                    help_text='Emphasised end of the heading, shown in the accent style.')),
                ('subtitle', models.TextField(blank=True, default='')),
                ('tenant', models.ForeignKey(blank=True, null=True,
                    on_delete=django.db.models.deletion.CASCADE,
                    related_name='+', to='tenants.tenant')),
            ],
            options={
                'verbose_name': 'Homepage Services Header',
                'unique_together': {('tenant',)},
            },
        ),
    ]
