Refactor import_drops command
This commit is contained in:
parent
f84b59cb4f
commit
5878ec186f
10 changed files with 495 additions and 88 deletions
|
|
@ -0,0 +1,31 @@
|
|||
# Generated by Django 5.2.5 on 2025-08-07 02:35
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='game',
|
||||
name='name',
|
||||
field=models.TextField(blank=True, db_index=True, default=''),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='game',
|
||||
name='display_name',
|
||||
field=models.TextField(blank=True, db_index=True, default=''),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='game',
|
||||
index=models.Index(fields=['name'], name='twitch_game_name_c92c15_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='game',
|
||||
index=models.Index(fields=['box_art'], name='twitch_game_box_art_498a89_idx'),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 5.2.5 on 2025-08-10 20:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0002_game_name_alter_game_display_name_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='dropbenefit',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(db_index=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='dropbenefit',
|
||||
name='distribution_type',
|
||||
field=models.TextField(blank=True, db_index=True, default=''),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='dropbenefit',
|
||||
name='name',
|
||||
field=models.TextField(blank=True, db_index=True, default='N/A'),
|
||||
),
|
||||
]
|
||||
23
twitch/migrations/0004_alter_dropcampaign_end_at_and_more.py
Normal file
23
twitch/migrations/0004_alter_dropcampaign_end_at_and_more.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 5.2.5 on 2025-08-10 20:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0003_alter_dropbenefit_created_at_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='dropcampaign',
|
||||
name='end_at',
|
||||
field=models.DateTimeField(db_index=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='dropcampaign',
|
||||
name='start_at',
|
||||
field=models.DateTimeField(db_index=True, null=True),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 5.2.5 on 2025-08-10 20:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('twitch', '0004_alter_dropcampaign_end_at_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='timebaseddrop',
|
||||
name='end_at',
|
||||
field=models.DateTimeField(db_index=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='timebaseddrop',
|
||||
name='required_minutes_watched',
|
||||
field=models.PositiveIntegerField(db_index=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='timebaseddrop',
|
||||
name='start_at',
|
||||
field=models.DateTimeField(db_index=True, null=True),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue