mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	merge migrations
This commit is contained in:
		| @@ -1,22 +0,0 @@ | ||||
| # Generated by Django 5.1.6 on 2025-02-16 16:31 | ||||
|  | ||||
| from django.db import migrations | ||||
| from django.db import models | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|     dependencies = [ | ||||
|         ("documents", "1062_alter_savedviewfilterrule_rule_type"), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name="workflowactionwebhook", | ||||
|             name="url", | ||||
|             field=models.CharField( | ||||
|                 help_text="The destination URL for the notification.", | ||||
|                 max_length=256, | ||||
|                 verbose_name="webhook url", | ||||
|             ), | ||||
|         ), | ||||
|     ] | ||||
| @@ -1,14 +1,9 @@ | ||||
| # Generated by Django 5.1.6 on 2025-02-14 23:10 | ||||
| # Generated by Django 5.1.6 on 2025-02-17 01:13 | ||||
| 
 | ||||
| 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"), | ||||
| @@ -45,8 +40,13 @@ 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", | ||||
|             field=models.CharField( | ||||
|                 help_text="The destination URL for the notification.", | ||||
|                 max_length=256, | ||||
|                 verbose_name="webhook url", | ||||
|             ), | ||||
|         ), | ||||
|     ] | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon