28 lines
868 B
Python
28 lines
868 B
Python
# Generated by Django 5.0.6 on 2024-07-01 03:49
|
|
|
|
import django.db.models.functions.text
|
|
from django.db import migrations, models
|
|
from django.db.migrations.operations.base import Operation
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies: list[tuple[str, str]] = [
|
|
("twitch_app", "0001_initial"),
|
|
]
|
|
|
|
operations: list[Operation] = [
|
|
migrations.AddField(
|
|
model_name="game",
|
|
name="image_url",
|
|
field=models.GeneratedField( # type: ignore # noqa: PGH003
|
|
db_persist=True,
|
|
expression=django.db.models.functions.text.Concat(
|
|
models.Value("https://static-cdn.jtvnw.net/ttv-boxart/"),
|
|
"id",
|
|
models.Value("_IGDB.jpg"),
|
|
),
|
|
output_field=models.URLField(),
|
|
),
|
|
),
|
|
]
|