Lower line-length to default and don't add from __future__ import annotations to everything
This commit is contained in:
parent
dcc4cecb8d
commit
1118c03c1b
46 changed files with 2338 additions and 1085 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Generated by Django 6.0.1 on 2026-01-15 21:57
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations
|
||||
|
|
@ -9,15 +9,21 @@ from django.db import models
|
|||
class Migration(migrations.Migration):
|
||||
"""Add ChatBadgeSet and ChatBadge models for Twitch chat badges."""
|
||||
|
||||
dependencies = [
|
||||
("twitch", "0005_add_reward_campaign"),
|
||||
]
|
||||
dependencies = [("twitch", "0005_add_reward_campaign")]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="ChatBadgeSet",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
(
|
||||
"set_id",
|
||||
models.TextField(
|
||||
|
|
@ -46,16 +52,33 @@ class Migration(migrations.Migration):
|
|||
options={
|
||||
"ordering": ["set_id"],
|
||||
"indexes": [
|
||||
models.Index(fields=["set_id"], name="twitch_chat_set_id_9319f2_idx"),
|
||||
models.Index(fields=["added_at"], name="twitch_chat_added_a_b0023a_idx"),
|
||||
models.Index(fields=["updated_at"], name="twitch_chat_updated_90afed_idx"),
|
||||
models.Index(
|
||||
fields=["set_id"],
|
||||
name="twitch_chat_set_id_9319f2_idx",
|
||||
),
|
||||
models.Index(
|
||||
fields=["added_at"],
|
||||
name="twitch_chat_added_a_b0023a_idx",
|
||||
),
|
||||
models.Index(
|
||||
fields=["updated_at"],
|
||||
name="twitch_chat_updated_90afed_idx",
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="ChatBadge",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
(
|
||||
"badge_id",
|
||||
models.TextField(
|
||||
|
|
@ -87,10 +110,19 @@ class Migration(migrations.Migration):
|
|||
verbose_name="Image URL (72px)",
|
||||
),
|
||||
),
|
||||
("title", models.TextField(help_text="The title of the badge (e.g., 'VIP').", verbose_name="Title")),
|
||||
(
|
||||
"title",
|
||||
models.TextField(
|
||||
help_text="The title of the badge (e.g., 'VIP').",
|
||||
verbose_name="Title",
|
||||
),
|
||||
),
|
||||
(
|
||||
"description",
|
||||
models.TextField(help_text="The description of the badge.", verbose_name="Description"),
|
||||
models.TextField(
|
||||
help_text="The description of the badge.",
|
||||
verbose_name="Description",
|
||||
),
|
||||
),
|
||||
(
|
||||
"click_action",
|
||||
|
|
@ -141,13 +173,30 @@ class Migration(migrations.Migration):
|
|||
options={
|
||||
"ordering": ["badge_set", "badge_id"],
|
||||
"indexes": [
|
||||
models.Index(fields=["badge_set"], name="twitch_chat_badge_s_54f225_idx"),
|
||||
models.Index(fields=["badge_id"], name="twitch_chat_badge_i_58a68a_idx"),
|
||||
models.Index(
|
||||
fields=["badge_set"],
|
||||
name="twitch_chat_badge_s_54f225_idx",
|
||||
),
|
||||
models.Index(
|
||||
fields=["badge_id"],
|
||||
name="twitch_chat_badge_i_58a68a_idx",
|
||||
),
|
||||
models.Index(fields=["title"], name="twitch_chat_title_0f42d2_idx"),
|
||||
models.Index(fields=["added_at"], name="twitch_chat_added_a_9ba7dd_idx"),
|
||||
models.Index(fields=["updated_at"], name="twitch_chat_updated_568ad1_idx"),
|
||||
models.Index(
|
||||
fields=["added_at"],
|
||||
name="twitch_chat_added_a_9ba7dd_idx",
|
||||
),
|
||||
models.Index(
|
||||
fields=["updated_at"],
|
||||
name="twitch_chat_updated_568ad1_idx",
|
||||
),
|
||||
],
|
||||
"constraints": [
|
||||
models.UniqueConstraint(
|
||||
fields=("badge_set", "badge_id"),
|
||||
name="unique_badge_set_id",
|
||||
),
|
||||
],
|
||||
"constraints": [models.UniqueConstraint(fields=("badge_set", "badge_id"), name="unique_badge_set_id")],
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue