You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
- # MIT License. See license.txt
-
- import frappe
-
- def execute():
- for doctype in frappe.db.sql_list("""select name from `tabDocType` where istable=1"""):
- frappe.db.sql("""delete from `tab{0}` where parent like "old_par%:%" """.format(doctype))
- frappe.db.sql("""delete from `tabDocField` where parent="0" """)
|