Add box art and campaign image metadata fields; update feeds and backfill command
All checks were successful
Deploy to Server / deploy (push) Successful in 10s

This commit is contained in:
Joakim Hellsén 2026-03-09 19:53:10 +01:00
commit 5d95038faf
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
6 changed files with 264 additions and 25 deletions

View file

@ -0,0 +1,36 @@
# Generated by Django 6.0.3 on 2026-03-09 18:33
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
"""Add box art MIME type and size fields to Game, and backfill existing data."""
dependencies = [
("twitch", "0012_dropcampaign_operation_names_gin_index"),
]
operations = [
migrations.AddField(
model_name="game",
name="box_art_mime_type",
field=models.CharField(
blank=True,
default="",
editable=False,
help_text="MIME type of the cached box art image (e.g., 'image/png').",
max_length=50,
),
),
migrations.AddField(
model_name="game",
name="box_art_size_bytes",
field=models.PositiveIntegerField(
blank=True,
editable=False,
help_text="File size of the cached box art image in bytes.",
null=True,
),
),
]

View file

@ -0,0 +1,36 @@
# Generated by Django 6.0.3 on 2026-03-09 18:35
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
"""Add image MIME type and size fields to DropCampaign, and backfill existing data."""
dependencies = [
("twitch", "0013_game_box_art_mime_type_game_box_art_size_bytes"),
]
operations = [
migrations.AddField(
model_name="dropcampaign",
name="image_mime_type",
field=models.CharField(
blank=True,
default="",
editable=False,
help_text="MIME type of the cached campaign image (e.g., 'image/png').",
max_length=50,
),
),
migrations.AddField(
model_name="dropcampaign",
name="image_size_bytes",
field=models.PositiveIntegerField(
blank=True,
editable=False,
help_text="File size of the cached campaign image in bytes.",
null=True,
),
),
]