Fix Patch - remove company from patient (#11819)
This commit is contained in:
parent
b1ac979ac5
commit
f4d9af1ab9
@ -1,5 +1,6 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if 'company' in frappe.db.get_table_columns("Patient"):
|
if frappe.db.exists("DocType", "Patient"):
|
||||||
frappe.db.sql("alter table `tabPatient` drop column company")
|
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