Skip to content

Commit

Permalink
fix: indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 25, 2024
1 parent d2535f2 commit 40e0175
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.9 on 2024-10-25 11:41

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('uni_ticket', '0022_ticketassignment_uni_ticket__ticket__c1f3e0_idx'),
]

operations = [
migrations.RemoveIndex(
model_name='ticketassignment',
name='uni_ticket__ticket__c1f3e0_idx',
),
]
3 changes: 1 addition & 2 deletions uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,7 @@ class TicketAssignment(TimeStampedModel):
class Meta:
unique_together = ("ticket", "office")
ordering = ["created"]
indexes = [models.Index(fields=["ticket_id"]),
models.Index(fields=["office_id", "follow"])]
indexes = [models.Index(fields=["office_id", "follow"])]
verbose_name = _("Competenza Ticket")
verbose_name_plural = _("Competenza Ticket")

Expand Down

0 comments on commit 40e0175

Please sign in to comment.