Go back to sqlite
This commit is contained in:
parent
28dbab57c4
commit
f84b59cb4f
10 changed files with 27 additions and 173 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Generated by Django 5.2.4 on 2025-07-23 23:51
|
||||
# Generated by Django 5.2.4 on 2025-08-06 04:12
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
|
|
@ -9,6 +10,7 @@ class Migration(migrations.Migration):
|
|||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
|
@ -21,7 +23,7 @@ class Migration(migrations.Migration):
|
|||
('created_at', models.DateTimeField(db_index=True)),
|
||||
('entitlement_limit', models.PositiveIntegerField(default=1)),
|
||||
('is_ios_available', models.BooleanField(default=False)),
|
||||
('distribution_type', models.TextField(choices=[('DIRECT_ENTITLEMENT', 'Direct Entitlement'), ('CODE', 'Code')], db_index=True)),
|
||||
('distribution_type', models.TextField(db_index=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
|
|
@ -38,6 +40,7 @@ class Migration(migrations.Migration):
|
|||
('id', models.TextField(primary_key=True, serialize=False)),
|
||||
('slug', models.TextField(blank=True, db_index=True, default='')),
|
||||
('display_name', models.TextField(db_index=True)),
|
||||
('box_art', models.URLField(blank=True, default='', max_length=500)),
|
||||
],
|
||||
options={
|
||||
'indexes': [models.Index(fields=['slug'], name='twitch_game_slug_a02d3c_idx'), models.Index(fields=['display_name'], name='twitch_game_display_a35ba3_idx')],
|
||||
|
|
@ -99,6 +102,20 @@ class Migration(migrations.Migration):
|
|||
name='drop',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='twitch.timebaseddrop'),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='NotificationSubscription',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('notify_found', models.BooleanField(default=False)),
|
||||
('notify_live', models.BooleanField(default=False)),
|
||||
('game', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='twitch.game')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
('organization', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='twitch.organization')),
|
||||
],
|
||||
options={
|
||||
'unique_together': {('user', 'game'), ('user', 'organization')},
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='dropcampaign',
|
||||
index=models.Index(fields=['name'], name='twitch_drop_name_3b70b3_idx'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue