mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Fix Patch - remove company from patient (#11819)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user