Update ID fields in models to use 255 character length for Game, DropBenefit, and TimeBasedDrop

This commit is contained in:
Joakim Hellsén 2025-09-05 00:56:27 +02:00
commit 41dd1a2694
2 changed files with 31 additions and 3 deletions

View file

@ -60,7 +60,7 @@ class Organization(models.Model):
class Game(models.Model):
"""Represents a game on Twitch."""
id = models.CharField(max_length=64, primary_key=True, verbose_name="Game ID")
id = models.CharField(max_length=255, primary_key=True, verbose_name="Game ID")
slug = models.CharField(
max_length=200,
blank=True,
@ -290,7 +290,7 @@ class DropBenefit(models.Model):
"""Represents a benefit that can be earned from a drop."""
id = models.CharField(
max_length=64,
max_length=255,
primary_key=True,
help_text="Unique Twitch identifier for the benefit.",
)
@ -360,7 +360,7 @@ class TimeBasedDrop(models.Model):
"""Represents a time-based drop in a drop campaign."""
id = models.CharField(
max_length=64,
max_length=255,
primary_key=True,
help_text="Unique Twitch identifier for the time-based drop.",
)