Skip to content

Commit

Permalink
fix: db indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 12, 2024
1 parent 50f8e39 commit 7ab13a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.16 on 2024-11-12 08:45

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('uni_ticket', '0024_ticket_uni_ticket__id_1dfb83_idx'),
]

operations = [
migrations.RemoveIndex(
model_name='ticket',
name='uni_ticket__id_1dfb83_idx',
),
migrations.AddIndex(
model_name='ticket',
index=models.Index(fields=['id', 'is_closed'], name='uni_ticket__id_694f6e_idx'),
),
]
2 changes: 1 addition & 1 deletion uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class Meta:
]
verbose_name = _("Ticket")
verbose_name_plural = _("Ticket")
indexes = [models.Index(fields=["id", "is_closed", "created"])]
indexes = [models.Index(fields=["id", "is_closed"])]

@property
def taken_date(self):
Expand Down

0 comments on commit 7ab13a2

Please sign in to comment.