diff options
Diffstat (limited to 'app/pages/migrations')
-rw-r--r-- | app/pages/migrations/0001_initial.py | 12 | ||||
-rw-r--r-- | app/pages/migrations/0002_auto_20211030_1634.py | 44 |
2 files changed, 5 insertions, 51 deletions
diff --git a/app/pages/migrations/0001_initial.py b/app/pages/migrations/0001_initial.py index 61213e1..6227712 100644 --- a/app/pages/migrations/0001_initial.py +++ b/app/pages/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.1.3 on 2020-11-30 22:44 +# Generated by Django 4.1.3 on 2022-12-02 20:08 from django.db import migrations, models import django.db.models.deletion @@ -18,7 +18,7 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Page', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200)), ('sub_title', models.CharField(blank=True, max_length=300)), ('slug', models.SlugField()), @@ -37,13 +37,11 @@ class Migration(migrations.Migration): migrations.CreateModel( name='HomePage', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('image_offset_vertical', models.CharField(help_text='add negative top margin to shift image (include css unit)', max_length=20)), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tag_line', models.CharField(blank=True, max_length=200, null=True)), ('template_name', models.CharField(blank=True, help_text='full path', max_length=200, null=True)), - ('featured', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='posts.post')), - ('featured_image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='media.luximage')), - ('popular', models.ManyToManyField(related_name='popular', to='posts.Post')), + ('featured', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='posts.post')), + ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')), ], ), ] diff --git a/app/pages/migrations/0002_auto_20211030_1634.py b/app/pages/migrations/0002_auto_20211030_1634.py deleted file mode 100644 index 7a8649b..0000000 --- a/app/pages/migrations/0002_auto_20211030_1634.py +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by Django 3.2.8 on 2021-10-30 16:34 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('posts', '0002_alter_post_id'), - ('media', '0002_auto_20211030_1634'), - ('pages', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='homepage', - name='image_offset_vertical', - ), - migrations.RemoveField( - model_name='homepage', - name='popular', - ), - migrations.AlterField( - model_name='homepage', - name='featured', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='posts.post'), - ), - migrations.AlterField( - model_name='homepage', - name='featured_image', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage'), - ), - migrations.AlterField( - model_name='homepage', - name='id', - field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), - ), - migrations.AlterField( - model_name='page', - name='id', - field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), - ), - ] |