Skip to content

Commit

Permalink
add index to periodic_task_name
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryUbuntuNerd committed Nov 5, 2024
1 parent 33cce5e commit 5930405
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.1.3 on 2024-11-05 13:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('django_celery_results', '0012_taskresult_date_started'),
]

operations = [
migrations.AddIndex(
model_name='taskresult',
index=models.Index(
fields=['periodic_task_name'],
name='django_cele_periodi_1993cf_idx'
),
),
]
2 changes: 2 additions & 0 deletions django_celery_results/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ class Meta:
name='django_cele_date_cr_f04a50_idx'),
models.Index(fields=['date_done'],
name='django_cele_date_do_f59aad_idx'),
models.Index(fields=['periodic_task_name'],
name='django_cele_periodi_1993cf_idx'),
]

def as_dict(self):
Expand Down

0 comments on commit 5930405

Please sign in to comment.