Fix migrations merge

This commit is contained in:
shamoon 2025-02-16 17:16:53 -08:00
parent 7e7ce97d10
commit 31e71aab83

View File

@ -4,6 +4,11 @@ from django.db import migrations
from django.db import models
def make_existing_tasks_consume_auto(apps, schema_editor):
PaperlessTask = apps.get_model("documents", "PaperlessTask")
PaperlessTask.objects.all().update(type="auto_task", task_name="consume_file")
class Migration(migrations.Migration):
dependencies = [
("documents", "1062_alter_savedviewfilterrule_rule_type"),
@ -40,6 +45,10 @@ class Migration(migrations.Migration):
verbose_name="Task Name",
),
),
migrations.RunPython(
make_existing_tasks_consume_auto,
migrations.RunPython.noop,
),
migrations.AlterField(
model_name="workflowactionwebhook",
name="url",