summaryrefslogtreecommitdiff
path: root/app/podcasts/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-12-02 14:16:08 -0600
committerluxagraf <sng@luxagraf.net>2022-12-02 14:16:08 -0600
commit656505098a80e653319236ac302fd6dd9f485b33 (patch)
tree03fe2f552496e2a2b459f5227dc11273d1b94211 /app/podcasts/migrations
parentbf2fa131cba6430ba93f584f4693c3444e0c455f (diff)
reset migrations to zero out some changes (deleting the geodata for
example)
Diffstat (limited to 'app/podcasts/migrations')
-rw-r--r--app/podcasts/migrations/0001_initial.py60
-rw-r--r--app/podcasts/migrations/__init__.py0
2 files changed, 60 insertions, 0 deletions
diff --git a/app/podcasts/migrations/0001_initial.py b/app/podcasts/migrations/0001_initial.py
new file mode 100644
index 0000000..644e7dc
--- /dev/null
+++ b/app/podcasts/migrations/0001_initial.py
@@ -0,0 +1,60 @@
+# Generated by Django 4.1.3 on 2022-12-02 20:09
+
+from django.db import migrations, models
+import django.db.models.deletion
+import uuid
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('media', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Podcast',
+ fields=[
+ ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
+ ('title', models.CharField(max_length=255)),
+ ('subtitle', models.CharField(blank=True, max_length=255, null=True)),
+ ('slug', models.SlugField()),
+ ('publisher', models.CharField(max_length=255)),
+ ('publisher_email', models.CharField(max_length=255)),
+ ('description', models.TextField()),
+ ('keywords', models.CharField(blank=True, help_text='A comma-delimited list of words for searches, up to 12;', max_length=255)),
+ ('license', models.TextField(blank=True, null=True)),
+ ('featured_image', models.ForeignKey(blank=True, help_text='square JPEG (.jpg) or PNG (.png) image at a size of 1400x1400 pixels.', null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
+ ],
+ options={
+ 'verbose_name': 'Podcast',
+ 'verbose_name_plural': 'Podcasts',
+ 'ordering': ('title', 'slug'),
+ },
+ ),
+ migrations.CreateModel(
+ name='Episode',
+ fields=[
+ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
+ ('title', models.CharField(max_length=255)),
+ ('subtitle', models.CharField(blank=True, max_length=255, null=True)),
+ ('date_created', models.DateTimeField(auto_now_add=True)),
+ ('date_updated', models.DateTimeField(auto_now=True)),
+ ('pub_date', models.DateTimeField(blank=True, null=True)),
+ ('enable_comments', models.BooleanField(default=True)),
+ ('slug', models.SlugField()),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('description', models.TextField()),
+ ('keywords', models.CharField(blank=True, help_text='A comma-delimited list of words for searches, up to 12;', max_length=255)),
+ ('featured_image', models.ForeignKey(blank=True, help_text='square JPEG (.jpg) or PNG (.png) image at a size of 1400x1400 pixels.', null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
+ ('podcast', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='podcasts.podcast')),
+ ],
+ options={
+ 'verbose_name': 'Episode',
+ 'verbose_name_plural': 'Episodes',
+ 'ordering': ('-pub_date', 'slug'),
+ },
+ ),
+ ]
diff --git a/app/podcasts/migrations/__init__.py b/app/podcasts/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/podcasts/migrations/__init__.py