From e63b625ac40c68b4fc3c2e3e2ff471b8ac236eb2 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sat, 6 Apr 2024 20:53:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/activities/migrations/0001_initial.py | 52 ------------------- src/activities/migrations/0002_initial.py | 39 -------------- ...0003_delete_question_remove_test_reward.py | 20 ------- 3 files changed, 111 deletions(-) delete mode 100644 src/activities/migrations/0001_initial.py delete mode 100644 src/activities/migrations/0002_initial.py delete mode 100644 src/activities/migrations/0003_delete_question_remove_test_reward.py diff --git a/src/activities/migrations/0001_initial.py b/src/activities/migrations/0001_initial.py deleted file mode 100644 index d4d650e..0000000 --- a/src/activities/migrations/0001_initial.py +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by Django 5.0.4 on 2024-04-06 17:09 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Bonus', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('amount', models.IntegerField()), - ('descr', models.TextField()), - ], - ), - migrations.CreateModel( - name='FavouriteOrganization', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ], - ), - migrations.CreateModel( - name='Photo', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('image', models.ImageField(upload_to='users/photos/')), - ], - ), - migrations.CreateModel( - name='Question', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=64)), - ('image', models.ImageField(upload_to='images/tests/')), - ], - ), - migrations.CreateModel( - name='Test', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=64)), - ('image', models.ImageField(upload_to='images/tests/')), - ('reward', models.PositiveIntegerField()), - ], - ), - ] diff --git a/src/activities/migrations/0002_initial.py b/src/activities/migrations/0002_initial.py deleted file mode 100644 index 800b960..0000000 --- a/src/activities/migrations/0002_initial.py +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by Django 5.0.4 on 2024-04-06 17:09 - -import django.db.models.deletion -from django.conf import settings -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('activities', '0001_initial'), - ('organizations', '0001_initial'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.AddField( - model_name='bonus', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - migrations.AddField( - model_name='favouriteorganization', - name='organization', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organizations.organization'), - ), - migrations.AddField( - model_name='favouriteorganization', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - migrations.AddField( - model_name='photo', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gallery', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/src/activities/migrations/0003_delete_question_remove_test_reward.py b/src/activities/migrations/0003_delete_question_remove_test_reward.py deleted file mode 100644 index ba2ba12..0000000 --- a/src/activities/migrations/0003_delete_question_remove_test_reward.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 5.0.4 on 2024-04-06 17:44 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('activities', '0002_initial'), - ] - - operations = [ - migrations.DeleteModel( - name='Question', - ), - migrations.RemoveField( - model_name='test', - name='reward', - ), - ]