From c05000d3d98ccd422689db458517c3393a9e9609 Mon Sep 17 00:00:00 2001 From: Owocki Date: Fri, 31 May 2019 10:50:16 -0600 Subject: [PATCH 1/2] Updates tip liimts --- .../migrations/0032_auto_20190531_1646.py | 23 +++++++++++++++++++ .../migrations/0033_auto_20190531_1646.py | 22 ++++++++++++++++++ app/dashboard/models.py | 4 ++-- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 app/dashboard/migrations/0032_auto_20190531_1646.py create mode 100644 app/dashboard/migrations/0033_auto_20190531_1646.py diff --git a/app/dashboard/migrations/0032_auto_20190531_1646.py b/app/dashboard/migrations/0032_auto_20190531_1646.py new file mode 100644 index 00000000000..6556d2a5ccb --- /dev/null +++ b/app/dashboard/migrations/0032_auto_20190531_1646.py @@ -0,0 +1,23 @@ +# Generated by Django 2.1.7 on 2019-05-31 16:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0031_auto_20190424_1611'), + ] + + operations = [ + migrations.AlterField( + model_name='profile', + name='max_tip_amount_usdt_per_tx', + field=models.DecimalField(decimal_places=2, default=2500, max_digits=50), + ), + migrations.AlterField( + model_name='profile', + name='max_tip_amount_usdt_per_week', + field=models.DecimalField(decimal_places=2, default=20000, max_digits=50), + ), + ] diff --git a/app/dashboard/migrations/0033_auto_20190531_1646.py b/app/dashboard/migrations/0033_auto_20190531_1646.py new file mode 100644 index 00000000000..2f97a309194 --- /dev/null +++ b/app/dashboard/migrations/0033_auto_20190531_1646.py @@ -0,0 +1,22 @@ +# Generated by Django 2.1.7 on 2019-05-31 16:46 + +from django.db import migrations + +def forwards(apps, schema_editor): + from dashboard.models import Profile + Profile.objects.filter(max_tip_amount_usdt_per_tx=500).update(max_tip_amount_usdt_per_tx=2500) + Profile.objects.filter(max_tip_amount_usdt_per_week=1500).update(max_tip_amount_usdt_per_week=20000) + + +def backwards(apps, schema_editor): + pass + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0032_auto_20190531_1646'), + ] + + operations = [ + migrations.RunPython(forwards, backwards), + ] diff --git a/app/dashboard/models.py b/app/dashboard/models.py index eb457e4471b..81b22692bb0 100644 --- a/app/dashboard/models.py +++ b/app/dashboard/models.py @@ -1921,8 +1921,8 @@ class Profile(SuperModel): max_num_issues_start_work = models.IntegerField(default=3) preferred_payout_address = models.CharField(max_length=255, default='', blank=True) preferred_kudos_wallet = models.OneToOneField('kudos.Wallet', related_name='preferred_kudos_wallet', on_delete=models.SET_NULL, null=True, blank=True) - max_tip_amount_usdt_per_tx = models.DecimalField(default=500, decimal_places=2, max_digits=50) - max_tip_amount_usdt_per_week = models.DecimalField(default=1500, decimal_places=2, max_digits=50) + max_tip_amount_usdt_per_tx = models.DecimalField(default=2500, decimal_places=2, max_digits=50) + max_tip_amount_usdt_per_week = models.DecimalField(default=20000, decimal_places=2, max_digits=50) last_visit = models.DateTimeField(null=True, blank=True) job_search_status = models.CharField(max_length=2, choices=JOB_SEARCH_STATUS, blank=True) show_job_status = models.BooleanField( From 23ced7e07b3a4b328627712b9f8607e71fd7e59d Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Sat, 22 Jun 2019 13:58:39 +0530 Subject: [PATCH 2/2] created merge migration --- .../migrations/0036_merge_20190622_0828.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/dashboard/migrations/0036_merge_20190622_0828.py diff --git a/app/dashboard/migrations/0036_merge_20190622_0828.py b/app/dashboard/migrations/0036_merge_20190622_0828.py new file mode 100644 index 00000000000..e5e9b234f7c --- /dev/null +++ b/app/dashboard/migrations/0036_merge_20190622_0828.py @@ -0,0 +1,14 @@ +# Generated by Django 2.1.7 on 2019-06-22 08:28 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0033_auto_20190531_1646'), + ('dashboard', '0035_merge_20190620_1248'), + ] + + operations = [ + ]