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.
 
 
 
 
 
 

10 regels
378 B

  1. # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. import frappe
  4. def execute():
  5. for doctype in frappe.db.sql_list("""select name from `tabDocType` where istable=1"""):
  6. frappe.db.sql("""delete from `tab{0}` where parent like "old_par%:%" """.format(doctype))
  7. frappe.db.sql("""delete from `tabDocField` where parent="0" """)