Skip to content

Commit ccfea4d

Browse files
committed
fixup! feat: add course authoring migration and rollback scripts
1 parent 9fbc920 commit ccfea4d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

openedx_authz/management/commands/authz_migrate_course_authoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def handle(self, *args, **options):
4646
org_id = options.get("org_id")
4747

4848
if not course_id_list and not org_id:
49-
raise CommandError("You must specify either --course-id-list or --org-id to filter the rollback.")
49+
raise CommandError("You must specify either --course-id-list or --org-id to filter the migration.")
5050

5151
if course_id_list and org_id:
5252
raise CommandError("You cannot use --course-id-list and --org-id together.")
@@ -60,7 +60,7 @@ def handle(self, *args, **options):
6060
)
6161

6262
if confirm != "yes":
63-
self.stdout.write(self.style.WARNING("Deletion aborted."))
63+
self.stdout.write(self.style.WARNING("Migration aborted."))
6464
return
6565
with transaction.atomic():
6666
errors, success = migrate_legacy_course_roles_to_authz(

openedx_authz/management/commands/authz_rollback_course_authoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def handle(self, *args, **options):
6363
)
6464

6565
if confirm != "yes":
66-
self.stdout.write(self.style.WARNING("Deletion aborted."))
66+
self.stdout.write(self.style.WARNING("Rollback aborted."))
6767
return
6868
with transaction.atomic():
6969
errors, success = migrate_authz_to_legacy_course_roles(

0 commit comments

Comments
 (0)