Skip to content

Commit

Permalink
fix: db index
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 13, 2023
1 parent 567c1c6 commit c3bcbd9
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,21 @@
# Generated by Django 4.2.5 on 2023-10-13 07:21

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
(
"uni_ticket",
"0012_rename_log_content_type_object_id_uni_ticket__content_dbfb39_idx",
),
]

operations = [
migrations.AddIndex(
model_name="ticketassignment",
index=models.Index(
fields=["office_id", "follow"], name="uni_ticket__office__f42ab9_idx"
),
),
]
1 change: 1 addition & 0 deletions uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@ class TicketAssignment(TimeStampedModel):
class Meta:
unique_together = ("ticket", "office")
ordering = ["created"]
indexes = [models.Index(fields=["office_id", "follow"])]
verbose_name = _("Competenza Ticket")
verbose_name_plural = _("Competenza Ticket")

Expand Down

0 comments on commit c3bcbd9

Please sign in to comment.