Skip to content

Commit

Permalink
fix migration problems
Browse files Browse the repository at this point in the history
  • Loading branch information
eviljeff committed Jan 21, 2025
1 parent 31355b9 commit 7c4d143
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/olympia/versions/migrations/0009_auto_20200717_1137.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
from olympia.constants.promoted import RECOMMENDED


def add_promoted_approval_for_each_recommended(apps, schema_editor):
Version = apps.get_model('versions', 'Version')
PromotedApproval = apps.get_model('promoted', 'PromotedApproval')
for version in Version.unfiltered.filter(recommendation_approved=True):
PromotedApproval.objects.create(
version=version, group_id=RECOMMENDED.id)


class Migration(migrations.Migration):

dependencies = [
('versions', '0008_auto_20200625_1114'),
]

operations = [
migrations.RunPython(add_promoted_approval_for_each_recommended),
migrations.AlterField(
model_name='version',
name='recommendation_approved',
Expand Down
1 change: 1 addition & 0 deletions src/olympia/versions/migrations/0017_installorigin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Migration(migrations.Migration):

dependencies = [
('versions', '0016_auto_20210325_1320'),
('waffle', '0001_initial'),
]

operations = [
Expand Down
1 change: 1 addition & 0 deletions src/olympia/versions/migrations/0032_auto_20230107_0048.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Migration(migrations.Migration):

dependencies = [
('versions', '0031_add_due_date'),
('files', '0014_auto_20210824_1722'),
]

operations = [migrations.RunPython(set_due_date_from_nomination_date)]
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Migration(migrations.Migration):

dependencies = [
('versions', '0034_auto_20230131_1821'),
('reviewers', '0001_initial'),
]

operations = [migrations.RunPython(set_human_review_date_from_reviewed)]

0 comments on commit 7c4d143

Please sign in to comment.