fix: Move doctype patch to top (#7129)

- This fixes the ERPNext patch
This commit is contained in:
Faris Ansari 2019-03-25 19:39:20 +05:30 committed by GitHub
parent 6251c24706
commit 87d5710956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View file

@ -1,3 +1,4 @@
frappe.patches.v12_0.remove_deprecated_fields_from_doctype #2
execute:frappe.db.sql("""update `tabPatch Log` set patch=replace(patch, '.4_0.', '.v4_0.')""") #2014-05-12
frappe.patches.v5_0.convert_to_barracuda_and_utf8mb4
execute:frappe.utils.global_search.setup_global_search_table()
@ -237,4 +238,3 @@ frappe.patches.v11_0.set_default_letter_head_source
frappe.patches.v12_0.setup_comments_from_communications
frappe.patches.v12_0.init_desk_settings #11-03-2019
frappe.patches.v12_0.replace_null_values_in_tables
frappe.patches.v12_0.remove_deprecated_fields_from_doctype #1

View file

@ -2,9 +2,6 @@ import frappe
def execute():
frappe.reload_doc('core', 'doctype', 'doctype')
frappe.db.sql('''
ALTER TABLE tabDocType
DROP COLUMN IF EXISTS hide_heading,
DROP COLUMN IF EXISTS image_view,
DROP COLUMN IF EXISTS read_only_onload
''')
frappe.model.delete_fields({
'DocType': ['hide_heading', 'image_view', 'read_only_onload']
}, delete=1)