feat(main): main
This commit is contained in:
21
core/migrations/0006_channel_requires_auth.py
Normal file
21
core/migrations/0006_channel_requires_auth.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Generated by Django 6.0.3 on 2026-03-10 12:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("core", "0005_mediasource_max_age_days_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="channel",
|
||||
name="requires_auth",
|
||||
field=models.BooleanField(
|
||||
default=False,
|
||||
help_text="If True, only signed-in users can stream or fetch schedules for this channel.",
|
||||
),
|
||||
),
|
||||
]
|
||||
27
core/migrations/0007_backupschedule.py
Normal file
27
core/migrations/0007_backupschedule.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_channel_requires_auth'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='BackupSchedule',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('enabled', models.BooleanField(default=False)),
|
||||
('frequency', models.CharField(choices=[('hourly', 'Hourly'), ('daily', 'Daily'), ('weekly', 'Weekly'), ('monthly', 'Monthly')], default='daily', max_length=16)),
|
||||
('minute', models.PositiveSmallIntegerField(default=0)),
|
||||
('hour', models.PositiveSmallIntegerField(default=2)),
|
||||
('day_of_week', models.PositiveSmallIntegerField(default=0)),
|
||||
('day_of_month', models.PositiveSmallIntegerField(default=1)),
|
||||
('retention_count', models.PositiveIntegerField(default=14)),
|
||||
('last_run_at', models.DateTimeField(blank=True, null=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user