Skip to content

Commit

Permalink
Index approved_date, locale
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Feb 20, 2024
1 parent 96c1e2c commit 884c6c0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pontoon/base/migrations/0053_alter_translation_index_together.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 3.2.15 on 2024-02-20 10:51

from django.conf import settings
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("base", "0052_rename_logged_in_users"),
]

operations = [
migrations.AlterIndexTogether(
name="translation",
index_together={
("locale", "user", "entity"),
("entity", "user", "approved", "pretranslated"),
("entity", "locale", "fuzzy"),
("date", "locale"),
("entity", "locale", "approved"),
("entity", "locale", "pretranslated"),
("approved_date", "locale"),
},
),
]
1 change: 1 addition & 0 deletions pontoon/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3284,6 +3284,7 @@ class Meta:
("entity", "locale", "fuzzy"),
("locale", "user", "entity"),
("date", "locale"),
("approved_date", "locale"),
)
constraints = [
models.UniqueConstraint(
Expand Down

0 comments on commit 884c6c0

Please sign in to comment.