# Generated by Django 5.2.13 on 2026-05-04 21:40

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


class Migration(migrations.Migration):

    dependencies = [
        ("repository_documents", "0007_author_aliases_and_merge"),
    ]

    operations = [
        migrations.AddField(
            model_name="collection",
            name="deprecated_at",
            field=models.DateTimeField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name="collection",
            name="deprecation_message",
            field=models.CharField(
                blank=True,
                help_text="Shown to users when they pick this Collection — e.g. why it was retired.",
                max_length=255,
            ),
        ),
        migrations.AddField(
            model_name="collection",
            name="is_deprecated",
            field=models.BooleanField(db_index=True, default=False),
        ),
        migrations.AddField(
            model_name="collection",
            name="superseded_by",
            field=models.ForeignKey(
                blank=True,
                help_text="The Collection users should select instead — surfaced in the deprecation warning.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="supersedes",
                to="repository_documents.collection",
            ),
        ),
    ]
