old_contents: import frappe
  
  def execute():
  	if 'company' in frappe.db.get_table_columns("Patient"):
  		frappe.db.sql("alter table `tabPatient` drop column company")
  
new_contents: import frappe
  
  def execute():
  	if frappe.db.exists("DocType", "Patient"):
  		if 'company' in frappe.db.get_table_columns("Patient"):
  			frappe.db.sql("alter table `tabPatient` drop column company")
  
subject: Fix Patch - remove company from patient (#11819)