Patch problems upgrading from v10.x.x to v12

Trying to upgrade from v10.x.x to v12.

I am having a problem with the patch frappe.patches.v12_0.remove_deprecated_fields_from_doctype, has anyone seen this?

This patch:
import frappe

def execute():
frappe.reload_doc(‘core’, ‘doctype’, ‘doctype’)
frappe.model.delete_fields({
‘DocType’: [‘hide_heading’, ‘image_view’, ‘read_only_onload’]
}, delete=1)

frappe.db.sql(’’’
DELETE from tabProperty Setter
WHERE property = ‘read_only_onload’
‘’’)

I ended up skipping like 10 patches between frappe and erpnext.

Regards