From b7c98219a66092fd1f25e9d59dde38f3d1d8c82f Mon Sep 17 00:00:00 2001 From: 0x29a Date: Mon, 30 Oct 2023 15:13:24 +0100 Subject: [PATCH] fix: renamed migrations This commit contains renamed migrations that were extracted from other pull requests. We do this because upstream PRs depend on migrations that don't exist in v3.61.11 IMPORTANT: if you've previously had `opencraft-release/nutmeg.2` installed, you'll have to fake all migrations from this commit, as changes are mostly likely already applied to your DB. See this and further comments for details: https://tasks.opencraft.com/browse/BB-7619?focusedCommentId=274168&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-274168 --- ...e_price_when_zero_to_enterprisecustomer.py | 21 +++++++++++++++++++ ..._enrollment_in_invite_only_courses_flag.py | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 enterprise/migrations/0171_adds_hide_course_price_when_zero_to_enterprisecustomer.py create mode 100644 enterprise/migrations/0172_adds_allow_enrollment_in_invite_only_courses_flag.py diff --git a/enterprise/migrations/0171_adds_hide_course_price_when_zero_to_enterprisecustomer.py b/enterprise/migrations/0171_adds_hide_course_price_when_zero_to_enterprisecustomer.py new file mode 100644 index 0000000000..26f38d25d3 --- /dev/null +++ b/enterprise/migrations/0171_adds_hide_course_price_when_zero_to_enterprisecustomer.py @@ -0,0 +1,21 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('enterprise', '0170_auto_20230301_1627'), + ] + + operations = [ + migrations.AddField( + model_name='enterprisecustomer', + name='hide_course_price_when_zero', + field=models.BooleanField(default=False, help_text='Specify whether course cost should be hidden in the landing page when the final price is zero.'), + ), + migrations.AddField( + model_name='historicalenterprisecustomer', + name='hide_course_price_when_zero', + field=models.BooleanField(default=False, help_text='Specify whether course cost should be hidden in the landing page when the final price is zero.'), + ), + ] diff --git a/enterprise/migrations/0172_adds_allow_enrollment_in_invite_only_courses_flag.py b/enterprise/migrations/0172_adds_allow_enrollment_in_invite_only_courses_flag.py new file mode 100644 index 0000000000..42f180d5bf --- /dev/null +++ b/enterprise/migrations/0172_adds_allow_enrollment_in_invite_only_courses_flag.py @@ -0,0 +1,21 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('enterprise', '0171_adds_hide_course_price_when_zero_to_enterprisecustomer'), + ] + + operations = [ + migrations.AddField( + model_name='enterprisecustomer', + name='allow_enrollment_in_invite_only_courses', + field=models.BooleanField(default=False, help_text="Specifies if learners are allowed to enroll into courses marked as 'invitation-only', when they attempt to enroll from the landing page."), + ), + migrations.AddField( + model_name='historicalenterprisecustomer', + name='allow_enrollment_in_invite_only_courses', + field=models.BooleanField(default=False, help_text="Specifies if learners are allowed to enroll into courses marked as 'invitation-only', when they attempt to enroll from the landing page."), + ), + ]