Skip to content

Commit

Permalink
migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
pflynny committed Feb 23, 2024
1 parent 7f6664a commit b31daeb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions wagtailnhsukfrontend/settings/migrations/0008_footer_columns.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]

0 comments on commit b31daeb

Please sign in to comment.