Skip to content

Commit

Permalink
fix: remove indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 11, 2024
1 parent 1745898 commit 29f9b55
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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',
),
]
6 changes: 1 addition & 5 deletions uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ class Meta:
"-created",
"code",
]
indexes = [models.Index(fields=["priority", "created"])]
verbose_name = _("Ticket")
verbose_name_plural = _("Ticket")

Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 29f9b55

Please sign in to comment.