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