From b31daeb474813166241a8ed307113dea3562d64c Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 23 Feb 2024 15:00:30 +0000 Subject: [PATCH] migrations --- .../migrations/0008_footer_columns.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 wagtailnhsukfrontend/settings/migrations/0008_footer_columns.py diff --git a/wagtailnhsukfrontend/settings/migrations/0008_footer_columns.py b/wagtailnhsukfrontend/settings/migrations/0008_footer_columns.py new file mode 100644 index 00000000..3e5547fd --- /dev/null +++ b/wagtailnhsukfrontend/settings/migrations/0008_footer_columns.py @@ -0,0 +1,36 @@ +# Generated by Django 3.2 on 2024-02-22 15:46 + +from django.db import migrations, models +import django.db.models.deletion +import modelcluster.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('wagtailnhsukfrontendsettings', '0007_organisational_header'), + ] + + operations = [ + migrations.RemoveField( + model_name='footerlinks', + name='setting', + ), + migrations.CreateModel( + name='FooterColumn', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), + ('column_title', models.CharField(blank=True, max_length=250, null=True)), + ('setting', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='footer_columns', to='wagtailnhsukfrontendsettings.footersettings')), + ], + options={ + 'abstract': False, + }, + ), + migrations.AddField( + model_name='footerlinks', + name='column', + field=modelcluster.fields.ParentalKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='footer_links', to='wagtailnhsukfrontendsettings.footercolumn'), + ), + ]