reset migrations

This commit is contained in:
Trent Palmer 2022-02-18 15:48:58 -08:00
parent 65e724c0aa
commit d032d257d1
29 changed files with 62 additions and 694 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 3.1.6 on 2021-02-21 22:18
# Generated by Django 3.2.10 on 2022-02-18 23:46
from django.conf import settings
from django.db import migrations, models
@ -15,12 +15,23 @@ class Migration(migrations.Migration):
]
operations = [
migrations.CreateModel(
name='EmailWhiteList',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('email', models.EmailField(max_length=254, unique=True)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Account',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('totp_key', models.CharField(max_length=16, null=True)),
('totp_key', models.CharField(max_length=32, null=True)),
('use_totp', models.BooleanField(default=False)),
('twitter_handle', models.CharField(default='@Twitter', max_length=64)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={

View File

@ -1,24 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-06 01:08
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='EmailWhiteList',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('email', models.EmailField(max_length=254, unique=True)),
],
options={
'abstract': False,
},
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-28 22:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_emailwhitelist'),
]
operations = [
migrations.AddField(
model_name='account',
name='twitter_handle',
field=models.CharField(default='@Twitter', max_length=64),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.2.6 on 2021-08-31 03:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_account_twitter_handle'),
]
operations = [
migrations.AlterField(
model_name='account',
name='totp_key',
field=models.CharField(max_length=32, null=True),
),
]

View File

@ -1,6 +1,8 @@
# Generated by Django 3.1.6 on 2021-02-22 06:44
# Generated by Django 3.2.10 on 2022-02-18 23:46
import audio.models
from django.conf import settings
import django.core.files.storage
from django.db import migrations, models
import django.db.models.deletion
import uuid
@ -19,9 +21,53 @@ class Migration(migrations.Migration):
name='Feed',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('author', models.CharField(max_length=255)),
('title', models.CharField(max_length=255)),
('created_on', models.DateTimeField(auto_now_add=True)),
('title', models.CharField(max_length=120)),
('author', models.CharField(max_length=120)),
('slug', models.SlugField(max_length=255, unique=True)),
('description', models.TextField()),
('image', models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/images'), upload_to=audio.models.slugify_file_name)),
('image_license', models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=2)),
('image_title', models.CharField(default='', max_length=255)),
('image_attribution', models.CharField(default='', max_length=255)),
('image_attribution_url', models.URLField(blank=True, max_length=255)),
('original_image_url', models.URLField(default='', max_length=255)),
('image_license_jurisdiction', models.TextField(default='(no jurisdiction specified)')),
('author_url', models.URLField(default='', max_length=255)),
('ebook_title', models.CharField(default='', max_length=255)),
('ebook_url', models.URLField(default='', max_length=255)),
('translator', models.CharField(blank=True, max_length=255)),
('translator_url', models.URLField(blank=True, max_length=255)),
('intro_author', models.CharField(blank=True, max_length=255)),
('intro_author_url', models.URLField(blank=True, max_length=255)),
('license_jurisdiction', models.TextField(blank=True, default='(no jurisdiction specified)')),
('license', models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=1)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Episode',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('author', models.CharField(max_length=255)),
('title', models.CharField(max_length=255)),
('created_on', models.DateTimeField(auto_now_add=True)),
('slug', models.SlugField(max_length=255, unique=True)),
('description', models.TextField()),
('image', models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/images'), upload_to=audio.models.slugify_file_name)),
('image_license', models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=2)),
('image_title', models.CharField(default='', max_length=255)),
('image_attribution', models.CharField(default='', max_length=255)),
('image_attribution_url', models.URLField(blank=True, max_length=255)),
('original_image_url', models.URLField(default='', max_length=255)),
('image_license_jurisdiction', models.TextField(default='(no jurisdiction specified)')),
('pub_date', models.DateField()),
('episode_number', models.IntegerField(null=True)),
('mp3', models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/mp3'), upload_to=audio.models.slugify_file_name)),
('feed', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='audio.feed')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={

View File

@ -1,28 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-22 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='feed',
name='slug',
field=models.SlugField(max_length=255, null=True, unique=True),
),
migrations.AlterField(
model_name='feed',
name='author',
field=models.CharField(max_length=255),
),
migrations.AlterField(
model_name='feed',
name='title',
field=models.CharField(max_length=255),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-22 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0002_auto_20210221_2256'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='slug',
field=models.SlugField(max_length=255, unique=True),
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-22 21:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0003_auto_20210221_2256'),
]
operations = [
migrations.AddField(
model_name='feed',
name='description',
field=models.TextField(default=''),
preserve_default=False,
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-23 00:02
from django.db import migrations, models
import tp.storage_backends
class Migration(migrations.Migration):
dependencies = [
('audio', '0004_feed_description'),
]
operations = [
migrations.AddField(
model_name='feed',
name='image',
field=models.ImageField(null=True, storage=tp.storage_backends.PublicImageStorage(), upload_to=''),
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-23 00:03
from django.db import migrations, models
import tp.storage_backends
class Migration(migrations.Migration):
dependencies = [
('audio', '0005_feed_image'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='image',
field=models.ImageField(blank=True, null=True, storage=tp.storage_backends.PublicImageStorage(), upload_to=''),
),
]

View File

@ -1,20 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-23 05:00
import audio.models
from django.db import migrations, models
import tp.storage_backends
class Migration(migrations.Migration):
dependencies = [
('audio', '0006_auto_20210222_1603'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='image',
field=models.ImageField(blank=True, null=True, storage=tp.storage_backends.PublicImageStorage(), upload_to=audio.models.slugify_file_name),
),
]

View File

@ -1,42 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-23 08:18
import audio.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tp.storage_backends
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('audio', '0007_auto_20210222_2100'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='image',
field=models.ImageField(blank=True, null=True, storage=tp.storage_backends.PublicImageStorage(), upload_to=audio.models.slugify_file_name),
),
migrations.CreateModel(
name='Episode',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('title', models.CharField(max_length=255)),
('author', models.CharField(max_length=255)),
('slug', models.SlugField(max_length=255, unique=True)),
('description', models.TextField()),
('created_on', models.DateTimeField(auto_now_add=True)),
('image', models.ImageField(blank=True, null=True, storage=tp.storage_backends.PublicImageStorage(), upload_to=audio.models.slugify_file_name)),
('mp3', models.FileField(blank=True, null=True, storage=tp.storage_backends.PublicMP3Storage(), upload_to=audio.models.slugify_file_name)),
('feed', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='audio.feed')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.1.6 on 2021-02-23 08:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0008_auto_20210223_0018'),
]
operations = [
migrations.AddField(
model_name='episode',
name='pub_date',
field=models.DateField(default=None),
preserve_default=False,
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-02-24 01:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0009_episode_pub_date'),
]
operations = [
migrations.AddField(
model_name='episode',
name='episode_number',
field=models.IntegerField(null=True),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 16:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0010_episode_episode_number'),
]
operations = [
migrations.AddField(
model_name='feed',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0')], default=2),
),
]

View File

@ -1,33 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 17:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0011_feed_image_license'),
]
operations = [
migrations.AddField(
model_name='feed',
name='image_attribution',
field=models.CharField(default='', max_length=255),
),
migrations.AddField(
model_name='feed',
name='image_attribution_url',
field=models.URLField(blank=True, max_length=255),
),
migrations.AddField(
model_name='feed',
name='image_title',
field=models.CharField(default='', max_length=255),
),
migrations.AddField(
model_name='feed',
name='original_image_url',
field=models.URLField(default='', max_length=255),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0012_auto_20210316_1053'),
]
operations = [
migrations.AddField(
model_name='feed',
name='image_license_jurisdiction',
field=models.TextField(default=''),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 19:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0013_feed_image_license_jurisdiction'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0')], default=2),
),
]

View File

@ -1,43 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0014_auto_20210316_1230'),
]
operations = [
migrations.AddField(
model_name='episode',
name='image_attribution',
field=models.CharField(default='', max_length=255),
),
migrations.AddField(
model_name='episode',
name='image_attribution_url',
field=models.URLField(blank=True, max_length=255),
),
migrations.AddField(
model_name='episode',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0')], default=2),
),
migrations.AddField(
model_name='episode',
name='image_license_jurisdiction',
field=models.TextField(default=''),
),
migrations.AddField(
model_name='episode',
name='image_title',
field=models.CharField(default='', max_length=255),
),
migrations.AddField(
model_name='episode',
name='original_image_url',
field=models.URLField(default='', max_length=255),
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-16 23:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0015_auto_20210316_1440'),
]
operations = [
migrations.AlterField(
model_name='episode',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0')], default=2),
),
migrations.AlterField(
model_name='feed',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0')], default=2),
),
]

View File

@ -1,53 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 17:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0016_auto_20210316_1624'),
]
operations = [
migrations.AddField(
model_name='feed',
name='author_url',
field=models.URLField(default='', max_length=255),
),
migrations.AddField(
model_name='feed',
name='ebook_url',
field=models.URLField(default='', max_length=255),
),
migrations.AddField(
model_name='feed',
name='intro_author',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='feed',
name='intro_author_url',
field=models.URLField(blank=True, max_length=255),
),
migrations.AddField(
model_name='feed',
name='license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0')], default=1),
),
migrations.AddField(
model_name='feed',
name='license_jurisdiction',
field=models.TextField(blank=True),
),
migrations.AddField(
model_name='feed',
name='translator',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='feed',
name='translator_url',
field=models.URLField(blank=True, max_length=255),
),
]

View File

@ -1,38 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 17:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0017_auto_20210317_1036'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='intro_author',
field=models.CharField(default=None, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='intro_author_url',
field=models.URLField(default=None, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='license_jurisdiction',
field=models.TextField(blank=True, default=None),
),
migrations.AlterField(
model_name='feed',
name='translator',
field=models.CharField(default=None, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='translator_url',
field=models.URLField(default=None, max_length=255),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0018_auto_20210317_1043'),
]
operations = [
migrations.AlterField(
model_name='episode',
name='image_license_jurisdiction',
field=models.TextField(default='(no jurisdiction specified)'),
),
migrations.AlterField(
model_name='feed',
name='image_license_jurisdiction',
field=models.TextField(default='(no jurisdiction specified)'),
),
migrations.AlterField(
model_name='feed',
name='license_jurisdiction',
field=models.TextField(blank=True, default='(no jurisdiction specified)'),
),
]

View File

@ -1,33 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0019_auto_20210317_1046'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='intro_author',
field=models.CharField(blank=True, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='intro_author_url',
field=models.URLField(blank=True, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='translator',
field=models.CharField(blank=True, max_length=255),
),
migrations.AlterField(
model_name='feed',
name='translator_url',
field=models.URLField(blank=True, max_length=255),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0020_auto_20210317_1048'),
]
operations = [
migrations.AddField(
model_name='feed',
name='ebook_title',
field=models.URLField(default='', max_length=255),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 3.1.7 on 2021-03-17 18:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0021_feed_ebook_title'),
]
operations = [
migrations.AlterField(
model_name='feed',
name='ebook_title',
field=models.CharField(default='', max_length=255),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 3.1.7 on 2021-04-03 08:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0022_auto_20210317_1105'),
]
operations = [
migrations.AlterField(
model_name='episode',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0')], default=2),
),
migrations.AlterField(
model_name='feed',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0')], default=2),
),
migrations.AlterField(
model_name='feed',
name='license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0')], default=1),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 3.2.9 on 2021-11-07 15:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0023_auto_20210403_0102'),
]
operations = [
migrations.AlterField(
model_name='episode',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=2),
),
migrations.AlterField(
model_name='feed',
name='image_license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=2),
),
migrations.AlterField(
model_name='feed',
name='license',
field=models.SmallIntegerField(choices=[(1, 'Public Domain'), (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), (5, 'CC BY 3.0'), (6, 'CC BY 1.0'), (7, 'CC0 1.0'), (8, 'CC BY 4.0')], default=1),
),
]

View File

@ -1,30 +0,0 @@
# Generated by Django 3.2.10 on 2022-02-18 21:38
import audio.models
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0024_auto_20211107_0710'),
]
operations = [
migrations.AlterField(
model_name='episode',
name='image',
field=models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/images'), upload_to=audio.models.slugify_file_name),
),
migrations.AlterField(
model_name='episode',
name='mp3',
field=models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/mp3'), upload_to=audio.models.slugify_file_name),
),
migrations.AlterField(
model_name='feed',
name='image',
field=models.ImageField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(location='/home/trent/trentpalmerdotorg/media/audio/images'), upload_to=audio.models.slugify_file_name),
),
]