From 9b81b17fbf1c1d2da0a47219423fdea3e4f49a1b Mon Sep 17 00:00:00 2001 From: Vaibhav Mule <vaibhavmule135@gmail.com> Date: Thu, 19 Mar 2020 15:59:47 +0530 Subject: [PATCH] make Reminder's single migrations file --- hypha/apply/funds/migrations/0073_reminder.py | 8 +++++-- .../migrations/0074_auto_20200310_1121.py | 22 ------------------- .../migrations/0075_auto_20200310_1127.py | 18 --------------- .../migrations/0076_auto_20200316_1102.py | 18 --------------- .../migrations/0077_auto_20200316_1117.py | 18 --------------- .../migrations/0078_auto_20200316_1131.py | 18 --------------- .../migrations/0079_auto_20200316_1134.py | 18 --------------- .../migrations/0080_auto_20200319_1020.py | 18 --------------- 8 files changed, 6 insertions(+), 132 deletions(-) delete mode 100644 hypha/apply/funds/migrations/0074_auto_20200310_1121.py delete mode 100644 hypha/apply/funds/migrations/0075_auto_20200310_1127.py delete mode 100644 hypha/apply/funds/migrations/0076_auto_20200316_1102.py delete mode 100644 hypha/apply/funds/migrations/0077_auto_20200316_1117.py delete mode 100644 hypha/apply/funds/migrations/0078_auto_20200316_1131.py delete mode 100644 hypha/apply/funds/migrations/0079_auto_20200316_1134.py delete mode 100644 hypha/apply/funds/migrations/0080_auto_20200319_1020.py diff --git a/hypha/apply/funds/migrations/0073_reminder.py b/hypha/apply/funds/migrations/0073_reminder.py index f782632c0..80b187455 100644 --- a/hypha/apply/funds/migrations/0073_reminder.py +++ b/hypha/apply/funds/migrations/0073_reminder.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.11 on 2020-03-10 02:06 +# Generated by Django 2.2.11 on 2020-03-19 10:24 from django.conf import settings from django.db import migrations, models @@ -18,10 +18,14 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time', models.DateTimeField()), - ('action', models.CharField(choices=[('review', 'Remind to Review')], default='review', max_length=15)), + ('action', models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], max_length=50)), + ('medium', models.CharField(choices=[('email', 'Email')], default='email', max_length=15)), ('sent', models.BooleanField(default=False)), ('submission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reminders', to='funds.ApplicationSubmission')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], + options={ + 'ordering': ['-time'], + }, ), ] diff --git a/hypha/apply/funds/migrations/0074_auto_20200310_1121.py b/hypha/apply/funds/migrations/0074_auto_20200310_1121.py deleted file mode 100644 index fb435408d..000000000 --- a/hypha/apply/funds/migrations/0074_auto_20200310_1121.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-10 11:21 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0073_reminder'), - ] - - operations = [ - migrations.AlterModelOptions( - name='reminder', - options={'ordering': ['-time']}, - ), - migrations.AddField( - model_name='reminder', - name='medium', - field=models.CharField(choices=[('slack', 'slack'), ('email', 'email')], default='email', max_length=15), - ), - ] diff --git a/hypha/apply/funds/migrations/0075_auto_20200310_1127.py b/hypha/apply/funds/migrations/0075_auto_20200310_1127.py deleted file mode 100644 index b153a33bc..000000000 --- a/hypha/apply/funds/migrations/0075_auto_20200310_1127.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-10 11:27 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0074_auto_20200310_1121'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='medium', - field=models.CharField(choices=[('slack', 'Slack'), ('email', 'Email')], default='email', max_length=15), - ), - ] diff --git a/hypha/apply/funds/migrations/0076_auto_20200316_1102.py b/hypha/apply/funds/migrations/0076_auto_20200316_1102.py deleted file mode 100644 index aa02d63af..000000000 --- a/hypha/apply/funds/migrations/0076_auto_20200316_1102.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-16 11:02 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0075_auto_20200310_1127'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='medium', - field=models.CharField(choices=[('email', 'Email')], default='email', max_length=15), - ), - ] diff --git a/hypha/apply/funds/migrations/0077_auto_20200316_1117.py b/hypha/apply/funds/migrations/0077_auto_20200316_1117.py deleted file mode 100644 index 12eb93129..000000000 --- a/hypha/apply/funds/migrations/0077_auto_20200316_1117.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-16 11:17 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0076_auto_20200316_1102'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='action', - field=models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], default='review', max_length=15), - ), - ] diff --git a/hypha/apply/funds/migrations/0078_auto_20200316_1131.py b/hypha/apply/funds/migrations/0078_auto_20200316_1131.py deleted file mode 100644 index 38f88f859..000000000 --- a/hypha/apply/funds/migrations/0078_auto_20200316_1131.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-16 11:31 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0077_auto_20200316_1117'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='action', - field=models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], default='review', max_length=50), - ), - ] diff --git a/hypha/apply/funds/migrations/0079_auto_20200316_1134.py b/hypha/apply/funds/migrations/0079_auto_20200316_1134.py deleted file mode 100644 index b8f8b6ff6..000000000 --- a/hypha/apply/funds/migrations/0079_auto_20200316_1134.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-16 11:34 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0078_auto_20200316_1131'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='action', - field=models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], default='reviewers_review', max_length=50), - ), - ] diff --git a/hypha/apply/funds/migrations/0080_auto_20200319_1020.py b/hypha/apply/funds/migrations/0080_auto_20200319_1020.py deleted file mode 100644 index c2733a20f..000000000 --- a/hypha/apply/funds/migrations/0080_auto_20200319_1020.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.11 on 2020-03-19 10:20 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funds', '0079_auto_20200316_1134'), - ] - - operations = [ - migrations.AlterField( - model_name='reminder', - name='action', - field=models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], max_length=50), - ), - ] -- GitLab