diff --git a/vrobbler/apps/scrobbles/migrations/0035_scrobble_videogame_save_data.py b/vrobbler/apps/scrobbles/migrations/0035_scrobble_videogame_save_data.py new file mode 100644 index 0000000..7935e7c --- /dev/null +++ b/vrobbler/apps/scrobbles/migrations/0035_scrobble_videogame_save_data.py @@ -0,0 +1,22 @@ +# Generated by Django 4.1.7 on 2023-04-03 02:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("scrobbles", "0034_alter_chartrecord_rank"), + ] + + operations = [ + migrations.AddField( + model_name="scrobble", + name="videogame_save_data", + field=models.FileField( + blank=True, + null=True, + upload_to="scrobbles/videogame_save_data/", + ), + ), + ] diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 9e7a505..3d72d71 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -446,6 +446,9 @@ class Scrobble(TimeStampedModel): # Fields for keeping track long content like books and games book_pages_read = models.IntegerField(**BNULL) + videogame_save_data = models.FileField( + upload_to="scrobbles/videogame_save_data/", **BNULL + ) long_play_seconds = models.BigIntegerField(**BNULL) long_play_complete = models.BooleanField(**BNULL)