Update ID fields in models to use 255 character length for Game, DropBenefit, and TimeBasedDrop
This commit is contained in:
parent
06d1cebdac
commit
41dd1a2694
2 changed files with 31 additions and 3 deletions
|
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 5.2.5 on 2025-09-04 22:53
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0009_postgresql_optimizations_fixed'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='dropbenefit',
|
||||
name='id',
|
||||
field=models.CharField(help_text='Unique Twitch identifier for the benefit.', max_length=255, primary_key=True, serialize=False),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='id',
|
||||
field=models.CharField(max_length=255, primary_key=True, serialize=False, verbose_name='Game ID'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='timebaseddrop',
|
||||
name='id',
|
||||
field=models.CharField(help_text='Unique Twitch identifier for the time-based drop.', max_length=255, primary_key=True, serialize=False),
|
||||
),
|
||||
]
|
||||
|
|
@ -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.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue