Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing migrations #6426

Merged
merged 1 commit into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions app/dashboard/migrations/0098_auto_20200413_1223.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
23 changes: 23 additions & 0 deletions app/grants/migrations/0051_auto_20200413_1223.py
Original file line number Diff line number Diff line change
@@ -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',
),
]
18 changes: 18 additions & 0 deletions app/inbox/migrations/0004_auto_20200413_1223.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
18 changes: 18 additions & 0 deletions app/marketing/migrations/0013_auto_20200413_1223.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
3 changes: 2 additions & 1 deletion scripts/debug/grants_round_stats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import operator

from django.utils import timezone

from grants.models import *
Expand Down Expand Up @@ -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()
Expand Down