fix: add patch to set conferencing provider for existing Zoom records

Sets conferencing_provider to "Zoom" for all existing LMS Batch and
LMS Live Class records that have a zoom_account linked.
This commit is contained in:
Vaibhav Rathore
2026-02-27 12:56:55 +05:30
parent 4925c5bc45
commit 2fab297745
2 changed files with 18 additions and 1 deletions

View File

@@ -119,4 +119,5 @@ lms.patches.v2_0.open_to_work
lms.patches.v2_0.share_enrollment
lms.patches.v2_0.give_user_list_permission #11-02-2026
lms.patches.v2_0.rename_badge_assignment_event
lms.patches.v2_0.enable_allow_job_posting
lms.patches.v2_0.enable_allow_job_posting
lms.patches.v2_0.set_conferencing_provider_for_zoom

View File

@@ -0,0 +1,16 @@
import frappe
def execute():
frappe.db.set_value(
"LMS Batch",
{"zoom_account": ["is", "set"]},
"conferencing_provider",
"Zoom",
)
frappe.db.set_value(
"LMS Live Class",
{"zoom_account": ["is", "set"]},
"conferencing_provider",
"Zoom",
)