From a225723420b86a1640241ebca6a4076aa5c07d43 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 24 Jul 2024 16:53:24 -0500 Subject: added migrations --- ...02_alter_book_options_remove_book_sort_order.py | 21 ++++++++++++ ...mment_content_type_alter_comment_id_and_more.py | 37 ++++++++++++++++++++++ .../migrations/0002_relatedpost_post_type.py | 18 +++++++++++ ...late_name_alter_post_featured_audio_and_more.py | 30 ++++++++++++++++++ 4 files changed, 106 insertions(+) create mode 100644 app/books/migrations/0002_alter_book_options_remove_book_sort_order.py create mode 100644 app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_id_and_more.py create mode 100644 app/normalize/migrations/0002_relatedpost_post_type.py create mode 100644 app/posts/migrations/0002_post_template_name_alter_post_featured_audio_and_more.py diff --git a/app/books/migrations/0002_alter_book_options_remove_book_sort_order.py b/app/books/migrations/0002_alter_book_options_remove_book_sort_order.py new file mode 100644 index 0000000..f52582b --- /dev/null +++ b/app/books/migrations/0002_alter_book_options_remove_book_sort_order.py @@ -0,0 +1,21 @@ +# Generated by Django 5.0.7 on 2024-07-24 21:52 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('books', '0001_initial'), + ] + + operations = [ + migrations.AlterModelOptions( + name='book', + options={}, + ), + migrations.RemoveField( + model_name='book', + name='sort_order', + ), + ] diff --git a/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_id_and_more.py b/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_id_and_more.py new file mode 100644 index 0000000..715eea3 --- /dev/null +++ b/app/lib/django_comments/migrations/0004_alter_comment_content_type_alter_comment_id_and_more.py @@ -0,0 +1,37 @@ +# Generated by Django 4.1.3 on 2022-12-02 20:06 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('contenttypes', '0002_remove_content_type_name'), + ('django_comments', '0003_add_submit_date_index'), + ] + + operations = [ + migrations.AlterField( + model_name='comment', + name='content_type', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_type_set_for_%(class)s', to='contenttypes.contenttype', verbose_name='content type'), + ), + migrations.AlterField( + model_name='comment', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + migrations.AlterField( + model_name='comment', + name='user', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(class)s_comments', to=settings.AUTH_USER_MODEL, verbose_name='user'), + ), + migrations.AlterField( + model_name='commentflag', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + ] diff --git a/app/normalize/migrations/0002_relatedpost_post_type.py b/app/normalize/migrations/0002_relatedpost_post_type.py new file mode 100644 index 0000000..82a84c8 --- /dev/null +++ b/app/normalize/migrations/0002_relatedpost_post_type.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.7 on 2024-07-24 21:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('normalize', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='relatedpost', + name='post_type', + field=models.CharField(blank=True, max_length=50, null=True), + ), + ] diff --git a/app/posts/migrations/0002_post_template_name_alter_post_featured_audio_and_more.py b/app/posts/migrations/0002_post_template_name_alter_post_featured_audio_and_more.py new file mode 100644 index 0000000..f0ae095 --- /dev/null +++ b/app/posts/migrations/0002_post_template_name_alter_post_featured_audio_and_more.py @@ -0,0 +1,30 @@ +# Generated by Django 5.0.7 on 2024-07-24 21:52 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('media', '0001_initial'), + ('posts', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='post', + name='template_name', + field=models.IntegerField(choices=[(0, 'single'), (1, 'double'), (2, 'single-dark'), (3, 'double-dark'), (4, 'single-black'), (5, 'double-black')], default=0), + ), + migrations.AlterField( + model_name='post', + name='featured_audio', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='media.luxaudio'), + ), + migrations.AlterField( + model_name='post', + name='featured_image', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='media.luximage'), + ), + ] -- cgit v1.2.3-70-g09d2