From 39b9c03b1e2c83b3fa71330bacf1c645a0a94773 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Mon, 13 Apr 2020 17:54:58 +0530 Subject: [PATCH] add missing migrations --- .../migrations/0098_auto_20200413_1223.py | 18 +++++++++++++++ .../migrations/0051_auto_20200413_1223.py | 23 +++++++++++++++++++ .../migrations/0004_auto_20200413_1223.py | 18 +++++++++++++++ .../migrations/0013_auto_20200413_1223.py | 18 +++++++++++++++ scripts/debug/grants_round_stats.py | 3 ++- 5 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 app/dashboard/migrations/0098_auto_20200413_1223.py create mode 100644 app/grants/migrations/0051_auto_20200413_1223.py create mode 100644 app/inbox/migrations/0004_auto_20200413_1223.py create mode 100644 app/marketing/migrations/0013_auto_20200413_1223.py diff --git a/app/dashboard/migrations/0098_auto_20200413_1223.py b/app/dashboard/migrations/0098_auto_20200413_1223.py new file mode 100644 index 00000000000..908556bd077 --- /dev/null +++ b/app/dashboard/migrations/0098_auto_20200413_1223.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.4 on 2020-04-13 12:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0097_merge_20200408_1219'), + ] + + operations = [ + migrations.AlterField( + model_name='activity', + name='activity_type', + field=models.CharField(blank=True, choices=[('wall_post', 'Wall Post'), ('status_update', 'Update status'), ('new_bounty', 'New Bounty'), ('start_work', 'Work Started'), ('stop_work', 'Work Stopped'), ('work_submitted', 'Work Submitted'), ('work_done', 'Work Done'), ('worker_approved', 'Worker Approved'), ('worker_rejected', 'Worker Rejected'), ('worker_applied', 'Worker Applied'), ('increased_bounty', 'Increased Funding'), ('killed_bounty', 'Canceled Bounty'), ('new_tip', 'New Tip'), ('receive_tip', 'Tip Received'), ('bounty_abandonment_escalation_to_mods', 'Escalated checkin from @gitcoinbot about bounty status'), ('bounty_abandonment_warning', 'Checkin from @gitcoinbot about bounty status'), ('bounty_removed_slashed_by_staff', 'Dinged and Removed from Bounty by Staff'), ('bounty_removed_by_staff', 'Removed from Bounty by Staff'), ('bounty_removed_by_funder', 'Removed from Bounty by Funder'), ('new_crowdfund', 'New Crowdfund Contribution'), ('new_grant', 'New Grant'), ('update_grant', 'Updated Grant'), ('killed_grant', 'Cancelled Grant'), ('negative_contribution', 'Negative Grant Contribution'), ('new_grant_contribution', 'Contributed to Grant'), ('new_grant_subscription', 'Subscribed to Grant'), ('killed_grant_contribution', 'Cancelled Grant Contribution'), ('new_kudos', 'New Kudos'), ('created_kudos', 'Created Kudos'), ('receive_kudos', 'Receive Kudos'), ('joined', 'Joined Gitcoin'), ('played_quest', 'Played Quest'), ('beat_quest', 'Beat Quest'), ('created_quest', 'Created Quest'), ('updated_avatar', 'Updated Avatar'), ('mini_clr_payout', 'Mini CLR Payout'), ('leaderboard_rank', 'Leaderboard Rank'), ('consolidated_leaderboard_rank', 'Consolidated Leaderboard Rank'), ('consolidated_mini_clr_payout', 'Consolidated CLR Payout'), ('hackathon_registration', 'Hackathon Registration'), ('flagged_grant', 'Flagged Grant')], db_index=True, max_length=50), + ), + ] diff --git a/app/grants/migrations/0051_auto_20200413_1223.py b/app/grants/migrations/0051_auto_20200413_1223.py new file mode 100644 index 00000000000..7e060c634e5 --- /dev/null +++ b/app/grants/migrations/0051_auto_20200413_1223.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.4 on 2020-04-13 12:23 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('grants', '0050_auto_20200329_2146'), + ] + + operations = [ + migrations.RemoveField( + model_name='update', + name='grant', + ), + migrations.DeleteModel( + name='Milestone', + ), + migrations.DeleteModel( + name='Update', + ), + ] diff --git a/app/inbox/migrations/0004_auto_20200413_1223.py b/app/inbox/migrations/0004_auto_20200413_1223.py new file mode 100644 index 00000000000..190c00e9bda --- /dev/null +++ b/app/inbox/migrations/0004_auto_20200413_1223.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.4 on 2020-04-13 12:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('inbox', '0003_auto_20200227_1433'), + ] + + operations = [ + migrations.AlterField( + model_name='notification', + name='cta_text', + field=models.CharField(choices=[('new_bounty', 'New Bounty'), ('start_work', 'Work Started'), ('stop_work', 'Work Stopped'), ('work_submitted', 'Work Submitted'), ('work_done', 'Work Done'), ('worker_approved', 'Worker Approved'), ('worker_rejected', 'Worker Rejected'), ('worker_applied', 'Worker Applied'), ('increased_bounty', 'Increased Funding'), ('killed_bounty', 'Canceled Bounty'), ('new_tip', 'New Tip'), ('receive_tip', 'Tip Received'), ('bounty_abandonment_escalation_to_mods', 'Escalated for Abandonment of Bounty'), ('bounty_abandonment_warning', 'Warning for Abandonment of Bounty'), ('bounty_removed_slashed_by_staff', 'Dinged and Removed from Bounty by Staff'), ('bounty_removed_by_staff', 'Removed from Bounty by Staff'), ('bounty_removed_by_funder', 'Removed from Bounty by Funder'), ('new_crowdfund', 'New Crowdfund Contribution'), ('new_grant', 'New Grant'), ('update_grant', 'Updated Grant'), ('killed_grant', 'Cancelled Grant'), ('new_grant_contribution', 'Contributed to Grant'), ('killed_grant_contribution', 'Cancelled Grant Contribution'), ('new_kudos', 'New Kudos'), ('new_mention', 'New Mention'), ('new_post_comment', 'New comment'), ('new_like', 'New Like')], max_length=50), + ), + ] diff --git a/app/marketing/migrations/0013_auto_20200413_1223.py b/app/marketing/migrations/0013_auto_20200413_1223.py new file mode 100644 index 00000000000..e8fbf958072 --- /dev/null +++ b/app/marketing/migrations/0013_auto_20200413_1223.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.4 on 2020-04-13 12:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('marketing', '0012_roundupemail'), + ] + + operations = [ + migrations.AlterField( + model_name='manualstat', + name='comment', + field=models.TextField(blank=True, default='', max_length=255), + ), + ] diff --git a/scripts/debug/grants_round_stats.py b/scripts/debug/grants_round_stats.py index c8556c6dad9..1cbaab76ee7 100644 --- a/scripts/debug/grants_round_stats.py +++ b/scripts/debug/grants_round_stats.py @@ -1,3 +1,5 @@ +import operator + from django.utils import timezone from grants.models import * @@ -33,7 +35,6 @@ all_contributors_by_num[key] += 1 all_contributors_by_amount[key] += contrib.subscription.amount_per_period_usdt -import operator all_contributors_by_num = sorted(all_contributors_by_num.items(), key=operator.itemgetter(1)) all_contributors_by_amount = sorted(all_contributors_by_amount.items(), key=operator.itemgetter(1)) all_contributors_by_num.reverse()