57 lines
2.3 KiB
Python
57 lines
2.3 KiB
Python
# Generated manually for adding per-run limits to AutomationConfig
|
|
# Run: python manage.py migrate
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('igny8_core', '0002_wordpress_sync_fields'), # Adjust based on your actual dependencies
|
|
]
|
|
|
|
operations = [
|
|
# Per-run item limits (0 = unlimited)
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_keywords_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max keywords to process in stage 1 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_clusters_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max clusters to process in stage 2 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_ideas_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max ideas to process in stage 3 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_tasks_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max tasks to process in stage 4 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_content_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max content pieces for image prompts in stage 5 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_images_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max images to generate in stage 6 (0=unlimited)'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_approvals_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max content pieces to auto-approve in stage 7 (0=unlimited)'),
|
|
),
|
|
# Credit budget limit per run
|
|
migrations.AddField(
|
|
model_name='automationconfig',
|
|
name='max_credits_per_run',
|
|
field=models.IntegerField(default=0, help_text='Max credits to use per run (0=unlimited)'),
|
|
),
|
|
]
|