From 9c334c34a6c0b8d3b6b61a29fb4631959331088d Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 18 Sep 2017 16:17:13 +0530 Subject: [PATCH] [fix]remove employee field from tab salary structure --- .../v8_9/remove_employee_from_salary_structure_parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v8_9/remove_employee_from_salary_structure_parent.py b/erpnext/patches/v8_9/remove_employee_from_salary_structure_parent.py index 53911a15cf9..4ab9cf3ec8b 100644 --- a/erpnext/patches/v8_9/remove_employee_from_salary_structure_parent.py +++ b/erpnext/patches/v8_9/remove_employee_from_salary_structure_parent.py @@ -2,4 +2,4 @@ import frappe def execute(): if 'employee' in frappe.db.get_table_columns("Salary Structure"): - frappe.db.sql("alter table `tabEmployee` drop column employee") + frappe.db.sql("alter table `tabSalary Structure` drop column employee")