[PATCH v1 7/9] migrations: Add migration for new field

Stephen Finucane stephen at that.guru
Sat Jul 13 02:13:59 AEST 2024


On Mon, 2024-06-17 at 18:18 -0400, Adam Hassick wrote:
> Signed-off-by: Adam Hassick <ahassick at iol.unh.edu>

This needs to be squashed into the change that actually adds the fields to keep
things bisectable. One other nit below but change itself looks fine otherwise.

> ---
>  .../migrations/0047_series_dependencies.py    | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 patchwork/migrations/0047_series_dependencies.py
> 
> diff --git a/patchwork/migrations/0047_series_dependencies.py b/patchwork/migrations/0047_series_dependencies.py
> new file mode 100644
> index 0000000..5abbcc3
> --- /dev/null
> +++ b/patchwork/migrations/0047_series_dependencies.py
> @@ -0,0 +1,23 @@
> +# Generated by Django 5.0.6 on 2024-06-07 02:58

Can you drop this? It's auto-generated and no real help. I need to clean them
out of other files but haven't gotten around to it yet.

> +
> +from django.db import migrations, models
> +
> +
> +class Migration(migrations.Migration):
> +    dependencies = [
> +        ('patchwork', '0046_patch_comment_events'),
> +    ]
> +
> +    operations = [
> +        migrations.AddField(
> +            model_name='series',
> +            name='dependencies',
> +            field=models.ManyToManyField(
> +                blank=True,
> +                help_text='Optional dependencies on this patch.',
> +                related_name='dependents',
> +                related_query_name='dependent',
> +                to='patchwork.series',
> +            ),
> +        ),
> +    ]



More information about the Patchwork mailing list