[scrobbles] Add timestamp indexes
All checks were successful
build & deploy / test (push) Successful in 1m45s
build & deploy / deploy (push) Has been skipped

This commit is contained in:
2026-03-08 16:41:01 -04:00
parent 7d8e1ac817
commit 8309a4e3c3

View File

@ -0,0 +1,47 @@
# Generated by Django 4.2.29 on 2026-03-08 05:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("scrobbles", "0071_add_scrobble_source_id"),
]
operations = [
migrations.AlterModelOptions(
name="scrobble",
options={},
),
migrations.AddIndex(
model_name="scrobble",
index=models.Index(
fields=["timestamp"], name="scrobbles_s_timesta_b24a39_idx"
),
),
migrations.AddIndex(
model_name="scrobble",
index=models.Index(
fields=["media_type"], name="scrobbles_s_media_t_76e16b_idx"
),
),
migrations.AddIndex(
model_name="scrobble",
index=models.Index(
fields=["source_id"], name="scrobbles_s_source__35e22e_idx"
),
),
migrations.AddIndex(
model_name="scrobble",
index=models.Index(
fields=[
"user",
"in_progress",
"played_to_completion",
"is_paused",
],
name="scrobbles_s_user_id_14e0bd_idx",
),
),
]