diff --git a/vrobbler/apps/scrobbles/migrations/0072_add_scrobble_indexes.py b/vrobbler/apps/scrobbles/migrations/0072_add_scrobble_indexes.py new file mode 100644 index 0000000..b7d4134 --- /dev/null +++ b/vrobbler/apps/scrobbles/migrations/0072_add_scrobble_indexes.py @@ -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", + ), + ), + ]