fix: delete doctypes from old modules

This commit is contained in:
Jannat Patel
2022-07-05 18:50:10 +05:30
parent 384850b452
commit e011ef469f
2 changed files with 8 additions and 0 deletions

View File

@@ -28,3 +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

View File

@@ -0,0 +1,7 @@
import frappe
def execute():
frappe.db.delete("DocType", {"module": "Conference"})
frappe.db.delete("DocType", {"module": "Hackathon"})
frappe.db.delete("DocType", {"module": "Event Management"})