Fix Patch - remove company from patient (#11819)
This commit is contained in:
parent
b1ac979ac5
commit
f4d9af1ab9
@ -1,5 +1,6 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
if 'company' in frappe.db.get_table_columns("Patient"):
|
||||
frappe.db.sql("alter table `tabPatient` drop column company")
|
||||
if frappe.db.exists("DocType", "Patient"):
|
||||
if 'company' in frappe.db.get_table_columns("Patient"):
|
||||
frappe.db.sql("alter table `tabPatient` drop column company")
|
||||
|
Loading…
Reference in New Issue
Block a user