Fix Patch - remove company from patient (#11819)

This commit is contained in:
Jamsheer 2017-12-01 16:10:39 +05:30 committed by Nabin Hait
parent b1ac979ac5
commit f4d9af1ab9

View File

@ -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")