diff --git a/vrobbler/apps/scrobbles/migrations/0042_scrobble_videogame_screenshot.py b/vrobbler/apps/scrobbles/migrations/0042_scrobble_videogame_screenshot.py new file mode 100644 index 0000000..153ddac --- /dev/null +++ b/vrobbler/apps/scrobbles/migrations/0042_scrobble_videogame_screenshot.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.7 on 2023-06-03 18:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("scrobbles", "0041_retroarchimport"), + ] + + operations = [ + migrations.AddField( + model_name="scrobble", + name="videogame_screenshot", + field=models.ImageField( + blank=True, + null=True, + upload_to="scrobbles/videogame_screenshot/", + ), + ), + ] diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 11dccb8..348a836 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -513,6 +513,9 @@ class Scrobble(TimeStampedModel): videogame_save_data = models.FileField( upload_to="scrobbles/videogame_save_data/", **BNULL ) + videogame_screenshot = models.ImageField( + upload_to="scrobbles/videogame_screenshot/", **BNULL + ) long_play_seconds = models.BigIntegerField(**BNULL) long_play_complete = models.BooleanField(**BNULL)