diff --git a/uniticket/uni_ticket/migrations/0023_remove_ticket_uni_ticket__priorit_0066dd_idx_and_more.py b/uniticket/uni_ticket/migrations/0023_remove_ticket_uni_ticket__priorit_0066dd_idx_and_more.py new file mode 100644 index 0000000..0edf4b1 --- /dev/null +++ b/uniticket/uni_ticket/migrations/0023_remove_ticket_uni_ticket__priorit_0066dd_idx_and_more.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.16 on 2024-11-11 14:49 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('uni_ticket', '0022_ticket_uni_ticket__priorit_0066dd_idx_and_more'), + ] + + operations = [ + migrations.RemoveIndex( + model_name='ticket', + name='uni_ticket__priorit_0066dd_idx', + ), + migrations.RemoveIndex( + model_name='ticketassignment', + name='uni_ticket__ticket__9822c1_idx', + ), + migrations.RemoveIndex( + model_name='ticketassignment', + name='uni_ticket__taken_d_7d4fc6_idx', + ), + ] diff --git a/uniticket/uni_ticket/models.py b/uniticket/uni_ticket/models.py index 4efa7b1..3255866 100644 --- a/uniticket/uni_ticket/models.py +++ b/uniticket/uni_ticket/models.py @@ -501,7 +501,6 @@ class Meta: "-created", "code", ] - indexes = [models.Index(fields=["priority", "created"])] verbose_name = _("Ticket") verbose_name_plural = _("Ticket") @@ -1187,10 +1186,7 @@ class TicketAssignment(TimeStampedModel): class Meta: unique_together = ("ticket", "office") ordering = ["created"] - indexes = [models.Index(fields=["office_id", "follow"]), - models.Index(fields=["ticket_id", "follow"]), - models.Index(fields=["taken_date"]), - ] + indexes = [models.Index(fields=["office_id", "follow"])] verbose_name = _("Competenza Ticket") verbose_name_plural = _("Competenza Ticket")