fix: delete webforms of unused modules

This commit is contained in:
Jannat Patel
2022-07-07 17:08:53 +05:30
parent e011ef469f
commit d20f932316
2 changed files with 9 additions and 1 deletions

View File

@@ -28,4 +28,4 @@ lms.patches.v0_0.change_published_field_data #25-03-2022
execute:frappe.delete_doc("Workspace", "School", ignore_missing=True, force=True)
lms.patches.v0_0.move_certification_to_certificate
lms.patches.v0_0.quiz_submission_member
lms.patches.v0_0.delete_old_module_docs
lms.patches.v0_0.delete_old_module_docs #08-07-2022

View File

@@ -5,3 +5,11 @@ def execute():
frappe.db.delete("DocType", {"module": "Conference"})
frappe.db.delete("DocType", {"module": "Hackathon"})
frappe.db.delete("DocType", {"module": "Event Management"})
frappe.db.delete("Web Form", {"module": "Conference"})
frappe.db.delete("Web Form", {"module": "Hackathon"})
frappe.db.delete("Web Form", {"module": "Event Management"})
frappe.db.delete("Module Def", "Conference")
frappe.db.delete("Module Def", "Hackathon")
frappe.db.delete("Module Def", "Event Management")